Re: [sample] mem_notify v6: usage example

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andreas Dilger
Date: Monday, February 11, 2008 - 11:15 am

On Feb 10, 2008  01:46 +0900, KOSAKI Motohiro wrote:

Having such notification handled by glibc to free up unused malloc (or
any heap allocations) would be very useful, because even if a program
does "free" there is no guarantee the memory is returned to the kernel.

I think that having a generic reservation framework is too complex, but
hiding the details of /dev/mem_notify from applications is desirable.
A simple wrapper (possibly part of glibc) to return the poll fd, or set
up the signal is enough.

Cheers, Andreas
--
Andreas Dilger
Sr. Staff Engineer, Lustre Group
Sun Microsystems of Canada, Inc.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[sample] mem_notify v6: usage example, KOSAKI Motohiro, (Sat Feb 9, 8:55 am)
Re: [sample] mem_notify v6: usage example, Jon Masters, (Sat Feb 9, 9:07 am)
Re: [sample] mem_notify v6: usage example, KOSAKI Motohiro, (Sat Feb 9, 9:46 am)
Re: [sample] mem_notify v6: usage example, Pavel Machek, (Sat Feb 9, 6:30 pm)
Re: [sample] mem_notify v6: usage example, Andreas Dilger, (Mon Feb 11, 11:15 am)
Re: [sample] mem_notify v6: usage example, KOSAKI Motohiro, (Mon Feb 11, 11:37 am)