From owner-freebsd-fs@FreeBSD.ORG Mon Sep 12 19:45:46 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 B7A44106564A; Mon, 12 Sep 2011 19:45:46 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id D31D78FC12; Mon, 12 Sep 2011 19:45:45 +0000 (UTC) Received: from porto.starpoint.kiev.ua (porto-e.starpoint.kiev.ua [212.40.38.100]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id WAA15615; Mon, 12 Sep 2011 22:45:44 +0300 (EEST) (envelope-from avg@FreeBSD.org) Received: from localhost ([127.0.0.1]) by porto.starpoint.kiev.ua with esmtp (Exim 4.34 (FreeBSD)) id 1R3CRr-000LIW-OK; Mon, 12 Sep 2011 22:45:43 +0300 Message-ID: <4E6E6166.4090408@FreeBSD.org> Date: Mon, 12 Sep 2011 22:45:42 +0300 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:6.0.2) Gecko/20110907 Thunderbird/6.0.2 MIME-Version: 1.0 To: "K. Macy" References: In-Reply-To: X-Enigmail-Version: undefined Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@FreeBSD.org 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:45:46 -0000 on 12/09/2011 21:12 K. Macy said the following: > 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. When did you last test that (FreeBSD svn revision)? -- Andriy Gapon