ZFS-lighttpd2-sendfile, too high IO

Laszlo KAROLYI szoftos at freemail.hu
Mon Sep 12 19:09:11 UTC 2011


But does this explain the 4-5mbyte/s reads when having a 15mbit/s network load?

Bob Friesenhahn <bfriesen at simple.dallas.tx.us> írta:
>On Mon, 12 Sep 2011, K. Macy wrote:
>
>> 2011/9/12 Steven Hartland <killing at multiplay.co.uk>:
>>> sendfile doesn&#39;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&#39;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/
>_______________________________________________
>freebsd-fs at freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-fs
>To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"


More information about the freebsd-fs mailing list