From nobody Sun Apr 24 17:58:17 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 4B904199A8A3 for ; Sun, 24 Apr 2022 17:58:48 +0000 (UTC) (envelope-from Alexander@leidinger.net) Received: from mailgate.Leidinger.net (bastille.leidinger.net [89.238.82.207]) (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 4KmbVb1J01z4WPq for ; Sun, 24 Apr 2022 17:58:47 +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 73733525; Sun, 24 Apr 2022 19:58:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1650823117; 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=qh/Uv+eBuRGe11/DCoT9VlCDYsXrKvRigr1CnsErkRQ=; b=KvmG2iJMUF56pXo6y5ZiGSPYxsSXCabN5jmI/XmO4lMoZPlZjgVL77aUlpbR2deRycias3 uwecbV0Q5wbQTgas4YwJyKX7jX/DFYr52tpBTAIAFV+N6gUjpsO8A8qoKu9v79Ky1uaCVY ePy8McuvP9B75PO/1SPF94BUycKrftoWTZ16MHipq6qE0c5i4K5YEVdpm/uK47+Hlv3MmX LqgJqDdP3aAYlkPyf5q6Grx61k+iEA2lfqXfyyXdzG5TknwYV1yNb//7MqfnMBBG+WDWRH p3qD301rXrngVKDvkS5FpJZUf5m28i72MGr3UTsn7NkrIDww587B2Q7jasJXMg== 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 4BC934726; Sun, 24 Apr 2022 19:58:19 +0200 (CEST) Date: Sun, 24 Apr 2022 19:58:17 +0200 Message-ID: <20220424195817.Horde.W5ApGT13KmR06W2pKA0COxB@webmail.leidinger.net> From: Alexander Leidinger To: Doug Ambrisko Cc: Mateusz Guzik , freebsd-current@freebsd.org Subject: Re: nullfs and ZFS issues References: <20220420113944.Horde.5qBL80-ikDLIWDIFVJ4VgzX@webmail.leidinger.net> <20220421083310.Horde.r7YT8777_AvGU_6GO1cC90G@webmail.leidinger.net> <20220421154402.Horde.I6m2Om_fxqMtDMUqpiZAxtP@webmail.leidinger.net> <20220422090439.Horde.TabULDW9aIeaNLxngZxdvvN@webmail.leidinger.net> In-Reply-To: <20220422090439.Horde.TabULDW9aIeaNLxngZxdvvN@webmail.leidinger.net> Accept-Language: de,en Content-Type: multipart/signed; boundary="=_gIG_MBnt3QHSkVWyF6an8Jh"; 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: 4KmbVb1J01z4WPq X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b=KvmG2iJM; dmarc=pass (policy=quarantine) header.from=leidinger.net; spf=pass (mx1.freebsd.org: domain of Alexander@leidinger.net designates 89.238.82.207 as permitted sender) smtp.mailfrom=Alexander@leidinger.net X-Spamd-Result: default: False [-6.04 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; NEURAL_HAM_MEDIUM(-0.94)[-0.938]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[leidinger.net:+]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-current]; SIGNED_PGP(-2.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; FREEMAIL_CC(0.00)[gmail.com,freebsd.org]; 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. --=_gIG_MBnt3QHSkVWyF6an8Jh Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Quoting Alexander Leidinger (from Fri, 22=20=20 Apr=202022 09:04:39 +0200): > Quoting Doug Ambrisko (from Thu, 21 Apr 2022=20= =20 >=2009:38:35 -0700): >> I've attached mount.patch that when doing mount -v should >> show the vnode usage per filesystem. Note that the problem I was >> running into was after some operations arc_prune and arc_evict would >> consume 100% of 2 cores and make ZFS really slow. If you are not >> running into that issue then nocache etc. shouldn't be needed. > > I don't run into this issue, but I have a huge perf difference when=20=20 >=20using nocache in the nightly periodic runs. 4h instead of 12-24h (22=20= =20 >=20jails on this system). > >> On my laptop I set ARC to 1G since I don't use swap and in the past >> ARC would consume to much memory and things would die. When the >> nullfs holds a bunch of vnodes then ZFS couldn't release them. >> >> FYI, on my laptop with nocache and limited vnodes I haven't run >> into this problem. I haven't tried the patch to let ZFS free >> it's and nullfs vnodes on my laptop. I have only tried it via > > I have this patch and your mount patch installed now, without=20=20 >=20nocache and reduced arc reclaim settings (100, 1). I will check the=20= =20 >=20runtime for the next 2 days. 9-10h runtime with the above settings (compared to 4h with nocache and=20= =20 12-24h=20without any patch and without nocache). I changed the sysctls back to the defaults and will see in the next=20=20 run=20(in 7h) what the result is with just the patches. Bye, Alexander. --=20 http://www.Leidinger.net=20Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF --=_gIG_MBnt3QHSkVWyF6an8Jh Content-Type: application/pgp-signature Content-Description: Digitale PGP-Signatur Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIzBAABCAAdFiEER9UlYXp1PSd08nWXEg2wmwP42IYFAmJlj7kACgkQEg2wmwP4 2IbzBg/9F2s+3OP2ZpEVFg7ACQjZLCGef7NXz4viI68s0ZMvn1zEk7rW5HI7tAOZ 2XpvuuWhxWoF1ChDKSiJR7C2ddTmOieZkfQbNF2Au/pyYZ9pooKcFoO1hHCvEwD8 WbwbhNx0z/MnZfCcUJ3kidFEzlk/jKDxDNwsNM2aXr2sPJ1UjtclQhaCMp+3pRHW 95PNO2XQBsTSDPmZJF8xc0T5ehQzD1x+27b/kBN6QjNi/xC9MhXKPP4OrVZYxT6g WFWBgLP2M5P1oJigPZ11sarp7Ss0L5pOwEfscUqNymKqjE1CmiKgt6qAP9Ndv4rV IeTBMx3Hpm17UgFPcxciy86n3Q9EIZk0YeT3P/S09D5B5LJIyv+dGiY7J/Xl6GWm 0mjl2exAtrOc0JpWoUiO+A92dpTrZjSOHH76lyU/CMTye9vCQevxYbRZ9bcXVrll 5c5V/ybzTh3sKn2FVS3GuKVs5aVDtmCtj3gGHrSSFTeAv4LiiQ+O18812OaLoNvk j89+YbtsxCVOlN5Xlk0R7+ZTnc8FjSIUJWtBhIpCT9HZKqerBaH7xrAF/4W2MjpL 0ty3qAb5KBbYQMmIuFjI3hjPwA1cypqKLnv89ZggONbuPic1iuyiI0lzZOZH8WRj BjRF/yFW4FCfXNLdIhtDzUnvh2QrJRbHDtDAl0IFkYlCh9pyD/U= =jC0g -----END PGP SIGNATURE----- --=_gIG_MBnt3QHSkVWyF6an8Jh--