Reputation: 42379
The real scenario:
A UDP server has 10000 UDP clients which connected via public Internet IPv4 addresses.
The server wants to send one UDP datagram (whose payload size is 1024 in bytes) to the 10000 UDP clients.
Because the 10000 to-be-sent datagrams have the same payload, I want to avoid copying the payload 10000 times.
However, I tested with sendmsg
& sendmmsg
, and found the payload copy of 10000 times cannot be avoided.
My questions:
How to efficiently send one UDP datagram to 10000 destinations in Linux?
Does XDP help solve this issue?
Upvotes: 0
Views: 84