From owner-freebsd-fs@FreeBSD.ORG Thu Mar 8 17:50:52 2012 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 BC197106566B for ; Thu, 8 Mar 2012 17:50:52 +0000 (UTC) (envelope-from tevans.uk@googlemail.com) Received: from mail-vx0-f182.google.com (mail-vx0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 745898FC0C for ; Thu, 8 Mar 2012 17:50:52 +0000 (UTC) Received: by vcmm1 with SMTP id m1so730761vcm.13 for ; Thu, 08 Mar 2012 09:50:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=IanDw0v+VwiK0xMtP4SdTaN3Bbw89Qls+BaUTDPdRDs=; b=F/60HKCkCiaDTbQ2ulkmA9yDIAN+M7tYGrpG4Ds6sxrBRI0tzGwEhJtMIffIuBTCs1 mcsJ05rDDVcfW2S7hQJozIiRJCIp6azzm0y2MFSALueClTRlEXWoCyuNspiwo1404G28 fuER0G3sdsN75SKJiauZno1DEizProqJIv+iAUTGQD4TXdj6SPzvspXB+8BxLzZMT2j2 Y82tlCfP0GBblC4AjIlglhLYRh8b/iIqX4T1S+64txPXw7IgbrEwA9310hVLvKjpt/Vu iQJ+ahC9ahYF/ThYV2q5C9GMmHPJWZVhAonWe9z7cxgG/2t7iUa2fApyOsuKD8VMGttb gMdQ== MIME-Version: 1.0 Received: by 10.52.93.138 with SMTP id cu10mr11370723vdb.86.1331229051687; Thu, 08 Mar 2012 09:50:51 -0800 (PST) Received: by 10.52.110.100 with HTTP; Thu, 8 Mar 2012 09:50:51 -0800 (PST) In-Reply-To: <20120308161940.GA71851@therub.org> References: <20120308161940.GA71851@therub.org> Date: Thu, 8 Mar 2012 17:50:51 +0000 Message-ID: From: Tom Evans To: Dan Rue Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: freebsd-fs@freebsd.org Subject: Re: ZFS and mdconfig -t vnode - Unexpected behavior 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: Thu, 08 Mar 2012 17:50:52 -0000 On Thu, Mar 8, 2012 at 4:19 PM, Dan Rue wrote: > I have discovered an unexpected behavior when using ZFS against a vnode. > When running mdconfig -d against a vnode, there is a long delay before > the blocks are fully written to the backing store file. Consider the > following test script: > > [=E2=80=A6] > > Are there any ZFS tunables that could be related to this? What could be > the cause of this behavior? > The tunable vfs.zfs.txg.timeout (in seconds) controls how bursty ZFS is. I run with a high value (30), so my disks don't get constantly hit, but if you lowered it, data will be written much more frequently. Cheers Tom