Re: Splice on blocking TCP sockets again..
From: Volker Lendecke <hidden>
Date: 2009-09-30 07:13:43
Attachments
- signature.asc [application/pgp-signature] 197 bytes
From: Volker Lendecke <hidden>
Date: 2009-09-30 07:13:43
On Tue, Sep 29, 2009 at 06:48:20PM -0600, Jason Gunthorpe wrote:
FWIW, it looks like samba has a splice code now, but doesn't enable it due to this issue?
Right. What I've learned from the comments is that splice is only usable in multi-threaded programs. One thread is reading, one is writing from the other end. I deferred using splice until we have the proper architecture to do sync syscalls in helper threads to make them virtually async. We have some code for that now, but it's not a high priority for me at this moment. Volker