From owner-cvs-all Sat Oct 13 16:57:44 2001 Delivered-To: cvs-all@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [24.14.150.180]) by hub.freebsd.org (Postfix) with ESMTP id 4E19737B409; Sat, 13 Oct 2001 16:57:35 -0700 (PDT) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f9DNvZM94858; Sat, 13 Oct 2001 16:57:35 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id D6B113810; Sat, 13 Oct 2001 16:57:34 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Alfred Perlstein Cc: Mikhail Teterin , dillon@earth.backplane.com, des@ofug.org, silby@silby.com, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: noatimedir? (Re: cvs commit: src/sys/vm vnode_pager.c) In-Reply-To: <20011013181245.W59854@elvis.mu.org> Date: Sat, 13 Oct 2001 16:57:34 -0700 From: Peter Wemm Message-Id: <20011013235734.D6B113810@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Alfred Perlstein wrote: > * Mikhail Teterin [011013 14:54] wrote: > > On 13 Oct, Matt Dillon wrote: > > > > > Your particular case may or may not have anything to do with this > > > bug. If you are running cvsup or running a cvsupd or otherwise > > > doing things that scan the file tree, mounting with 'noatime' is > > > the most important thing you need to do. > > > > BTW, may be, we want to add something like a noatimedir flag? > > That would be a nice addition. At yahoo, we have a modification to the noatime semantics, that seems quite a bit more useful.. We have a sysctl (ugh) that sets the maximum atime age of a file at access. For example, if we set it to 86400 (1 day) then: open/read a file that has atime < 1 hour ago: no atime update open/read a file that has atime < 23 hours ago: no atime update open/read a file that has atime > 24 hours ago: atime gets updated once (and subsequent access will see the atime reset) This means that we can guarantee a maximum of one atime update per file. It also means that the atime on a file is always roughly accurate to within a day. This helps us a lot for archiving files that have not been read for (say) 3 months. Ideally this should be a mount option, but that then means that ufs needs to start taking mount *arguments* (like nfs, with all the nfsargs version incompatabilities), not just binary flags. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message