LWN.net Logo

tee() with your splice()?

tee() with your splice()?

Posted Apr 23, 2006 4:30 UTC (Sun) by anLWNreader (guest, #36915)
Parent article: tee() with your splice()?

> it is stored in the new splice_pipe field of the task structure, so each process can only have one such connection running at any given time.

This seems like an unfortunate limitation to me... As sendfile is now using splice, it means every process can only have one sendfile going at a given time? I hope I just misunderstood something... Think about web servers with possibly hundreds of threads all wanting to do sendfile.


(Log in to post comments)

tee() with your splice()?

Posted May 10, 2006 17:56 UTC (Wed) by nevyn (subscriber, #33129) [Link]

The task struct is for tasks, not processes. The article was misleading. A thread is a task, as is a process. So each thread/process can only have one sendfile() running at once (which is basically how it is now -- at least I'm assuming they don't mean one sendfile over all open fds, which would make it worthless).

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds