From owner-freebsd-current@FreeBSD.ORG Wed Nov 26 18:14:09 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AF5B1E28; Wed, 26 Nov 2014 18:14:09 +0000 (UTC) Received: from odin.blazingdot.com (odin.blazingdot.com [204.109.60.170]) by mx1.freebsd.org (Postfix) with ESMTP id 9579AD49; Wed, 26 Nov 2014 18:14:09 +0000 (UTC) Received: by odin.blazingdot.com (Postfix, from userid 1001) id CC54D13143F; Wed, 26 Nov 2014 13:06:33 -0500 (EST) Date: Wed, 26 Nov 2014 13:06:33 -0500 From: Marcus Reid To: freebsd-current@freebsd.org, freebsd-fs@freebsd.org Subject: Delayed atime updates ("lazytime") Message-ID: <20141126180633.GA69028@blazingdot.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Coffee-Level: nearly-fatal User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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, 26 Nov 2014 18:14:09 -0000 Hi, Looks like Linux is about to grow another solution to handling atime updates differently: http://lwn.net/SubscriberLink/621046/e59938475fd3e874/ In short, it will only write out atime changes periodically (daily), or if there is another reason to write out the inode, or if the inode is about to be pushed out of cache. This seems like a pretty good compromise. Currently, the ZFS configuration that results from using bsdinstall disables atime on all but /var/mail, which is the only example of disabling atime by default that I'm aware of outside of Gentoo Linux. I can't seem to find any information that talks about the rationale behind that, though a couple things come to mind: - some additional IO generated (but that's always been the case) - additional wear on SSD devices (enough to compel the change?) - zfs snapshot growth (but the snapshot stops growing after one full set of inode updates) - wake up otherwise idle spinning media on a laptop (the actual reason that was cited as motivation for the change) Something like lazytime would address most of those concerns, and people who are even more OCD than that could disable atime completely on their machine. Marcus