lkml.org 
[lkml]   [2001]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: skb allocation problems
Date
> On Mon, Apr 09, 2001 at 07:03:46PM +0300, Imran.Patel@nokia.com wrote:
> > I have written a test module which closely mirrors what my
> code tries to
> > do(attached below). This is what i get:
> >
> > PRE_R: old skb:c371ee40 new skb:c371ee30
>
> I guess oldskb->len is <=0xc, and the slab allocator packs
> them near together
> in the same zone.

nope. i have checked it, the length of the older skb is perfectly ok.....and
i even found that this weird behaviour happens only when the old skb buffer
length is between 80 and 224 bytes.

and apart from this problem, i even found out that when i send a packet >=
186 bytes the kernel allocates a lot of memory in the skb...the output from
a simple test module is below:

PRE_R: skb: c7aa0da0 skblen: 185 headroom: 32 tailroom: 7 total_len: 224
PRE_R: skb: c7a43020 skblen: 186 headroom: 32 tailroom: 1334 total_len: 1552

This was generated by sending ipv4 ping packets of different sizes...I
tested it using 2.4.1 and 2.4.3 on two machines (both dual stack).
What the hell's going on :( ???

imran

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:17    [W:0.764 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site