[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <cfd9edbf0804230127k33a56312i6582f926e00ea17@mail.gmail.com>
Date: Wed, 23 Apr 2008 10:27:46 +0200
From: "Daniel SpÄng" <daniel.spang@...il.com>
To: "Tom May" <tom@...may.com>
Cc: "KOSAKI Motohiro" <kosaki.motohiro@...fujitsu.com>,
linux-mm@...ck.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 0/8][for -mm] mem_notify v6
Hi Tom
On 4/17/08, Tom May <tom@...may.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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists