lkml.org 
[lkml]   [2011]   [Jan]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3]mm/oom-kill: direct hardware access processes should get bonus
On Tue, 04 Jan 2011 15:51:44 +0800
"Figo.zhang" <zhangtianfei@leadcoretech.com> wrote:

>
> i had send the patch to protect the hardware access processes for
> oom-killer before, but rientjes have not agree with me.
>
> but today i catch log from my desktop. oom-killer have kill my "minicom"
> and "Xorg". so i think it should add protection about it.
>

Off topic.

In this log, I found

> > Jan 4 15:22:55 figo-desktop kernel: Free swap = -1636kB
> > Jan 4 15:22:55 figo-desktop kernel: Total swap = 0kB
> > Jan 4 15:22:55 figo-desktop kernel: 515070 pages RAM

... This means total_swap_pages = 0 while pages are read-in at swapoff.

Let's see 'points' for oom
==
points = (get_mm_rss(p->mm) + get_mm_counter(p->mm, MM_SWAPENTS)) * 1000 /
totalpages;
==

Here, totalpages = total_ram + total_swap but totalswap is 0 here.

So, points can be > 1000, easily.
(This seems not to be related to the Xorg's death itself)



Thanks,
-Kame



\
 
 \ /
  Last update: 2011-01-04 09:37    [W:0.203 / U:0.336 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site