lkml.org 
[lkml]   [1996]   [Nov]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: X much slower in 2.0.24 than in 1.2.13
Alan Cox wrote:
>
> > | Interesting. These only change the size of some fields. It may be a field
> > | size issue. Note that you dont want to run with that sock.h patch reversed
> > | as it lets people crash your machine..
> >
> > The 2.0.24 changes to "struct sock" in "linux/include/net/sock.h" push
> > its size, in my kernel, up to 0x1fc. This new size, plus the
> > "kmalloc"'s "block_header" is just big enough to push "struct sock"
> > allocations to the next allocation order.
> We hardly ever allocate a struct sock
Since the last patch I see to sock.h just adds one field, but adds it in
the middle rather than at the tail, that might be shoving something (or
many somethings) off the end of a cache line... Has anyone tried
optimizing the ordering for cache friendliness, or is it the way it is
for some other reason?

Keith

--
Their priests and their friars/Behold me in dread
Because I still love you,/My love, and you're dead.
---Dead Can Dance, "I Am Stretched On Your Grave"

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