From: Johannes Stezenbach <js@sig21.net>
To: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Igor Plyatov <plyatov@gmail.com>, linux-wireless@vger.kernel.org
Subject: Re: rt2800usb: page allocation failure
Date: Wed, 13 Apr 2011 09:55:45 +0200 [thread overview]
Message-ID: <20110413075545.GA18716@sig21.net> (raw)
In-Reply-To: <4DA4FE7C.8070807@lwfinger.net>
On Tue, Apr 12, 2011 at 08:38:04PM -0500, Larry Finger wrote:
> On 04/12/2011 04:22 PM, Johannes Stezenbach wrote:
> >
> >I don't think the allocation uses the MTU, rather rt2x00queue_alloc_rxskb()
> >uses some hw specific constants. No idea if these can be reduced,
> >but multi-page GFP_ATOMIC allocations can easily fail.
>
> That is likely. Those hw specific constants add up to 40 bytes, thus
> the major part is actual buffer. That is set at 3840 bytes, thus I
> don't understand why the request was order 1.
An skb has quite a bit of overhead, there's full
struct skb_shared_info inside, plus some padding.
See dev_alloc_skb() -> __alloc_skb().
If think that pushes it above 4096 bytes.
Johannes
prev parent reply other threads:[~2011-04-13 7:55 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-12 15:38 rt2800usb: page allocation failure Igor Plyatov
2011-04-12 18:00 ` Larry Finger
2011-04-12 21:22 ` Johannes Stezenbach
2011-04-13 1:38 ` Larry Finger
2011-04-13 7:54 ` Helmut Schaa
2011-04-13 7:55 ` Johannes Stezenbach [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=20110413075545.GA18716@sig21.net \
--to=js@sig21.net \
--cc=Larry.Finger@lwfinger.net \
--cc=linux-wireless@vger.kernel.org \
--cc=plyatov@gmail.com \
/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).