Re: fs/eventpoll : reduce sizeof(struct epitem)

From: Davide Libenzi
Date: Wed Feb 04 2004 - 23:26:05 EST


On Wed, 4 Feb 2004, dada1 wrote:

> Hi Davide
>
> On a x86_64 platform, I noticed that the size of (struct epitem) is 136
> bytes, rounded to 192 (because of L1_CACHE alignment of 64 bytes)
>
> If you reorder some fields of this structure, we can reduce the size to
> 128 bytes.
>
> The rationale is to group nwait & fd integer (32bits) fields, instead of
> mixing them with pointers (64 bits)

Good catch. Thx I will.



- Davide


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