lkml.org 
[lkml]   [2004]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: fs/eventpoll : reduce sizeof(struct epitem)
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@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 14:00    [W:1.811 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site