Thread (62 messages) 62 messages, 11 authors, 2012-01-26

Re: [RFC 1/3] /dev/low_mem_notify

From: Pekka Enberg <penberg@kernel.org>
Date: 2012-01-17 09:45:11
Also in: lkml

On Tue, Jan 17, 2012 at 10:13 AM, Minchan Kim [off-list ref] wrote:
This patch makes new device file "/dev/low_mem_notify".
If application polls it, it can receive event when system
memory pressure happens.

This patch is based on KOSAKI and Marcelo's long time ago work.
http://lwn.net/Articles/268732/
I'm not loving the ABI. Alternative solutions:

  - SIGDANGER + signalfd() for poll

  - sys_eventfd()

  - sys_mem_notify_open() similar to sys_perf_event_open()

                        Pekka

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help