[RFC] increase name sizes and reorder structures
Morten Brørup
mb at smartsharesystems.com
Fri Aug 14 14:12:11 CEST 2026
> From: Stephen Hemminger [mailto:stephen at networkplumber.org]
> Sent: Thursday, 13 August 2026 19.13
>
> This is a trial balloon to see what Morten's suggestion would
> look like.
>
> Increase memzone name size to 64 and reorder structure
> to keep it cache friendly. Move the zone name to the end of
> struct rte_memzone and order the remaining members by size.
> The structure is then naturally aligned
> with no internal padding on both 64-bit and 32-bit targets, so the
> __rte_packed_begin/end markers can be removed.
>
> With memzone size of 64 but don't need all that for stack names.
> Increase the size to 32 which adds some space without impacting
> cache layout.
>
> The memzone increase to 64 allows ring names to grow to 32 characters.
> Don't need to go larger which could cause cache changes when ring is
> embedded in structures.
>
> Bugzilla ID: 1984
>
> Reported-by: Morten Brørup <mb at smartsharesystems.com>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
> ---
Not as much as I hoped for, but non-intrusive.
A small improvement is still an improvement!
Typo in the release notes:
"incre " -> "increased"
Reviewed-by: Morten Brørup <mb at smartsharesystems.com>
More information about the dev
mailing list