Re: OOM notifications

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Marcelo Tosatti <marcelo@...>
Cc: <linux-kernel@...>, <drepper@...>, <riel@...>, Martin Bligh <mbligh@...>, <linux-mm@...>
Date: Friday, October 26, 2007 - 5:02 pm

On Thu, 18 Oct 2007 16:15:31 -0400
Marcelo Tosatti <marcelo@kvack.org> wrote:


Martin was talking about some mad scheme wherin you'd create a bunch of
pseudo files (say, /proc/foo/0, /proc/foo/1, ..., /proc/foo/9) and each one
would become "ready" when the MM scanning priority reaches 10%, 20%, ... 
100%.

Obviously there would need to be a lot of abstraction to unhook a permanent
userspace feature from a transient kernel implementation, but the basic
idea is that a process which wants to know when the VM is getting into the
orange zone would select() on the file "7" and a process which wants to
know when the VM is getting into the red zone would select on file "9".

It get more complicated with NUMA memory nodes and cgroup memory
controllers.

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
OOM notifications, Marcelo Tosatti, (Thu Oct 18, 4:15 pm)
Re: OOM notifications, Jan Kara, (Tue Oct 30, 10:57 am)
Re: OOM notifications, Rik van Riel, (Tue Oct 30, 11:23 am)
Re: OOM notifications, Jan Kara, (Tue Oct 30, 11:55 am)
Re: OOM notifications, Rik van Riel, (Tue Oct 30, 1:31 pm)
Re: OOM notifications, Andrew Morton, (Fri Oct 26, 5:02 pm)
Re: OOM notifications, Balbir Singh, (Sun Oct 28, 5:16 pm)
Re: OOM notifications, Martin Bligh, (Fri Oct 26, 5:05 pm)
Re: OOM notifications, Andrew Morton, (Fri Oct 26, 5:11 pm)
Re: OOM notifications, Rik van Riel, (Fri Oct 26, 5:35 pm)
Re: OOM notifications, Martin Bligh, (Fri Oct 26, 5:59 pm)
Re: OOM notifications, Rik van Riel, (Fri Oct 26, 6:30 pm)