Subject: Re: [PATCH][SOCK]: shrink struct sock

From: Eric Dumazet <[email-masked]>
Date: Fri, 04 May 2007 08:10:15 +0200

Arnaldo Carvalho de Melo a écrit :
> 
> [acme@mica linux-2.6]$ pahole -C sk_buff_head net/core/sock.o
> struct sk_buff_head {
> 	struct sk_buff *           next;                 /*     0     8 */
> 	struct sk_buff *           prev;                 /*     8     8 */
> 	__u32                      qlen;                 /*    16     4 */
> 	spinlock_t                 lock;                 /*    20     8 */
> }; /* size: 32, cachelines: 1 */
>    /* padding: 4 */
>    /* last cacheline: 32 bytes */

Hum, maybe not enough tea this morning, but I always thought spinlock_t size 
was 4 bytes....