From nobody Fri Jan 12 20:12:07 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 4TBXkt0wCCz56G2t for ; Fri, 12 Jan 2024 20:12:22 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-yw1-x112a.google.com (mail-yw1-x112a.google.com [IPv6:2607:f8b0:4864:20::112a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TBXks6R0jz4Hmt for ; Fri, 12 Jan 2024 20:12:21 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-x112a.google.com with SMTP id 00721157ae682-5f8cf76ef5bso63477717b3.0 for ; Fri, 12 Jan 2024 12:12:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1705090340; x=1705695140; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=4KSarCJMUxXc1cJW0D4yUFO3iUCcElqWIbEoMAIfUw0=; b=PuIXiv7OwWs3RkSytX7kIn2RpUf9whzrcS2GJeCOqF6n83DEAOqTB/e4nOQ+N+aR4f 0JoPzFOkSmxRGrK8qtd0XRZNxOQl4K4Kz2YrnUQVff3VzlRD2W33HyLV6g+K0oAuUtbj rJBGWcavIoDTvkR+TFbGoFKcRvtrjZQNnMAuiCa9qQXN54ij15tnFvki/Z43g8pvKo4P fVQMY5Rxa7z6tPQkS8YsY4wUdqGcd+rEcorC/Tx4QbjmnZgVwFk0mM1ij+yJSTxQr8h9 zW9DYHoDv2UO8wu8t2HpbzuF2jqqfrlOrGur9h7CZUFXT4WscXWBQUXZ1+ZwlWmrjzSd 8o/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705090340; x=1705695140; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=4KSarCJMUxXc1cJW0D4yUFO3iUCcElqWIbEoMAIfUw0=; b=nsRSaBm5sL2GDXcqQU3gWBa9BhDfMcej6xUvnv2MxkD2Du3JVfyy86ixpHRLC1rzEF P3iOIp9IbvuKKLRd0ddfmSoRYFA+TXiTOViNJTNsGetdT+STMdUbsANf+8/GaLQcyxTV iUni//U7fIvsHpPR/QLGYnX6vOdOwYJ9IGBPnv4Z4IEalbFsnYK/MaCFXUsiywHhhGs2 PLz7pkmLQzo6dh+4/zaTtgcz8VkVqCEs21auzKy2z+GF4sq93AvOh/UXdJEvan6AseMM xniCch29YQ4mMOctf5fIM7oa8S061ipHFC9OBnuADL4GYBzHPXmUbbpC2UDJvAmenjEy 6dWA== X-Gm-Message-State: AOJu0YzOTFRvh7/yz6IoChQpkzRmttAGQuTHabk5RRqRjI+9Awf8LPt4 scsUh9jllUfhGUcQMl6IsuhC+2y50yX1rmpVcUQk+0LSoA== X-Google-Smtp-Source: AGHT+IGZpCHT+A0AJik1gmkPfoEdqKygEjBSRhyGBfez31Ww2S9xd0bbFXhvF4cFmtRyClowZKN+sw== X-Received: by 2002:a81:f103:0:b0:5f6:d1e6:61f6 with SMTP id h3-20020a81f103000000b005f6d1e661f6mr1759496ywm.44.1705090340705; Fri, 12 Jan 2024 12:12:20 -0800 (PST) Received: from mail-yw1-f182.google.com (mail-yw1-f182.google.com. [209.85.128.182]) by smtp.gmail.com with ESMTPSA id fl13-20020a05690c338d00b005f692a0c3f0sm1588874ywb.63.2024.01.12.12.12.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 12 Jan 2024 12:12:20 -0800 (PST) Received: by mail-yw1-f182.google.com with SMTP id 00721157ae682-5e7c1012a42so66810757b3.3; Fri, 12 Jan 2024 12:12:20 -0800 (PST) X-Received: by 2002:a81:8486:0:b0:5f9:72b3:6561 with SMTP id u128-20020a818486000000b005f972b36561mr2202272ywf.89.1705090339625; Fri, 12 Jan 2024 12:12:19 -0800 (PST) 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 References: <1749331.ETpRK2a2Mi@ravel> <2136329.mxFCRLsXLg@ravel> <86v87y4gn6.fsf@ltc.des.no> In-Reply-To: <86v87y4gn6.fsf@ltc.des.no> From: Tomek CEDRO Date: Fri, 12 Jan 2024 21:12:07 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: noatime on ufs2 To: freebsd-current@freebsd.org Cc: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= , Warner Losh , Olivier Certner Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4TBXks6R0jz4Hmt X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] On Fri, Jan 12, 2024 at 6:15=E2=80=AFPM Dag-Erling Sm=C3=B8rgrav wrote: > 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.(..) Okay, the discussion got some (and enough) traction, and its about changing defaults only, not the underlying kernel or filesystem code to change the atime behavior, so this can be done as an option that user will see and can change easily in the installer.. and still good old atime can be used where necessary whoever needs it :-) > > 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. rel-atime roger! :-) :-) Thanks DES :-) Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info