Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add MSG_ZEROCOPY tests #16

Open
jwbensley opened this issue Jan 6, 2018 · 2 comments
Open

Add MSG_ZEROCOPY tests #16

jwbensley opened this issue Jan 6, 2018 · 2 comments

Comments

@jwbensley
Copy link
Owner

https://www.kernel.org/doc/html/latest/networking/msg_zerocopy.html

The documention uses send(), can this also be used with sendmsg()?

@jwbensley
Copy link
Owner Author

From the documentation:

The change to send (or sendto, sendmsg, sendmmsg) itself is trivial. Pass the new flag.

Also:

Copy avoidance is not a free lunch. As implemented, with page pinning, it replaces per byte copy cost with page accounting and completion notification overhead. As a result, MSG_ZEROCOPY is generally only effective at writes over around 10 KB.

@jwbensley
Copy link
Owner Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant