Re: sendfile() documentation

Matti Aarnio (matti.aarnio@sonera.fi)
Wed, 16 Dec 1998 20:22:37 +0200 (EET)


Felix von Leitner <leitner@math.fu-berlin.de> wrote:
> 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.

Indeed. Last week a collegue of mine was amazed when he heard
that ftpd running at ftp.cdrom.com is now using sendfile(),
and that system load dropped dramatically when that change was
made in there -- it is a FreeBSD system.

There were other Linux/BSD comparison presented too, but that
week was spent at Orlando/IETF, not at Boston (or where ever
the LISA'98 was held..)

....
> Felix

/Matti Aarnio <matti.aarnio@sonera.fi>

-
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/