feature request: support for MSG_ZEROCOPY and MSG_TRUNC flags
- Dominant language
- C
- Stars
- 8.8k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
See discussion 1520, and see neper for sample code. https://github.com/google/neper
This will be a little bit of work, as you'll need to use send/recv instead of read/write calls.
### Discussed in https://github.com/esnet/iperf/discussions/1520
Originally posted by **rjmcmahon** May 17, 2023
Hi,
I'm considering adding 200G+ support to iperf 2 and thought it might be interesting to get iperf 3 engineers' thoughts. One initial question I have is about using sendfile vs the **SO_ZEROCOPY**/[MSG_ZEROCOPY](https://www.kernel.org/doc/html/v4.15/networking/msg_zerocopy.html) socket/send option. Any thoughts on that?
Also, I'm wondering about [BIG TCP](https://www.phoronix.com/news/Linux-6.3-Networking-BIG-TCP#:~:text=With%20Linux%206.3%2C%20the%20IPv3,driver%20to%20support%20the%20feature.) and if there have been any experiments with v6 or possibly v4?
Bob
PS. A [reddit thread on 400G](https://www.reddit.com/r/networking/comments/12sjseb/400gbps_network_interface_card_iperf_testing/)
Contributor guide
Assessment
This issue has not been assessed yet.