From owner-freebsd-fs@FreeBSD.ORG Mon Jun 22 12:19:02 2009 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 2A2F71065672 for ; Mon, 22 Jun 2009 12:19:02 +0000 (UTC) (envelope-from numisemis@yahoo.com) Received: from web37308.mail.mud.yahoo.com (web37308.mail.mud.yahoo.com [209.191.90.251]) by mx1.freebsd.org (Postfix) with SMTP id D88A08FC19 for ; Mon, 22 Jun 2009 12:19:01 +0000 (UTC) (envelope-from numisemis@yahoo.com) Received: (qmail 67957 invoked by uid 60001); 22 Jun 2009 12:19:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1245673141; bh=sRUAZV2X+KIS2XUY5rpmuXPq1FlF1zBaZ4tdU+yBt54=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=cjHfq/2tgUXKTmzTmIMsIZY6kzidUzUD3ahqa37xr0DCxVoey8xfsBurnL17HLmNDQwFtbhuyr/DpaE324pnImyvJLXZ3fhoGeZ06HpqFN3DTpADRLgV9hXKcAKC8fQpjKMPgRBQ/ajmMKl+pNe7kHvrahFPbaA+YYvR7aMrbFg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type; b=Jm3s96ACi5fC1Fmql90zOnXyIcMx20xBq/d+P2KAN+TUb5ppl3ynS3Fg9/jwpMMntprsbUa3vm1HQRvPHUsDIJ4nb3/V3hzHkQGjrRdlVODPM1g9+I/+VFqS7KZk1QGxNFcLY8NfkJFCb8fTxi45cr1MsIdFqKpCfIn8SEvz9YU=; Message-ID: <289445.67836.qm@web37308.mail.mud.yahoo.com> X-YMail-OSG: BEZVl3UVM1laqlBd5_31FKyNs3CDmAzEbRby_424qFBj87gBWkUD4b6oL7c2Ddc.WY.vtZicmdQuoUnpcGb6phNQEag2_ryhd3tKwa1JXf5vTQPQSJuVgxERGOSpfukXub2RZUiYBLcsnB7I4DWspd0rPbtZbDIfp71ePQbXvFrj5paNd5AmTyNTcD1zJQVsrAtjomlly.KhlGhaKFS.E6EICW.MLCmAE1_.p7C0StE1qkIfkUs7tkG9ZPVR5T_6quoTkUOOts7_d0Zip76jKkfcmFYYmbqcaGhFOMrwRxUxwzndKLPsDFr716AHwmG_ee3LCg-- Received: from [87.252.131.19] by web37308.mail.mud.yahoo.com via HTTP; Mon, 22 Jun 2009 05:19:00 PDT X-Mailer: YahooMailRC/1277.43 YahooMailWebService/0.7.289.15 References: <570433.20373.qm@web37308.mail.mud.yahoo.com> Date: Mon, 22 Jun 2009 05:19:00 -0700 (PDT) From: Simun Mikecin To: Dan Naumov In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: ufs2 / softupdates / ZFS / disk write cache 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, 22 Jun 2009 12:19:02 -0000 Dan Naumov wrote: > Actually I think a need a few clarifications regarding ZFS: > 1) Does FreeBSD honor the "flush the cache to disk now" commands issued by ZFS to the harrdive only when ZFS is used directly on top of a disk device directly or does this also work when ZFS is used on top of a slice/partition? > 2) If we compare ZFS vs UFS+SU while using a regular "lying" SATA disk (with write cache enabled) under heavy IO followed by a power loss. Which one is going to recover better and why? 1) AFAIK on FreeBSD (in contrary to Solaris) there is no difference wheter you use a whole disk or a slice/partition. 2) I wouldn't use UFS+SU on [S]ATA disks because your background fsck will simetimes give up stating something like "unexpected softupdates inconsistency" (unless you had disabled write cache, which you don't really want to) and you will have to do a manual foreground fsck yourself. The choice should (in my opinion) be: ZFS for amd64, UFS+gjournal for i386. Both (ZFS and UFS+gjournal) will not have any recovery penalty if you have write cache enabled. If you have a controller with battery backup cache, you could even run ZFS with disabled cache flush (i don't know wheter it can be disabled on gjournal), but I'm not sure that you will get any real word performance improvement by doing it.