From: "Tobias Brox" <tobixen@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: OOM killer problem - how to read the kernel log?
Date: Fri, 9 Nov 2007 22:35:14 +0100 [thread overview]
Message-ID: <ef2af3100711091335y35c3d514u4faec75528fcec5b@mail.gmail.com> (raw)
We have a database server which we've had some problems with, we've
had some serious crashes (particularly during postgres vacuuming)
which couldn't be fixed without hardware reboot. We assumed that the
problem would go away by itself after upgrading the server to a new
box with 32G of RAM ... but, alas, one of the first days in operation
it first killed lots of postgres children during the evening, and
finally it crashed and required hardware reboot. The box is certainly
not out of memory, but after reading some posts here, I've understood
that memory management is a complex issue.
We're running 32 bits linux, maybe it would help to upgrade to 64 bits?
I'm pretty sure that everything we need to know is located in
/var/log/kernel.log - if we could only interpret it, that is. I'm
particularly curious about those lines:
Nov 8 18:15:17 localhost kernel: DMA free:3556kB min:68kB low:84kB
high:100kB active:52kB inactive:0kB present:16256kB pages_scanned:208
all_unreclaimable? yes
Nov 8 18:15:17 localhost kernel: lowmem_reserve[]: 0 873 33512 33512
Nov 8 18:15:17 localhost kernel: Normal free:3676kB min:3744kB
low:4680kB high:5616kB active:892kB inactive:1792kB present:894080kB
pages_scanned:3468 all_unreclaimable? yes
Nov 8 18:15:17 localhost kernel: lowmem_reserve[]: 0 0 261112 261112
Nov 8 18:15:17 localhost kernel: HighMem free:7347404kB min:512kB
low:35536kB high:70560kB active:15982108kB inactive:9299956kB
present:33422336kB pages_scanned:0 all_unreclaimable? no
Nov 8 18:15:17 localhost kernel: lowmem_reserve[]: 0 0 0 0
Nov 8 18:15:17 localhost kernel: DMA: 7*4kB 15*8kB 5*16kB 0*32kB
0*64kB 0*128kB 1*256kB 0*512kB 1*1024kB 1*2048kB 0*4096kB = 3556kB
Nov 8 18:15:17 localhost kernel: Normal: 1*4kB 0*8kB 24*16kB 2*32kB
1*64kB 0*128kB 0*256kB 0*512kB 1*1024kB 1*2048kB 0*4096kB = 3588kB
Nov 8 18:15:17 localhost kernel: HighMem: 2054*4kB 60332*8kB
54264*16kB 14863*32kB 4487*64kB 3716*128kB 1243*256kB 3228*512kB
80*1024kB 979*2048kB 169*4096kB = 7347608kB
I've copied out relevant files on
http://oppetid.no/~tobixen/oom_problem/ - it's the complete kernel
log, /proc/config.gz, /proc/slabinfo, /proc/meminfo and dmesg. Those
are of course fetched after the reboot.
atop shows a relatively stable situation with plenty of free RAM and
caches all the evening.
(CCs preferred)
next reply other threads:[~2007-11-09 21:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-09 21:35 Tobias Brox [this message]
2007-11-09 21:54 ` OOM killer problem - how to read the kernel log? Douglas McNaught
2007-11-10 14:02 ` Johannes Weiner
2007-11-10 16:09 ` Tobias Brox
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=ef2af3100711091335y35c3d514u4faec75528fcec5b@mail.gmail.com \
--to=tobixen@gmail.com \
--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