From: Andrew Morton <akpm@osdl.org>
To: Christian Kujau <evil@g-house.de>
Cc: linux-kernel@vger.kernel.org
Subject: Re: oom with 2.6.11
Date: Wed, 16 Mar 2005 17:51:09 -0800 [thread overview]
Message-ID: <20050316175109.3c160d4d.akpm@osdl.org> (raw)
In-Reply-To: <4238DD01.9060500@g-house.de>
Christian Kujau <evil@g-house.de> wrote:
>
> unfortunately i've hit OOM again, this time with "#define DEBUG" enabled
> in mm/oom_kill.c:
>
> http://nerdbynature.de/bits/sheep/2.6.11/oom/oom_2.6.11.3.txt
>
> by "Mar 16 18:32" pppd died again and OOM kicked in 30min later.
> (there are a *lot* messages of a shell script named "check-route.sh". it's
> a little script which runs every minute or so to check if my default route
> is still ok and if ping to the outside world are possible. definitely not
> a memory hog, but noisy)
>
> since tracking the "most memory consuming applications" did not reveal any
> hints [1], i have monitored /proc/slabinfo and /proc/meminfo this time:
>
> http://nerdbynature.de/bits/sheep/2.6.11/oom/daily_stats-2.6.11.3.gz
>
> as stated before, i was suspecting pppd to be the bad guy here, and yes: i
> downgraded pppd to an earlier version and pppd (and the system) survived 2
> terminations of my dial-up ISP. yesterday i've upgraded back again to
> current pppd (debian/unstable) and the OOM problem returned. yes, i'll bug
> the debian people now (hello!), but grepping for "ppp" in
> daily_stats-2.6.11.3.gz gives no hits. so "pppd" does not get *any* points
> from mm/oom_kill.c and thus no attempts are made to kill it (it is always
> only kill'able with "-9").
The oom-killer tries to be nicer to processes which are running as root.
> furthermore, i thought /proc/slabinfo coud give
> me some hints about *where* all the memory went in. scrolling down this
> file to the bottom, where "SwapFree" shows "0 kB" i don't see any alarming
> numbers in the "slabinfo" right above "meminfo".
MemTotal: 256372 kB
MemFree: 3280 kB
Buffers: 608 kB
Cached: 3256 kB
SwapCached: 664 kB
Active: 105020 kB
Inactive: 20364 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 256372 kB
LowFree: 3280 kB
SwapTotal: 784468 kB
SwapFree: 0 kB
Dirty: 12 kB
Writeback: 0 kB
Mapped: 130332 kB
Slab: 61424 kB
CommitLimit: 912652 kB
Committed_AS: 1323548 kB
PageTables: 51668 kB
VmallocTotal: 778184 kB
VmallocUsed: 3464 kB
VmallocChunk: 774492 kB
Some application went berzerk, used up all the swap and then oomed the box.
You could perhaps run `top -d1' then hit M so the output is sorted by
bloatiness, then try to catch the culprit.
But it would be better to have some app which prints the N most
memory-hungry processes every second and simply scrolls that up the screen.
I'm not aware of such a thing, but it could be cooked up via
/proc/N/cmdline and /proc/N/statm.
next prev parent reply other threads:[~2005-03-17 1:51 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-08 15:21 Christian Kujau
2005-03-09 13:18 ` Mauricio Lin
2005-03-09 13:41 ` Mauricio Lin
2005-03-09 14:00 ` Christian Kujau
2005-03-10 15:12 ` Christian Kujau
2005-03-11 0:39 ` Andrew Morton
2005-03-11 1:14 ` Christian Kujau
2005-03-11 7:45 ` Pasi Kärkkäinen
2005-03-11 9:01 ` Mauricio Lin
2005-03-11 15:09 ` Christian Kujau
2005-03-15 8:52 ` Mauricio Lin
2005-03-15 14:12 ` Christian Kujau
2005-03-20 14:35 ` [SOLVED] " Christian Kujau
2005-03-11 10:59 ` Coywolf Qi Hunt
2005-03-11 15:10 ` Christian Kujau
2005-03-12 18:06 ` Christian Kujau
2005-03-17 1:27 ` Christian Kujau
2005-03-17 1:51 ` Andrew Morton [this message]
2005-03-17 2:00 ` Christian Kujau
2005-03-17 21:25 ` Coywolf Qi Hunt
2005-03-18 1:59 ` Christian Kujau
2005-03-09 13:22 OOM " Christian Kujau
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=20050316175109.3c160d4d.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=evil@g-house.de \
--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
Powered by JetHome