From owner-freebsd-fs@FreeBSD.ORG Fri Jan 10 13:29:24 2014 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29771B68 for ; Fri, 10 Jan 2014 13:29:24 +0000 (UTC) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id A49021C9B for ; Fri, 10 Jan 2014 13:29:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.5/8.14.5) with ESMTP id s0ADTLmF041394; Fri, 10 Jan 2014 17:29:21 +0400 (MSK) (envelope-from marck@rinet.ru) Date: Fri, 10 Jan 2014 17:29:21 +0400 (MSK) From: Dmitry Morozovsky To: Steven Hartland Subject: Re: What does ZFS write when nothing should write there? In-Reply-To: <29BFE2939CF14317A149D6C2D68D9A8E@multiplay.co.uk> Message-ID: References: <52CFA0B6.7090109@fsn.hu> <52CFF18F.5040809@fsn.hu> <29BFE2939CF14317A149D6C2D68D9A8E@multiplay.co.uk> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (woozle.rinet.ru [0.0.0.0]); Fri, 10 Jan 2014 17:29:21 +0400 (MSK) Cc: 'freebsd-fs' X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 13:29:24 -0000 On Fri, 10 Jan 2014, Steven Hartland wrote: > > > > I've created 6 zpools, each of them with zpool create -m /data/A dataA > > > > mirror > > > > daX daY. > > > > The machine has nothing running except sshd and my shell. > > > > > > > > Yet, I see this in gstat: > > > [snip] > > > > > > > 0 88 0 0 0.0 82 573 4.1 9.0 da5 > > > > 0 89 0 0 0.0 83 573 4.8 9.8 da6 > > > > 0 87 0 0 0.0 81 573 2.6 5.7 da9 > > > > 0 89 0 0 0.0 84 573 3.0 6.7 da10 > > > Did you turn off atime? > > > > > No, but how does it matter? > > The process list is the following: init, getty, sshd, csh and the pool is > > completely empty. > > With atime on each time you access a file it will update its "atime" > hence causing writes. > > We use atime=off at the pool level on all machines to avoid that > zfs set atime=off BTW, it seems that ZFS updates atime of some inodes (root one?) on every kernel update thread invocation even when completely empty -- is it correct behaviour? -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------