ZFS-lighttpd2-sendfile, too high IO

Bob Friesenhahn bfriesen at simple.dallas.tx.us
Mon Sep 12 18:58:25 UTC 2011


On Mon, 12 Sep 2011, K. Macy wrote:

> 2011/9/12 Steven Hartland <killing at multiplay.co.uk>:
>> sendfile doesn't work as you might expect on zfs, its not zero copy due to
>> the use of none buffer pool memory.
>>
>> You do get a benefit but it requires double the amount of memory to get it
>> so we've disabled sendfile
>> under nginx for zfs based hosts for this very reason.
>
> In my performance testing, sending from mmaped I/O on ZFS was
> dramatically faster (> 2x) than sendfile.

The problem is that since the zfs ARC and the backing memory used for 
the mapping are not the same, twice as much memory is used.  This 
would not be good for streaming if the machine is short on RAM.

Bob
-- 
Bob Friesenhahn
bfriesen at simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/


More information about the freebsd-fs mailing list