Re: [lng-odp] [PATCH] linux-generic: buffer: reduce field size and reorder for better packing

2015-06-24 Thread Ola Liljedahl
On 23 June 2015 at 16:03, Nicolas Morey-Chaisemartin nmo...@kalray.eu wrote: On 06/23/2015 03:17 PM, Ola Liljedahl wrote: }; } flags; - int type; /* buffer type */ - int event_type; /* for reuse as event

Re: [lng-odp] [PATCH] linux-generic: buffer: reduce field size and reorder for better packing

2015-06-24 Thread Bill Fischofer
We want to standardize on the use of stdint for portability (and predictability of struct sizes), so yes, please post updated patch. On Wed, Jun 24, 2015 at 11:38 AM, Ola Liljedahl ola.liljed...@linaro.org wrote: On 23 June 2015 at 16:03, Nicolas Morey-Chaisemartin nmo...@kalray.eu wrote:

Re: [lng-odp] [PATCH] linux-generic: buffer: reduce field size and reorder for better packing

2015-06-23 Thread Nicolas Morey-Chaisemartin
On 06/23/2015 03:17 PM, Ola Liljedahl wrote: }; } flags; - int type; /* buffer type */ - int event_type; /* for reuse as event */ + shortallocator; /*

[lng-odp] [PATCH] linux-generic: buffer: reduce field size and reorder for better packing

2015-06-22 Thread Nicolas Morey-Chaisemartin
odp_buffer_hdr_t was: /* size: 136, cachelines: 3, members: 15 */ /* sum members: 124, holes: 3, sum holes: 12 */ and is now: /* size: 120, cachelines: 2, members: 15 */ /* sum members: 116, holes: 1, sum holes: 4 */ Signed-off-by: Nicolas Morey-Chaisemartin