From: Andrew Morton <akpm@osdl.org>
To: Harald Welte <laforge@netfilter.org>
Cc: sebest@ovibes.net, linux-kernel@vger.kernel.org,
netfilter-devel@lists.netfilter.org, netdev@oss.sgi.com
Subject: Re: kernel 2.6.7 -> page allocation failure. order:1, mode:0x20 (netfilter?)
Date: Sun, 25 Jul 2004 17:59:45 -0700 [thread overview]
Message-ID: <20040725175945.15999990.akpm@osdl.org> (raw)
In-Reply-To: <20040720024741.GF27487@obroa-skai.de.gnumonks.org>
Harald Welte <laforge@netfilter.org> wrote:
>
> what's worrying me is the part above... how would skb_checksum_help
> directly end up in copy_from_user()?
That'll be leftover gunk on the stack. Enabling frame pointers makes that
go away.
> > swapper: page allocation failure. order:1, mode:0x20
> > [<c013d770>] __alloc_pages+0x2da/0x34a
> > [<c013d805>] __get_free_pages+0x25/0x3f
> > [<c0140e28>] kmem_getpages+0x2b/0xdc
> > [<c0141bfc>] kfree_skbmem+0x24/0x2c
> > [<c0141c5d>] cache_grow+0xe5/0x2a4
> > [<c0141f8a>] cache_grow+0x146/0x2a4
> > [<c0295917>] cache_alloc_refill+0x1cf/0x29f
> > [<c014262a>] __kmalloc+0x85/0x8c
> > [<c02681f1>] tcp_transmit_skb+0x411/0x68a
> > [<c0296621>] alloc_skb+0x47/0xe0
> > [<c026875e>] tcp_write_xmit+0x16d/0x2d6
> > [<c01da1ac>] skb_copy+0x33/0xde
> > [<c026ca5b>] copy_from_user+0x42/0x6e
>
> Does anybody have a clue what's going on?
Networking tried to do an atomic 1-order allocation and there were no
1-order pages available in the free page pools. It's pretty much
unavoidable, and the caller simply needs to handle it - presumably by
dropping the packet.
Its frequency can be reduced by increasing /proc/sys/vm/min_free_kbytes.
It can be eliminated by using GFP_KERNEL. It can be hugely reduced by
sticking to 0-order allocations.
I wouldn't worry about this unless someone is seeing a lot of them (a
significant number of packets are getting dropped)
prev parent reply other threads:[~2004-07-26 0:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <40FB93FE.90308@ovibes.net>
2004-07-20 2:47 ` kernel 2.6.7 -> page allocation failure. order:1, mode:0x20 (netfilter?) Harald Welte
2004-07-20 9:06 ` Sebastien ESTIENNE
2004-07-26 0:59 ` Andrew Morton [this message]
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=20040725175945.15999990.akpm@osdl.org \
--to=akpm@osdl.org \
--cc=laforge@netfilter.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@oss.sgi.com \
--cc=netfilter-devel@lists.netfilter.org \
--cc=sebest@ovibes.net \
/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).