Date: Thu, 11 Jan 2024 23:28:43 -0800 From: Mark Millard <marklmi@yahoo.com> To: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net>, Current FreeBSD <freebsd-current@freebsd.org> Subject: Re: noatime on ufs2 Message-ID: <D413660B-FE31-4B24-A501-20F7A4B65E61@yahoo.com> References: <D413660B-FE31-4B24-A501-20F7A4B65E61.ref@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Rodney W. Grimes <freebsd-rwg_at_gndrsh.dnsmgr.net> wrote on Date: Thu, 11 Jan 2024 17:15:19 UTC : > > Am 2024-01-10 22:49, schrieb Mark Millard: > >=20 > > > I never use atime, always noatime, for UFS. That said, I'd never=20= > > > propose > > > changing the long standing defaults for commands and calls. I'd = avoid: > >=20 > > [good points I fully agree on] > >=20 > > There's one possibility which nobody talked about yet... changing = the=20 > > default to noatime at install time in fstab / zfs set. >=20 > Perhaps you should take a closer look at what bsdinstall does > when it creates a zfs install pool and boot environment, you > might just find that noatime is already set everywhere but > on /var/mail: >=20 > /usr/libexec/bsdinstall/zfsboot:: ${ZFSBOOT_POOL_CREATE_OPTIONS:=3D-O = compress=3Dlz4 -O atime=3Doff} > /usr/libexec/bsdinstall/zfsboot: /var/mail atime=3Don >=20 > >=20 > > I fully agree to not violate POLA by changing the default to noatime = in=20 > > any FS. I always set noatime everywhere on systems I take care = about, no=20 > > exceptions (any user visible mail is handled via maildir/IMAP, not=20= > > mbox). I haven't made up my mind if it would be a good idea to = change=20 > > bsdinstall to set noatime (after asking the user about it, and later=20= > > maybe offer the possibility to use relatime in case it gets=20 > > implemented). I think it is at least worthwile to discuss this=20 > > possibility (including what the default setting of bsdinstall should = be=20 > > for this option). >=20 > Little late... iirc its been that way since day one of zfs support > in bsdinstall. >=20 > > --=20 > > http://www.Leidinger.net Alexander@Leidinger.net: PGP = 0x8F31830F9F2772BF > > http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF The UFS based snapshots are more of a mix. The one that I just dd'd to media has: # more /etc/fstab # Custom /etc/fstab for FreeBSD embedded images /dev/ufs/rootfs / ufs rw 1 = 1 /dev/msdosfs/EFI /boot/efi msdosfs rw,noatime = 0 0 tmpfs /tmp tmpfs rw,mode=3D1777 0 = 0 /dev/label/growfs_swap none swap sw 0 = 0 So the UFS does not have noatime set up for its mount but the msdosfs does. =3D=3D=3D Mark Millard marklmi at yahoo.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D413660B-FE31-4B24-A501-20F7A4B65E61>