From nobody Tue Aug 15 19:33:34 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 4RQLzX0H0fz4qKZt for ; Tue, 15 Aug 2023 19:33:44 +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) client-signature ECDSA (P-256)) (Client CN "mailgate.leidinger.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RQLzW4pzwz3TM1 for ; Tue, 15 Aug 2023 19:33:43 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Authentication-Results: mx1.freebsd.org; none 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 1F3C43BA; Tue, 15 Aug 2023 21:33:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leidinger.net; s=outgoing-alex; t=1692128018; 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=no1F18xUql/JGhp1P337LBi4Ya41Ca8CQbUOlgkg2i8=; b=qCjkZm9lXeFvkAZ57zvyrqkH0+quu01Nr6KrwX5MxkT5gweMxvpo87hzoD0JJB3iQTb5xQ Nv14+BYYYUzAuzB3t5P/4fQvdKVJFZmNAj/NUZWLu1kaME8BjQmj4unLwgRP7T9Yo6YzuV nrogebh9s4IN6sU+f+e8cb5e0M+M6plMZw2erMumjfpUbe87k7sDntBwo0dPSFIIVvp7Sv 34ZhUELcxjEZ8BiLKnJ9lFSqBamWGxUFo1SVrgxJdPBC89RQm4IMNbCWPcDzGrl1Y8G1rD kNlo+CDxcNDjQViJpBc+QpIc2Vz+NnRBAw4Jarv3RdZ4a1DkXEaVJkV9jhH1sA== 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: Tue, 15 Aug 2023 21:33:34 +0200 From: Alexander Leidinger To: Mateusz Guzik Cc: current@freebsd.org Subject: Re: Speed improvements in ZFS In-Reply-To: References: <61ca9df1b15c0e5477ff51196d0ec073@Leidinger.net> Message-ID: X-Sender: Alexander@Leidinger.net Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4RQLzW4pzwz3TM1 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:34240, ipnet:2a00:1828::/32, country:DE] 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 > Meanwhile if there is tons of recycles, you can damage control by > bumping kern.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? Bye, Alexander. -- http://www.Leidinger.net Alexander@Leidinger.net: PGP 0x8F31830F9F2772BF http://www.FreeBSD.org netchild@FreeBSD.org : PGP 0x8F31830F9F2772BF