Messages in this thread | | | Date | Thu, 20 Apr 2006 12:26:47 -0700 (PDT) | Subject | Re: Linux 2.6.17-rc2 | From | "David S. Miller" <> |
| |
From: Jens Axboe <axboe@suse.de> Date: Thu, 20 Apr 2006 16:50:42 +0200
> On Wed, Apr 19 2006, Linus Torvalds wrote: > > - vmsplice() system call to basically do a "write to the buffer", but > > using the reference counting and VM traversal to actually fill the > > buffer. This means that the user needs to be careful not to re-use the > > user-space buffer it spliced into the kernel-space one (contrast this > > to "write()", which copies the actual data, and you can thus re-use the > > buffer immediately after a successful write), but that is often easy to > > do. > > This I already did, it was pretty easy and straight forward. I'll post > it soonish.
Do we plan to do vmsplice() to sockets? That's interesting, but requires some serious cooperation from things like TCP so that the indication of "buffer can be reused now, thanks" is explicit and indicated as soon as ACK's come back for those parts of the data stream.
Even UDP would need to wait until the card is done with transmit, and we have DCCP and SCTP too.
People would want to be able to get event notifications of this, or do we plan to just block? Blocking could be problematic, performance wise.
Anyways, I'm just stabbing in the dark. It would be useful, because there is no real clan way to use sendfile() for zero copy of anonymous user data, and this vmsplice() thing seems like it could bridge that gap if we do it right. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |