Zbr's days.
February
Sun Mon Tue Wed Thu Fri Sat
         
7
 
2008
Months
Feb
Sep
Oct Nov Dec

About TODO Blog RSS Old blog Projects Gallery Notes

Thu, 07 Feb 2008

Memory notification events.

Jake Edge posted an article at LWN.net about various memory pressure notification, which userspace application may be insterested in.
For example they can wait for swap in/out notifcaitinos or oom condition far before it is killed by oom-killer, so it could free some unused ram (like firefox could free some recently viewed pages cache).

Notifications are transferred to userspace via /dev/mem_notify file, which is readable and pollable. Alternative way is to use SIGIO signal to the process when the device becomes readable.
Patch likely will be accepted soon.

This is another example of the real need for unified event management subsystem in the Linux kernl.

/devel/kevent :: Link / Comments (0)

Please solve this captcha to be allowed to post (need to reload in a minute): 73 * 99

Comments are closed for this story.