lkml.org 
[lkml]   [2008]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 0/8][for -mm] mem_notify v6
Hi Tom

On 4/17/08, Tom May <tom@tommay.com> wrote:
>
> Here is the start and end of the output from the test program. At
> each /dev/mem_notify notification Cached decreases, then eventually
> Mapped decreases as well, which means the amount of time the program
> has to free memory gets smaller and smaller. Finally the oom killer
> is invoked because the program can't react quickly enough to free
> memory, even though it can free at a faster rate than it can use
> memory. My test is slow to free because it calls nanosleep, but this
> is just a simulation of my actual program that has to perform garbage
> collection before it can free memory.

I have also seen this behaviour in my static tests with low mem
notification on swapless systems. It is a problem with small programs
(typically static test programs) where the text segment is only a few
pages. I have not seen this behaviour in larger programs which use a
larger working set. As long as the system working set is bigger than
the amount of memory that needs to be allocated, between every
notification reaction opportunity, it seems to be ok.

/Daniel


\
 
 \ /
  Last update: 2008-04-23 10:31    [W:0.116 / U:0.496 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site