Re: Improving OOM killer

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lubos Lunak
Date: Wednesday, February 3, 2010 - 5:10 am

On Wednesday 03 of February 2010, Balbir Singh wrote:

 Yes, I've already updated my proposal in another mail to switch from VmSize 
to VmRSS+InSwap. I don't know how to find out the second item in code, but at 
this point of discussion that's just details.


 I don't understand how this matters. Overcommit is memory for which address 
space has been allocated but not actual memory, right? Then that's exactly 
what I'm claiming is wrong and am trying to reverse. Currently OOM killer 
takes this into account because it uses VmSize, but IMO it shouldn't - if a 
process does malloc(400M) but then it uses only a tiny fraction of that, in 
the case of memory shortage killing that process does not solve anything in 
practice.


 Just to make sure I understand what you mean with "RSS does not account for 
shared pages" - you say that if a page is shared by 4 processes, then when 
calculating badness for them, only 1/4 of the page should be counted for 
each? Yes, I suppose so, that makes sense. That's more like fine-tunning at 
this point though, as long as there's no agreement that moving away from 
VmSize is an improvement.


 Testing - are there actually any tests for it, or do people just test random 
scenarios when they do changes? Also, I'm curious, what areas is the OOM 
killer actually generally known to work well in? I somehow get the feeling 
from the discussion here that people just tweak oom_adj until it works for 
them.

-- 
 Lubos Lunak
 openSUSE Boosters team, KDE developer
 l.lunak@suse.cz , l.lunak@kde.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Improving OOM killer, Lubos Lunak, (Mon Feb 1, 3:02 pm)
Re: Improving OOM killer, David Rientjes, (Mon Feb 1, 4:53 pm)
Re: Improving OOM killer, Lubos Lunak, (Tue Feb 2, 2:10 pm)
Re: Improving OOM killer, David Rientjes, (Tue Feb 2, 6:41 pm)
Re: Improving OOM killer, KAMEZAWA Hiroyuki, (Tue Feb 2, 6:52 pm)
Re: Improving OOM killer, KAMEZAWA Hiroyuki, (Tue Feb 2, 7:12 pm)
Re: Improving OOM killer, David Rientjes, (Tue Feb 2, 7:12 pm)
[patch] sysctl: clean up vm related variable declarations, David Rientjes, (Tue Feb 2, 7:36 pm)
Re: Improving OOM killer, KOSAKI Motohiro, (Wed Feb 3, 12:50 am)
Re: Improving OOM killer, Balbir Singh, (Wed Feb 3, 1:57 am)
Re: Improving OOM killer, David Rientjes, (Wed Feb 3, 2:40 am)
Re: Improving OOM killer, Lubos Lunak, (Wed Feb 3, 5:10 am)
Re: Improving OOM killer, Balbir Singh, (Wed Feb 3, 5:25 am)
Re: Improving OOM killer, Rik van Riel, (Wed Feb 3, 7:49 am)
Re: Improving OOM killer, Minchan Kim, (Wed Feb 3, 8:00 am)
Re: Improving OOM killer, Minchan Kim, (Wed Feb 3, 9:06 am)
Re: Improving OOM killer, Balbir Singh, (Wed Feb 3, 10:01 am)
Re: Improving OOM killer, David Rientjes, (Wed Feb 3, 11:58 am)
Re: Improving OOM killer, Frans Pop, (Wed Feb 3, 12:29 pm)
Re: Improving OOM killer, David Rientjes, (Wed Feb 3, 12:52 pm)
Re: Improving OOM killer, Frans Pop, (Wed Feb 3, 1:12 pm)
Re: Improving OOM killer, David Rientjes, (Wed Feb 3, 1:26 pm)
Re: Improving OOM killer, Lubos Lunak, (Wed Feb 3, 2:22 pm)
Re: Improving OOM killer, Lubos Lunak, (Wed Feb 3, 3:54 pm)
Re: Improving OOM killer, Lubos Lunak, (Wed Feb 3, 3:55 pm)
Re: Improving OOM killer, David Rientjes, (Wed Feb 3, 5:00 pm)
Re: Improving OOM killer, David Rientjes, (Wed Feb 3, 5:05 pm)
Re: Improving OOM killer, Rik van Riel, (Wed Feb 3, 5:18 pm)
Re: Improving OOM killer, Lubos Lunak, (Thu Feb 4, 12:58 am)
Re: Improving OOM killer, Jiri Kosina, (Thu Feb 4, 2:50 am)
Re: Improving OOM killer, David Rientjes, (Thu Feb 4, 2:34 pm)
Re: Improving OOM killer, David Rientjes, (Thu Feb 4, 2:39 pm)
Re: Improving OOM killer, David Rientjes, (Thu Feb 4, 2:48 pm)
Re: Improving OOM killer, Rik van Riel, (Thu Feb 4, 3:06 pm)
Re: Improving OOM killer, David Rientjes, (Thu Feb 4, 3:14 pm)
Re: Improving OOM killer, Frans Pop, (Thu Feb 4, 3:31 pm)
Re: Improving OOM killer, David Rientjes, (Thu Feb 4, 3:53 pm)
Re: Improving OOM killer, Oliver Neukum, (Fri Feb 5, 12:35 am)
Re: Improving OOM killer, David Rientjes, (Tue Feb 9, 8:10 pm)
Re: Improving OOM killer, Lubos Lunak, (Wed Feb 10, 1:54 pm)
Re: Improving OOM killer, Lubos Lunak, (Wed Feb 10, 1:54 pm)
Re: Improving OOM killer, Rik van Riel, (Wed Feb 10, 2:09 pm)
Re: Improving OOM killer, Rik van Riel, (Wed Feb 10, 2:10 pm)
Re: Improving OOM killer, Lubos Lunak, (Wed Feb 10, 2:29 pm)
Re: Improving OOM killer, Lubos Lunak, (Wed Feb 10, 2:34 pm)
Re: Improving OOM killer, Alan Cox, (Wed Feb 10, 3:18 pm)
Re: Improving OOM killer, David Rientjes, (Wed Feb 10, 3:25 pm)
Re: Improving OOM killer, David Rientjes, (Wed Feb 10, 3:31 pm)
Re: Improving OOM killer, Lubos Lunak, (Thu Feb 11, 2:50 am)
Re: Improving OOM killer, Lubos Lunak, (Thu Feb 11, 3:16 am)
Re: Improving OOM killer, David Rientjes, (Thu Feb 11, 2:17 pm)