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

From: Pekka Enberg
Date: Tue Jan 17 2012 - 04:45:24 EST


On Tue, Jan 17, 2012 at 10:13 AM, Minchan Kim <minchan@xxxxxxxxxx> 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 from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/