[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070503.212227.74561366.davem@davemloft.net>
Date: Thu, 03 May 2007 21:22:27 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: acme@...stprotocols.net
Cc: netdev@...r.kernel.org
Subject: Re: [PATCH][SOCK]: shrink struct sock
From: Arnaldo Carvalho de Melo <acme@...stprotocols.net>
Date: Fri, 4 May 2007 01:11:01 -0300
>
> This saves 8 bytes out of struct sock in 64bit arches, tested on x86_64.
Thanks I'll apply this.
> Now struct sock has this layout, where we waste more 20 bytes, in four 4 byte
> paddings in struct skb_buff_head members (layout at the bottom) + one 4 bytes
> hole:
sk_buff_head is due for being killed from the whole tree. Nobody
really needs the qlen, few things really need the lock, and those that
do can define their own as needed :-)
There are also cases where we don't even need to dual-linkage so could
decrease it down to one pointer.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists