Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Varnish: Misc

to sendfile(2) or not to sendfile(2)

 

 

Varnish misc RSS feed   Index | Next | Previous | View Threaded


phk at phk

Feb 1, 2012, 2:26 AM

Post #1 of 1 (166 views)
Permalink
to sendfile(2) or not to sendfile(2)

Since the earliest days, Varnish have had support for sendfile(2) on
systems where sendfile(2) worked well enough.

That is roughly FreeBSD 8.x and later.

There are theoretical reasons why sendfile(2) should be faster than
writev(2), provided you use a file based storage (-sfile, -spersistent)
but I have yet to see anybody telling me that these theoretical speedups
matter, or are even visible, in reality.

If you have the "sendfile_threshold" on your varnishd, you should have
a working sendfile, could you please try to change it contents and
tell me if you can see _any_ difference at all ?

VM parameters like page-faults per second etc might be where to look
for changes if you cannot see them elsewhere.

--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk [at] FreeBSD | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.

_______________________________________________
varnish-misc mailing list
varnish-misc [at] varnish-cache
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

Varnish misc RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.