Re: [sample] mem_notify v6: usage example

2008-02-11 Thread KOSAKI Motohiro
Hi Andreas, Thank you very good comment. > 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. Yes, no guarantee. but current glibc

Re: [sample] mem_notify v6: usage example

2008-02-11 Thread Andreas Dilger
On Feb 10, 2008 01:46 +0900, KOSAKI Motohiro wrote: > > This really needs to be triggered via a generic kernel event in the > > final version - I picture glibc having a reservation API and having > > generic support for freeing such reservations. > > to be honest, I doubt idea of generic reservat

Re: [sample] mem_notify v6: usage example

2008-02-09 Thread Pavel Machek
On Sat 2008-02-09 11:07:09, Jon Masters wrote: > This really needs to be triggered via a generic kernel > event in the final version - I picture glibc having a > reservation API and having generic support for freeing > such reservations. Not sure what you are talking about. This seems very ri

Re: [sample] mem_notify v6: usage example

2008-02-09 Thread KOSAKI Motohiro
Hi Jon > This really needs to be triggered via a generic kernel event in the > final version - I picture glibc having a reservation API and having > generic support for freeing such reservations. to be honest, I doubt idea of generic reservation framework. end up, we hope drop the application ca

Re: [sample] mem_notify v6: usage example

2008-02-09 Thread Jon Masters
This really needs to be triggered via a generic kernel event in the final version - I picture glibc having a reservation API and having generic support for freeing such reservations. Jon On Feb 9, 2008, at 10:55, "KOSAKI Motohiro" <[EMAIL PROTECTED] > wrote: this is usage example of /d

[sample] mem_notify v6: usage example

2008-02-09 Thread KOSAKI Motohiro
this is usage example of /dev/mem_notify. Daniel Spang create original version. kosaki add fasync related code. Signed-off-by: Daniel Spang <[EMAIL PROTECTED]> Signed-off-by: KOSAKI Motohiro <[EMAIL PROTECTED]> --- Documentation/mem_notify.c | 120 +