Welcome! Log In Create A New Profile

Advanced

Re: [quic] Why use sendmsg in loop instead of sendmmsg

Vladimir Homutov
February 09, 2022 06:38AM
On Wed, Feb 09, 2022 at 06:51:26AM +0000, Gao,Yan(媒体云) wrote:
> HI
> ngx_quic_create_datagrams use sendmsg in loop when without gso. Can use sendmmsg directly?

there are some reasons we don't do it:

first, attempt to send multiple packets at once makes the code more
complex, especially when you have to deal with multiple encryption levels.
Typically, this is an initial stage of the connection (i.e. handshake)
and you won't get much performance boost from sending multiple packets
at once. That's why we switch to GSO only for application-level packets.

second, sendmmsg() (while being useful) still doesn't provide breakthrough
performance gain. Probably, it would be beneficial to have sendmmsg()
support as well, but currently this is not a top priority.


_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

[quic] Why use sendmsg in loop instead of sendmmsg

gaoyan09 422 February 09, 2022 01:56AM

Re: [quic] Why use sendmsg in loop instead of sendmmsg

Vladimir Homutov 283 February 09, 2022 06:38AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 295
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready