[dpdk-dev] [PATCH] add free hugepage function

Matthew Hall mhall at mhcomputing.net
Thu Oct 30 15:56:32 CET 2014


Yes. I once had to write a cron job in Perl that monitored for unused regions and deleted them before the SHM subsystem ran out of memory. Possible, yes, but irritating.
-- 
Sent from my mobile device.

On October 30, 2014 3:18:56 AM PDT, Neil Horman <nhorman at tuxdriver.com> wrote:
>On Wed, Oct 29, 2014 at 08:23:25PM -0700, Matthew Hall wrote:
>> On Wed, Oct 29, 2014 at 11:32:12AM -0400, Neil Horman wrote:
>> > > 
>> > Well, abnormal termination results in abnormal consequences.  You
>expect
>> > garbage to get left behind of a program crashes, so I wouldn't
>really worry
>> > about that too much.  If you really wanted to you can register
>chained handlers
>> > for SIGSEGV/SIGBUS/etc to catch those conditions, but honestly,
>that seems like
>> > overkill.  If a program that uses shared resources terminates
>abnormally, its
>> > well understood that those shared resources may not get released
>properly, and
>> > manual intervention is required to clean them up
>> > 
>> > Neil
>> 
>> Perhaps true. But also one of the top irritations with POSIX SHMEM.
>;)
>> 
>POSIX shared memory defines IPC_RMID for exactly that purpose.



More information about the dev mailing list