Re: sendfile() documentation

Felix von Leitner (leitner@math.fu-berlin.de)
Wed, 16 Dec 1998 20:16:01 +0100


Thus spake Pawel Krawczyk (kravietz@tau.ceti.com.pl):
> BTW has anynone tried to actually use sendfile() in real world? I.e. in
> Apache or other daemons that tend to transfer big amounts of data.

To be honest, I don't understand why anyone would want to use it.
If I use sendfile, I need to open a new process/thread for every
connection, right? OK, apache already does that, but that eats more
resources than a single-threaded select based server, doesn't it?

It is probably a big win for FTP servers who tend to be multi-process
anyway.

Does anyone have an example for the CORK option mentioned in the man
page from Andy? I do not really understand it, especially why it is
recommended in conjunction with sendfile. Sound's like a win for a web
server that uses write() to write the header line by line, buy maybe I
completely misunderstood that option.

Felix

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/