Re: [RFC][PATCH 3/8] mem_notify v5: introduce /dev/mem_notify new device (the core of this patch series)

2008-01-24 Thread KOSAKI Motohiro
Hi Daniel > > +#define PROC_WAKEUP_GUARD (10*HZ) > [...] > > + timeout = info->last_proc_notify + PROC_WAKEUP_GUARD; > > If only one or a few processes are using the system I think 10 seconds > is a little long time to wait before they get the notification again. > Can we decrease this val

Re: [RFC][PATCH 3/8] mem_notify v5: introduce /dev/mem_notify new device (the core of this patch series)

2008-01-24 Thread Daniel SpÄng
Hi KOSAKI, On 1/24/08, KOSAKI Motohiro <[EMAIL PROTECTED]> wrote: > +#define PROC_WAKEUP_GUARD (10*HZ) [...] > + timeout = info->last_proc_notify + PROC_WAKEUP_GUARD; If only one or a few processes are using the system I think 10 seconds is a little long time to wait before they get the no

[RFC][PATCH 3/8] mem_notify v5: introduce /dev/mem_notify new device (the core of this patch series)

2008-01-23 Thread KOSAKI Motohiro
the core of this patch series. add /dev/mem_notify device for notification low memory to user process. fd = open("/dev/mem_notify", O_RDONLY); if (fd < 0) { exit(1); } pollfds.fd = fd; pollfds.events = POLLIN; pollfds.revents = 0;