From: Rob Landley <rob@landley.net>
To: Dave Jones <davej@redhat.com>
Cc: Robert Hancock <hancockr@shaw.ca>,
linux-kernel <linux-kernel@vger.kernel.org>
Subject: Re: echo 0 > /proc/sys/vm/swappiness triggers OOM killer under 2.6.14.
Date: Wed, 2 Nov 2005 13:13:24 -0600 [thread overview]
Message-ID: <200511021313.25198.rob@landley.net> (raw)
In-Reply-To: <20051102073251.GB23297@redhat.com>
On Wednesday 02 November 2005 01:32, Dave Jones wrote:
> On Tue, Nov 01, 2005 at 02:37:01AM -0600, Rob Landley wrote:
> > oom-killer: gfp_mask=0x400d2, order=0
>
> something explicitly asked for a highmem page.
>
> > 0 pages of HIGHMEM
>
> You don't have any.
>
> Calling the oom-killer in this situation seems drastic though.
>
> Dave
Except that the only difference between this test and the one that succeeds is
the value of "/proc/sys/vm/swappiness". With 60 it finishes, with 0 it
fails. The same binaries are being run by the same script, and in neither
case is there highmem in the kernel.
The test system is a User Mode Linux instance, running a shell script in place
of init. As a result, there are very few processes running in this system,
and only one is really active at a time.
At the failure point, the shell script calls the "make" of gcc 4.0.2, and far
and away the high point of memory usage is gcc's "genattrtab", which creates
and then compiles a .c file that causes the system to swap for about 5
minutes before it completes. (This is an extreme memory hog: Before I
started feeding UML a swap file, it couldn't complete with only 128 megs of
ram, but finished with 256. Now I'm telling UML mem=64M and attaching a 256
megabyte file to the Usermode Block Device driver, to act as a swap
partition.)
So at the point of failure, bash is blocked waiting on a child, make is
blocked waiting on a child, gcc is building its attrtab pig, and nothing else
(no daemons, not even init) is running on the system. It's a pretty
straightforward "the VM goes nuts in a low memory situation" case.
If you'd like to reproduce this, I can send you my build script. It's
self-contained, downloads all the source code it needs automatically, and
either succeeds or reproduces the problem quite deterministically depending
on whether or not the "echo 0 > /proc/sys/vm/swappiness" line is present or
not.
Rob
next prev parent reply other threads:[~2005-11-02 19:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <53vpu-s9-17@gated-at.bofh.it>
2005-11-01 4:05 ` echo 0 > /proc/sys/vm/swappiness triggers OOM killer under 2.6.14 Robert Hancock
2005-11-01 8:37 ` Rob Landley
2005-11-02 7:32 ` Dave Jones
2005-11-02 19:13 ` Rob Landley [this message]
[not found] <53VDs-5r1-5@gated-at.bofh.it>
[not found] ` <53VDs-5r1-3@gated-at.bofh.it>
[not found] ` <5400l-3iY-37@gated-at.bofh.it>
2005-11-02 0:07 ` Robert Hancock
2005-11-02 22:24 ` Rob Landley
2005-10-31 0:09 Rob Landley
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200511021313.25198.rob@landley.net \
--to=rob@landley.net \
--cc=davej@redhat.com \
--cc=hancockr@shaw.ca \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox