From owner-freebsd-fs@FreeBSD.ORG Mon Sep 12 19:09:11 2011 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0EDD1106566B for ; Mon, 12 Sep 2011 19:09:11 +0000 (UTC) (envelope-from szoftos@freemail.hu) Received: from fmx21.freemail.hu (fmx21.freemail.hu [195.228.245.71]) by mx1.freebsd.org (Postfix) with SMTP id 4F69E8FC17 for ; Mon, 12 Sep 2011 19:09:09 +0000 (UTC) Received: (qmail 7957 invoked from network); 12 Sep 2011 21:09:08 +0200 Received: from 195.228.245.211 (HELO localhost) (82.131.146.152) by fmx21.freemail.hu with SMTP; 12 Sep 2011 21:09:08 +0200 Date: Mon, 12 Sep 2011 21:09:08 +0200 (CEST) From: Laszlo KAROLYI To: freebsd-fs@freebsd.org In-Reply-To: Message-ID: X-Originating-IP: [82.131.146.152] X-HTTP-User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20100101 Firefox/6.0.2 MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=ISO-8859-2 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: ZFS-lighttpd2-sendfile, too high IO X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Sep 2011 19:09:11 -0000 But does this explain the 4-5mbyte/s reads when having a 15mbit/s network l= oad? Bob Friesenhahn =EDrta: >On Mon, 12 Sep 2011, K. Macy wrote: > >> 2011/9/12 Steven Hartland : >>> 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=20 >the mapping are not the same, twice as much memory is used. This=20 >would not be good for streaming if the machine is short on RAM. > >Bob >--=20 >Bob Friesenhahn >bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/ >GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ >_______________________________________________ >freebsd-fs@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-fs >To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org"