Search Linux Wireless

Re: rt2800usb: page allocation failure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux