[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CANn89i+JziB6-WTqyK47=Otn8i6jShTz=kzTJbJdJgC0=Kfw6A@mail.gmail.com>
Date: Fri, 27 Jun 2025 03:19:27 -0700
From: Eric Dumazet <edumazet@...gle.com>
To: Feng Yang <yangfeng59949@....com>
Cc: davem@...emloft.net, kuba@...nel.org, pabeni@...hat.com, horms@...nel.org,
willemb@...gle.com, almasrymina@...gle.com, kerneljasonxing@...il.com,
ebiggers@...gle.com, asml.silence@...il.com, aleksander.lobakin@...el.com,
stfomichev@...il.com, yangfeng@...inos.cn, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2] skbuff: Improve the sending efficiency of __skb_send_sock
On Fri, Jun 27, 2025 at 2:44 AM Feng Yang <yangfeng59949@....com> wrote:
>
> From: Feng Yang <yangfeng@...inos.cn>
>
> By aggregating skb data into a bvec array for transmission, when using sockmap to forward large packets,
> what previously required multiple transmissions now only needs a single transmission, which significantly enhances performance.
> For small packets, the performance remains comparable to the original level.
>
> When using sockmap for forwarding, the average latency for different packet sizes
> after sending 10,000 packets is as follows:
> size old(us) new(us)
> 512 56 55
> 1472 58 58
> 1600 106 79
> 3000 145 108
> 5000 182 123
>
> Signed-off-by: Feng Yang <yangfeng@...inos.cn>
Instead of changing everything, have you tried strategically adding
MSG_MORE in this function ?
Powered by blists - more mailing lists