public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* sendfile/splice - Non-blocking input?
@ 2011-05-30  8:45 Aiko Barz
  0 siblings, 0 replies; only message in thread
From: Aiko Barz @ 2011-05-30  8:45 UTC (permalink / raw)
  To: linux-kernel

Hello,

is sendfile/splice completely non-blocking on the input side?

I am writing a small webserver for educational reasons. I use epoll to
deal with the network part. From what I have read, I have to avoid
blocking code under all circumstances. And the linux implementation
of sendfile seems to block until the file enters the pagecache.

Most of the docs are not completely up to date. I figured out, that
sendfile is now a frontend for splice. So, does it still block?

Or differently asked: May I call sendfile directly from the few epoll
threads or do I have to execute sendfile/splice within independent
worker threads?

Kind regards,
	Aiko Barz
-- 
:wq ✉

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-05-30  8:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-30  8:45 sendfile/splice - Non-blocking input? Aiko Barz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox