From nobody Thu Apr 21 06:33:10 2022 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 3012E11D91FE for ; Thu, 21 Apr 2022 06:34:02 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (mailgate.leidinger.net [IPv6:2a00:1828:2000:313::1:5]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KkSRs1Kf1z4S3v for ; Thu, 21 Apr 2022 06:34:01 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from outgoing.leidinger.net (p5b165562.dip0.t-ipconnect.de [91.22.85.98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256 client-signature ECDSA (P-256) client-digest SHA256) (Client CN "outgoing.leidinger.net", Issuer "R3" (verified OK)) by mailgate.Leidinger.net (Postfix) with ESMTPSA id E1E962C4B9; Thu, 21 Apr 2022 08:33:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1650522816; 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: in-reply-to:in-reply-to:references:references; bh=JVIvolx5wp3uNJ1fmbUtHiTkXlPdLc0WLX7Cz60a0aY=; b=C5cdXhKqx2hMS3TlWmzy+aL5i0oPJ5BDn7w95QVJPS2EFmk4AeXyQ6hfrk1FmePBoJiVRU trHMx64zANRXbHO1Z2Ae2LqfwY7QdfxeTDuQPo84nAw+dA3emFKWxpdmlR+6Ji4qJPthWs 5Ti61EGwRwyrHn0HrGkIl/vz81t8+KNyuR7g2SqQiDW/2gXV0Iz1m+2l6MAzTIB9k0kt0E KTQ2sLz1sJlXF+jA85mk63mmUEaseoK7JzpxRWUMlWiwdJifJg1MISUTKTC7Hh/C6wjAfn fQ2eJZZtFtlILTqiWO6s0dR0nugayHC3oSFBp3vqG9lqZeeMZUcrwldrAn03ww== Received: from webmail.leidinger.net (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (Client did not present a certificate) by outgoing.leidinger.net (Postfix) with ESMTPS id CE06D3125; Thu, 21 Apr 2022 08:33:13 +0200 (CEST) Date: Thu, 21 Apr 2022 08:33:10 +0200 Message-ID: <20220421083310.Horde.r7YT8777_AvGU_6GO1cC90G@webmail.leidinger.net> From: Alexander Leidinger To: Doug Ambrisko Cc: freebsd-current@freebsd.org Subject: Re: nullfs and ZFS issues References: <20220420113944.Horde.5qBL80-ikDLIWDIFVJ4VgzX@webmail.leidinger.net> In-Reply-To: Accept-Language: de,en Content-Type: multipart/signed; boundary="=_ynM4CAvCMj8TmUI2uVA8vHP"; protocol="application/pgp-signature"; micalg=pgp-sha256 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 X-Rspamd-Queue-Id: 4KkSRs1Kf1z4S3v X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b=C5cdXhKq; dmarc=pass (policy=quarantine) header.from=leidinger.net; spf=pass (mx1.freebsd.org: domain of Alexander@leidinger.net designates 2a00:1828:2000:313::1:5 as permitted sender) smtp.mailfrom=Alexander@leidinger.net X-Spamd-Result: default: False [-4.72 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx:c]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain,text/diff]; HAS_ATTACHMENT(0.00)[]; NEURAL_SPAM_SHORT(0.38)[0.381]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; MLMMJ_DEST(0.00)[freebsd-current]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+,4:~]; ASN(0.00)[asn:34240, ipnet:2a00:1828::/32, country:DE]; RCVD_TLS_ALL(0.00)[]; RECEIVED_SPAMHAUS_PBL(0.00)[91.22.85.98:received] X-ThisMailContainsUnwantedMimeParts: N This message is in MIME format and has been PGP signed. --=_ynM4CAvCMj8TmUI2uVA8vHP Content-Type: multipart/mixed; boundary="=_NGnP2w2ySILE7xRtSYzRIXc" This message is in MIME format. --=_NGnP2w2ySILE7xRtSYzRIXc Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Doug Ambrisko (from Wed, 20 Apr 2022=20=20 09:20:33=20-0700): > On Wed, Apr 20, 2022 at 11:39:44AM +0200, Alexander Leidinger wrote: > | Quoting Doug Ambrisko (from Mon, 18 Apr 2022 > | 16:32:38 -0700): > | > | > With nullfs, nocache and settings max vnodes to a low number I can > | > | Where is nocache documented? I don't see it in mount_nullfs(8), > | mount(8) or nullfs(5). > > I didn't find it but it is in: > src/sys/fs/nullfs/null_vfsops.c: if (vfs_getopt(mp->mnt_optnew,=20=20 >=20"nocache", NULL, NULL) =3D=3D 0 || > > Also some file systems disable it via MNTK_NULL_NOCACHE Does the attached diff look ok? > | I tried a nullfs mount with nocache and it doesn't show up in the > | output of "mount". > > Yep, I saw that as well. I could tell by dropping into ddb and then > do a show mount on the FS and look at the count. That is why I added > the vnode count to mount -v so I could see the usage without dropping > into ddb. I tried nocache on a system with a lot of jails which use nullfs,=20=20 which=20showed very slow behavior in the daily periodic runs (12h runs=20= =20 in=20the night after boot, 24h or more in subsequent nights). Now the=20=20 first=20nightly run after boot was finished after 4h. What is the benefit of not disabling the cache in nullfs? I would=20=20 expect=20zfs (or ufs) to cache the (meta)data anyway. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_NGnP2w2ySILE7xRtSYzRIXc Content-Type: text/diff; charset=utf-8; name=mount.8.diff Content-Disposition: attachment; size=520; filename=mount.8.diff Content-Transfer-Encoding: quoted-printable diff --git a/sbin/mount/mount.8 b/sbin/mount/mount.8 index 2a877c04c07..823df63953d 100644 --- a/sbin/mount/mount.8 +++ b/sbin/mount/mount.8 @@ -28,7 +28,7 @@ .\" @(#)mount.8 8.8 (Berkeley) 6/16/94 .\" $FreeBSD$ .\" -.Dd March 17, 2022 +.Dd April 21, 2022 .Dt MOUNT 8 .Os .Sh NAME @@ -245,6 +245,9 @@ This file system should be skipped when is run with the .Fl a flag. +.It Cm nocache +Disable caching. +Some filesystems may not support this. .It Cm noclusterr Disable read clustering. .It Cm noclusterw --=_NGnP2w2ySILE7xRtSYzRIXc-- --=_ynM4CAvCMj8TmUI2uVA8vHP Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmJg+qUACgkQEg2wmwP4 2Iai7xAAoBfUaimRkru9wrcadW8zCL7sUG2owGufjCZV5r9OE8XGUmMRwvL8RzZV Vo9nim8nXP6JQ3fSw2LguMNk+KEP0vQfkuB0xrvFRqldOkbsGmDU+T+isSHMW+z0 Pi1fsm6qtr5+p74ETGiMK03rwIfQThYUfsTdzIust8dD7yg+LyFSDK92+tG/BlKV YmWuA1KAMC7S6a4VCx1IpElnk9upnxP+fdOMXRaRY4i0T+g3u2iJ4FOSw4kpsSLd UpECjbTbwiRenMRHhOATnNfC6fxqNO7V5xkcUhMgOg6ZDk8g11AbxClroEldrSNm tGKEoiLDAO5n0jvnS3L71i+b94HA1bHAwraL6Kt8RFthYQ2zYXkyIGYbkelI2clJ +mV73+rSTqkKUqUkB9pmRHEm5prlIMWhDOktdRIGyTBW+ZzhS+TZrToJw6RRttXw EkdAfRl5ACmdsjS020AgswfMR6IHZpjcLYjwHSD7Br9KkX7/bPHCB53zqRX/jCP7 xIFC5LIPc7FzyFwmCg9gh3fLOsl/fstZ+ASGzR/hBMy5fAoPv63PNEChKIEt27eH paM67lMpH2+uatLQl0Rix+X6Xvnt1IfZpdFEeLtvKSrK+TZGYAXQ/xuowmzFqMDp PPa3D/1i7hXU+dnIU/MXL75iWyADM0A4/aGq5op/3SzQxZg2Ocg= =KCG4 -----END PGP SIGNATURE----- --=_ynM4CAvCMj8TmUI2uVA8vHP--