RE: [RFC] mbuf: performance optimization

2024-01-21 Thread Morten Brørup
> From: Stephen Hemminger [mailto:step...@networkplumber.org] > Sent: Sunday, 21 January 2024 18.08 > > On Sun, 21 Jan 2024 06:32:42 +0100 > Morten Brørup wrote: > > > I suppose that reducing mbuf->nb_segs from 16 to 8 bit is realistic, > considering that a maximum size IP packet (64 KB) is unli

Re: [RFC] mbuf: performance optimization

2024-01-21 Thread Stephen Hemminger
On Sun, 21 Jan 2024 06:32:42 +0100 Morten Brørup wrote: > I suppose that reducing mbuf->nb_segs from 16 to 8 bit is realistic, > considering that a maximum size IP packet (64 KB) is unlikely to use more > than 64 plus some segments. Does anyone know of any use case with more than > 255 segment

[RFC] mbuf: performance optimization

2024-01-20 Thread Morten Brørup
What is the largest realistic value of mbuf->priv_size (the size of an mbuf's application private data area) in any use case? I am wondering if its size could be reduced from 16 to 8 bit. If a max value of 255 isn't enough, then perhaps by knowing that the private data area must be aligned by 8