From owner-freebsd-current@FreeBSD.ORG Wed Nov 28 13:38:50 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 546322E9 for ; Wed, 28 Nov 2012 13:38:50 +0000 (UTC) (envelope-from olivier@gid0.org) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id F3A078FC08 for ; Wed, 28 Nov 2012 13:38:49 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fo13so18409701vcb.13 for ; Wed, 28 Nov 2012 05:38:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=wSxAM0vXWqfQqk261HD/lCxe3DMEZPo4h8QpP/5R6v4=; b=cBTav2QgvqjbioL2GFMcZnsgRq0qKyw3wK742IQOljjZ8d5rQkdFnCZn5OTPFzgzM6 2OgNNva/ElIXOHudtAFrV0WvxQOHGJcVVbNCM2F4WxTZKc80VNlKuAk9cs/691KgiaNG f4cPZX8pZqGx6g+xt9yR5FZhmh1tcBlwyri6LiCIqCx06F0WbgO38xDGPaFeCczhC/g0 hPAMYChujYdD2nkdnGQrPP+pJqPwAxFVUuBIOQV8Zrgkx56P1k/+WzWfn0Nfz2H3XRqX KJ/NBrWKqiFLA6t99+WGQ7+VI64G/CzI3m4og0mkAOUwhYpu3cYmmZzmv1FJRghvreJg bTXA== MIME-Version: 1.0 Received: by 10.220.16.12 with SMTP id m12mr28697661vca.14.1354109928872; Wed, 28 Nov 2012 05:38:48 -0800 (PST) Received: by 10.58.92.5 with HTTP; Wed, 28 Nov 2012 05:38:48 -0800 (PST) In-Reply-To: <50B611B6.40903@zedat.fu-berlin.de> References: <50B611B6.40903@zedat.fu-berlin.de> Date: Wed, 28 Nov 2012 14:38:48 +0100 Message-ID: Subject: Re: ZFS: ZIL with only one additional disk and how secure? From: Olivier Smedts To: "O. Hartmann" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQm3u5QNucgKI9oWKxmRlzHDK2wkzeRsaV2nSlVjTYyeQlavpsntb5CgWY6uAdCZo/A3EmV5 Cc: Current FreeBSD X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2012 13:38:50 -0000 Hi, 2012/11/28 O. Hartmann : > Hello, > I have a naive question. > I read about speeding up NFSv4 shared ZFS array. I use a RAIDZ1 volume > made up from 5 times 3TB harddrives, attached to a ICH10 SATA controller > on a FreeBSD 10.0-CURRENT box. The maximum performance of that array > never goes beyond 45 - 51 MB/s and levels out very often at 12 - 35 MB/s > when used as a NFSv4 share and 1 GBit LAN. The local system harddisk, > attached to the sixth SATA port of the same controller and containig a > UFS2 filesystem, is capable of doing tasks with 60 - 80 MB/s (peak) when > used as a NFSv4 share with another FreeBSD 10.0-CURRENT box. > > I used several reported tweaks on the RAIDZ1 ZFS volume exporting it as > a NFSv4 volume, so I was capable of raising the throughput from sad 3 > MB/s up to the 30 MB/s sustained. > > Also I was told that adding a dedicated ZIL drive could speed up things > up to 90 MB/s with the mentioned construction of a RAIDZ1 over NFSv4. It > is always suggested to add SSDs, a pair, for security reasons. > > My question in conrete is now: Do I need two (2) ZIL drives in a mirror? > I guess this is considered due to security issues which lead to the next > question: If it is possible to use only one ZIL drive and this drive > gets corrupted, is the whole ZFS array corrupted, then? You don't "need" two because if the ZIL is corrupted you'll only loose the data since the last TXG, but no metadata. Make sure you have an up-to-date pool. But you'll *need* a battery cache or supercaps on the SSD(s) so that they flush their caches in case of a power failure. > The minor question regards to the use of SSDs: Is it possible to gain > speedup also from an ordinary disk dedicated to the ZFS array connected > to a additional SATA controller? The SATA controller should be fast > enough to serve a bandwith of 90 - 100 MB/s (theoretically) over 1 GBit > lines when using the ZFS array as a NFSv4 export (the LAN is limiting, > so, but 80 - 90 MB/s is possible on the specific box, the limiting > factor at the moment is the bad performance of ZFS). I don't think so, or not much. What makes SSDs appealing for ZIL is that they have very good access times / latencies. > The box is a quad core system at 3 GHz (Intel Q6600) with 8 GB of RAM > running most recent FreeBSD 10.0-CURRENT/amd64. > > Thanks in advance, > > Oliver Cheers -- Olivier Smedts _ ASCII ribbon campaign ( ) e-mail: olivier@gid0.org - against HTML email & vCards X www: http://www.gid0.org - against proprietary attachments / \ "Il y a seulement 10 sortes de gens dans le monde : ceux qui comprennent le binaire, et ceux qui ne le comprennent pas."