From nobody Fri Jan 12 17:15:41 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TBSq46KqMz57BsC for ; Fri, 12 Jan 2024 17:15:44 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TBSq45XdPz4cGj; Fri, 12 Jan 2024 17:15:44 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705079744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w0Bq3wwww9vp//zfOSZt1KYvFXq4PBAMCs2wI+RG6As=; b=GThmMArZvhsFYZ7cyHEHZ1I6oAJUtpMGlHQiJPn5uQLMXJODvjz1lI2n7Zc3zOevn8rHkj zpNq9LKt7G7uox6oYTEeVcutqfe6ED/HOp9FGcBDQjjtsI0l2EQQ6EoPPHiKDafIGp6AQO f3aoggQwW94gXLnW3WqiZ+V51u18MIDgBclZs2iCUf6D28O9fgLhaE29FM+wRd4ZGkgOKN yTAoUifp9TIR+4elAu3BeU+u3+RkJSDsYsiMB+GUgxjB1+I9DdE9krZiqPjboytlGym/ND zKByn5pY5LS0pXUiJWJa3/XxyD0xlLyzraHAhjUnXHmX7puKJypDOQhmVFjsgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705079744; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=w0Bq3wwww9vp//zfOSZt1KYvFXq4PBAMCs2wI+RG6As=; b=o6SOoSEGCoy3lp+N/qguh18akltBEm4y8COm/a0rrBAWaraeH33998RAtSVjSvcF2UQlHm v+XOLuD37n/z5/hl53I6UUYiAMs6wMmGI8kvdAbpSt+/aXGbJbwwxnZvtXjOFIAUfwgXB3 Lvs4W7Qc/bQk+4peA3oSbMmdz87Is1EhvMJkJfyglEZwIPvhfgG90UpbSiZiKe3N/SBIpa kQuLd5kxzU7BJDwzlotlVV0a6ODYHJe2AJBXJ3/AABFO4xWRGOttDFJIlaLOy1nNPXVQTD /fPZvzkhlwaDCvH5ZxqC1ixAWNtwJt9a9Fv6F9iS8OHUOLgBJyjZNrbHbA9oCA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705079744; a=rsa-sha256; cv=none; b=FhRb+Tu+u0SjOe8drC0Ub80vXLjONUftB2mWNPkBuEujzlSPBiSqHDs/nAatmlXhXXcueX EPNv0vfu58+7W4h+Qhi90dfhTpwEaIkmqDYmUGuHNbmvBaUExsj0lJ+RQMgtBJciQajblg y98UTbVtsQxTIq1HJi3ysw1YcILOJwY/XyJX6ZHYSfGJPszopC9wwGVKmHeWCfjyg02koI SUIiO92zeEPoiCvIrszLWqYKVNm/1LgAaP6izHVTheL8letBuCBEAfrJ8kofS8oAEjcqz7 W55T13663M/VSNccJhGTCBjiKJ1L1QEA1iJ6Y2PPhwMmO6Gn7CyZe2AT9JDb/A== Received: from ltc.des.no (2a02-8428-0993-f001-922e-16ff-fef1-acef.rev.sfr.net [IPv6:2a02:8428:993:f001:922e:16ff:fef1:acef]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4TBSq43spBz175n; Fri, 12 Jan 2024 17:15:44 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.no (Postfix, from userid 1001) id 5A1498050F; Fri, 12 Jan 2024 18:15:41 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Tomek CEDRO Cc: freebsd-current@freebsd.org, Warner Losh , Olivier Certner Subject: Re: noatime on ufs2 In-Reply-To: (Tomek CEDRO's message of "Wed, 10 Jan 2024 21:34:57 +0100") References: <1749331.ETpRK2a2Mi@ravel> <2136329.mxFCRLsXLg@ravel> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 12 Jan 2024 18:15:41 +0100 Message-ID: <86v87y4gn6.fsf@ltc.des.no> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Tomek CEDRO writes: > I am reading this interesting discussion and please verify my general > understanding: > > 1. There is a request for change in core OS / FS mechanism of file > access time (atime) because of problem with mailing application? The atime mechanism is considered harmful by many because every file access results in a write which (even if coalesced) not only impacts performance but also increases wear on SSDs. Many people turn it off. Even the FreeBSD installer turns it off when installing to ZFS, except on `/var/mail` which is a separate filesystem precisely so that it can have atime enabled independently of the rest of the system. There is a proposal to turn it off by default. > 2. Linux change of approach to atime that keeps its value only around > last 24h so we should also change it in FreeBSD? > > 3. "realtime" is the alternative solution to keep atime intact? The Linux approach is an alternative mechanism dubbed =E2=80=9Crelatime=E2= =80=9D (relative access time) which instead of updating the access time on every access, does so only if the previous atime is either older than the current mtime or more than 24 h ago. > Why change well known standardized and widely used mechanism that is > here for decades? Because it's harmful and most people don't use it. > If there is a problem with an application why change core OS/FS with > all possible negative consequences and not fix the application? There is not =E2=80=9Ca problem with an application=E2=80=9D. No applicati= on actually requires atime to function properly because developers knows that atime is a) not universally supported and b) often disabled even when supported. There is however a problem with disk performance and lifetime being degraded. > Wouldn't that break POSIX / backward compatiblity? No. Many people, and the FreeBSD installer, already turn it off. The relatime mechanism would restore atime functionality while causing much less harm, in theory. I'm not sure it would make much difference in practice considering that we have nightly scripts which would trigger atime updates even with relatime. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org