sendfile() in varnish
phk at phk.freebsd.dk
Thu May 22 22:22:18 CEST 2008
In message <2BEFE70A-FCB1-4E37-96BC-B6D8E5252C0A at irx.jp>, Yutaro Shimamura writ
>value of varnishstat "Objects sent with sendfile" is almost 0.
> 0 0.00 0.00 Objects sent with sendfile
>so, write() called.
> 37327571 335.20 157.86 Objects sent with write
>when do you use sendfile()?
By default: never, there are problems with all sendfile() implementations
that prevent them from being usable in Varnish. Only FreeBSD-Current
and later FreeBSD-8 will support sendfile().
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the varnish-dev