From: Andrew Morton <akpm@linux-foundation.org>
To: arnout@mind.be
Cc: bugzilla-daemon@bugzilla.kernel.org, linux-mm@kvack.org
Subject: Re: [Bug 14403] New: Kernel freeze when going out of memory
Date: Thu, 15 Oct 2009 16:33:45 -0700 [thread overview]
Message-ID: <20091015163345.4898b34e.akpm@linux-foundation.org> (raw)
In-Reply-To: <bug-14403-27@http.bugzilla.kernel.org/>
(switched to email. Please respond via emailed reply-to-all, not via the
bugzilla web interface).
On Wed, 14 Oct 2009 11:44:08 GMT
bugzilla-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=14403
>
> Summary: Kernel freeze when going out of memory
> Product: Memory Management
> Version: 2.5
> Kernel Version: 2.6.24.6 through 2.6.31.1
> Platform: All
> OS/Version: Linux
> Tree: Mainline
> Status: NEW
> Severity: high
> Priority: P1
> Component: Other
> AssignedTo: akpm@linux-foundation.org
> ReportedBy: arnout@mind.be
> CC: arnout@mind.be
> Regression: No
>
>
> Created an attachment (id=23404)
> --> (http://bugzilla.kernel.org/attachment.cgi?id=23404)
> console log during freeze (bzip2)
>
> I get very frequent kernel freezes on two of my systems when they go out of
> memory. This happens with all kernels I tried (2.6.24 through 2.6.31). These
> systems run a set of applications that occupy most of the memory, they have no
> swap space, and they have very high network and disk activity (xfs). The
> network chip varies (tg3, bnx2, r8169).
>
> Symptoms are that no user processes make any progress, though SysRq interaction
> is still possible. SysRq-I recovers the system (init starts new gettys).
>
> During the freeze, there are a lot of page allocation failures from the network
> interrupt handler. There doesn't seem to be any invocation of the OOM killer
> (I can't find any 'kill process ... score ...' messages), although before the
> freeze the OOM killer is usually called successfully a couple of times. Note
> that the killed processes are restarted soon after (but with lower memory
> consumption).
>
> During the freeze, pinging and arping the system is (usually) still possible.
> There is very little traffic on the network interface, most of it is broadcast.
> There are also TCP ACKs still going around. The amount of page allocation
> failures seems to correspond more or less with the amount of traffic on the
> interface, but it's hard to be sure (serial line has delay and printks are not
> timestamped). Still, some skb allocations must be successful or the ping would
> never get a reply.
>
> Manual invocation of the OOM killer doesn't seem to do anything (nothing is
> killed, no memory is freed).
>
> Attached is a long log taken over the serial console. In the beginning there
> are some invocations of the OOM killer which bring userspace back (as can be
> seen from the syslog output that appears after a while). Then, while the
> system is frozen there is a continuous stream of page allocation failures (2158
> in this hour). This log corresponds to about 1 hour of frozen time (from 11:48
> till 12:47). In this time I did a couple of SysRq-T's, a SysRq-F with no
> results, a SysRq-E with no results (not surprising since userspace is never
> invoked), and finally a SysRq-I where the SysRq-M immediately before and after
> show that it was successful.
>
> About the memory usage: 620MB is due to files in tmpfs that I created in order
> to trigger the out of memory situation sooner.
>
It would help if we could see the result of the sysrq-t output when the
kernel is frozen.
- enable and configure a serial console or netconsole
(Documentation/networking/netconsole.txt)
- boot with log_buf_len=1M
- run `dmesg -n 7'
- freeze the kernel
- hit sysrq-t
- send us the resulting output. Please don't let it get wordwrapped
by your email client!
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next parent reply other threads:[~2009-10-15 23:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-14403-27@http.bugzilla.kernel.org/>
2009-10-15 23:33 ` Andrew Morton [this message]
2009-10-16 9:16 ` [Bug 14403] New: Kernel freeze when going out of memory Arnout Vandecappelle
2009-10-16 13:43 ` Peter Trekels
2009-10-16 13:43 ` Peter Trekels
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=20091015163345.4898b34e.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=arnout@mind.be \
--cc=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-mm@kvack.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;
as well as URLs for NNTP newsgroup(s).