Re: [PATCH 0/3] vmsplice: make vmsplice a trivial wrapper for preadv2/pwritev2
David Laight <[email protected]>
| Newsgroups | org.kernel.vger.linux-api,dev.linux.lists.patches,org.kernel.vger.linux-fsdevel,org.kernel.vger.linux-kernel,org.kernel.vger.netdev,org.kvack.linux-mm |
|---|---|
| Message-ID | <20260606112252.3c70bad6@pumpkin> |
On Fri, 5 Jun 2026 17:20:34 +0200 Stefan Metzmacher <[email protected]> wrote: > Hi David, > > >>> So sendfile() as a concept (whether you use combinations of splice() > >>> system calls or the sendfile system call itsefl) isn't necessarily > >>> only about the zero-copy, it's really also about avoiding the user > >>> space memory management. > >> > >> I don't think so. Ok, maybe for webservers just serving tiny > >> html files, that's true. But for me with Samba it's really the > >> copy_to/from_iter() that is the major factor. > > > > Is that copy also doing the ip checksum? > > Not in my tests. I guess there's offload in the network hardware > for this. There will be, it is just whether the syscall checksum is actually being suppressed. -- David > > At least at the syscall layer of sendmsg() there's no checksuming > happening. > > metze >