Re: [sample] mem_notify v6: usage example

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: KOSAKI Motohiro <kosaki.motohiro@...>
Cc: Jon Masters <jonathan@...>, linux-mm@kvack.org <linux-mm@...>, linux-kernel@vger.kernel.org <linux-kernel@...>, Marcelo Tosatti <marcelo@...>, Daniel Spang <daniel.spang@...>, Rik van Riel <riel@...>, Andrew Morton <akpm@...>, Alan Cox <alan@...>, linux-fsdevel@vger.kernel.org <linux-fsdevel@...>, Pavel Machek <pavel@...>, Al Boldi <a1426z@...>, Zan Lynx <zlynx@...>
Date: Monday, February 11, 2008 - 2:15 pm

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.

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
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, 11:55 am)
Re: [sample] mem_notify v6: usage example, Jon Masters, (Sat Feb 9, 12:07 pm)
Re: [sample] mem_notify v6: usage example, Pavel Machek, (Sat Feb 9, 9:30 pm)
Re: [sample] mem_notify v6: usage example, KOSAKI Motohiro, (Sat Feb 9, 12:46 pm)
Re: [sample] mem_notify v6: usage example, Andreas Dilger, (Mon Feb 11, 2:15 pm)
Re: [sample] mem_notify v6: usage example, KOSAKI Motohiro, (Mon Feb 11, 2:37 pm)