From nobody Fri Aug 18 09:28:23 2023 X-Original-To: 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 4RRxQ12tvVz4qydV for ; Fri, 18 Aug 2023 09:28:41 +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 4RRxPz5G93z3XB3 for ; Fri, 18 Aug 2023 09:28:39 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=leidinger.net header.s=outgoing-alex header.b=re9EJEhR; spf=pass (mx1.freebsd.org: domain of Alexander@Leidinger.net designates 89.238.82.207 as permitted sender) smtp.mailfrom=Alexander@Leidinger.net; dmarc=pass (policy=quarantine) header.from=leidinger.net Received: from webmail2.leidinger.net (roundcube.Leidinger.net [192.168.1.123]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: Alexander@Leidinger.net) by outgoing.leidinger.net (Postfix) with ESMTPSA id 2D74E5B0; Fri, 18 Aug 2023 11:28:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1692350905; 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=th/kz8oxOL7Pc2QTLVSD+YvIJCv6Kxbr0q+OeYA5TQ8=; b=re9EJEhR2Fa+2kXhBpxw4V2L6xz4PKk7DZOJEmUa7Pw9i4LNQbkxXCNNjdxR9MhWPbqB2c BwwyT3uwJWFHBSHRSEnSlM1cEmXsBDlH/gLczHjJlwxmyhWccCBMOfdsYZvdByrw+6qzv5 WYaIJRX3V+lCPh+RCLl17799Tp8ej3OA9jsi76B4uNEvwG6xEsZLzPsVZkfuFOwfH29lIg JmOt9Nk9NK+0A8b5Cj5BvOOsijPRVvqLl7S5po4rbyeXnxfRijuT+3vIreCBOhFALxsF2k 91CpQqJZa6vEI/eDvis8b8R/k27iIGiVH+S5oxN7gtpL/Tw0FtLze/Ij3mWyxA== 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 Date: Fri, 18 Aug 2023 11:28:23 +0200 From: Alexander Leidinger To: Mateusz Guzik Cc: current@freebsd.org Subject: Re: Speed improvements in ZFS In-Reply-To: <88e837aeb5a65c1f001de2077fb7bcbd@Leidinger.net> References: <61ca9df1b15c0e5477ff51196d0ec073@Leidinger.net> <88e837aeb5a65c1f001de2077fb7bcbd@Leidinger.net> Message-ID: <4d60bd12b482e020fd4b186a9ec1a250@Leidinger.net> X-Sender: Alexander@Leidinger.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.90 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[leidinger.net,quarantine]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_ALLOW(-0.20)[leidinger.net:s=outgoing-alex]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[current@freebsd.org]; FREEMAIL_TO(0.00)[gmail.com]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; ASN(0.00)[asn:34240, ipnet:89.238.64.0/18, country:DE]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[leidinger.net:+]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ONE(0.00)[1]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_SOME(0.00)[]; ARC_NA(0.00)[] X-Spamd-Bar: --- X-Rspamd-Queue-Id: 4RRxPz5G93z3XB3 Am 2023-08-16 18:48, schrieb Alexander Leidinger: > Am 2023-08-15 23:29, schrieb Mateusz Guzik: >> On 8/15/23, Alexander Leidinger wrote: >>> Am 2023-08-15 14:41, schrieb Mateusz Guzik: >>> >>>> With this in mind can you provide: sysctl kern.maxvnodes >>>> vfs.wantfreevnodes vfs.freevnodes vfs.vnodes_created vfs.numvnodes >>>> vfs.recycles_free vfs.recycles >>> >>> After a reboot: >>> kern.maxvnodes: 10485760 >>> vfs.wantfreevnodes: 2621440 >>> vfs.freevnodes: 24696 >>> vfs.vnodes_created: 1658162 >>> vfs.numvnodes: 173937 >>> vfs.recycles_free: 0 >>> vfs.recycles: 0 > > New values after one rund of periodic: > kern.maxvnodes: 10485760 > vfs.wantfreevnodes: 2621440 > vfs.freevnodes: 356202 > vfs.vnodes_created: 427696288 > vfs.numvnodes: 532620 > vfs.recycles_free: 20213257 > vfs.recycles: 0 And after the second round which only took 7h this night: kern.maxvnodes: 10485760 vfs.wantfreevnodes: 2621440 vfs.freevnodes: 3071754 vfs.vnodes_created: 1275963316 vfs.numvnodes: 3414906 vfs.recycles_free: 58411371 vfs.recycles: 0 >>>> Meanwhile if there is tons of recycles, you can damage control by >>>> bumping kern.maxvnodes. > > What's the difference between recycles and recycles_free? Does the > above count as bumping the maxvnodes? ^^^^^ >>> Looks like there are not much free directly after the reboot. I will >>> check the values tomorrow after the periodic run again and maybe >>> increase by 10 or 100 so see if it makes a difference. >>> >>>> If this is not the problem you can use dtrace to figure it out. >>> >>> dtrace-count on vnlru_read_freevnodes() and vnlru_free_locked()? Or >>> something else? >>> >> >> I mean checking where find is spending time instead of speculating. >> >> There is no productized way to do it so to speak, but the following >> crapper should be good enough: > [script] > > I will let it run this night. I have a 51MB text file, compressed to about 1MB. Are you interested to get it? Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF