sendfile() in varnish

Yutaro Shimamura yu at irx.jp
Thu May 22 13:24:42 CEST 2008


Hello.

I using Varnish for Ajax based API server.
with
                 -T 127.0.0.1:10411 \
                 -f /var/home/yu/etc/000.vcl \
                 -s file,/home/cache,16g \
                 -p thread_pool_min=512 \
                 -p thread_pool_max=3096 \
                 -p thread_pools=16 \
                 -p listen_depth=3096 \
                 -p client_http11=on \
                 -p backend_http11=on \
                 -p cc_command="cc -fpic -shared -O3 -Wl,-x -o %o %s" \
                 -p lru_interval=21600 \
                 -P /var/run/varnishd.pid \
                 -u www \
                 -a 0.0.0.0:80

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()?

regards,

-------
Yutaro Shimamura
yu at irx.jp



More information about the varnish-dev mailing list