From owner-freebsd-stable@freebsd.org Fri May 14 12:34:54 2021 Return-Path: Delivered-To: freebsd-stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A9B8E645AF6 for ; Fri, 14 May 2021 12:34:54 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FhSf635jnz3h3Y for ; Fri, 14 May 2021 12:34:54 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: by mailman.nyi.freebsd.org (Postfix) id 6A4BF645D88; Fri, 14 May 2021 12:34:54 +0000 (UTC) Delivered-To: stable@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6A0C164597B for ; Fri, 14 May 2021 12:34:54 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from constantine.ingresso.co.uk (constantine.ingresso.co.uk [82.144.246.50]) (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 did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FhSf62bY7z3hDR; Fri, 14 May 2021 12:34:54 +0000 (UTC) (envelope-from petefrench@ingresso.co.uk) Received: from dilbert.ingresso.co.uk ([2001:470:6a18:411::6]) by constantine.ingresso.co.uk with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1lhX1o-000AyV-IN; Fri, 14 May 2021 12:34:52 +0000 Received: from petefrench by dilbert.ingresso.co.uk with local (Exim 4.94.2 (FreeBSD)) (envelope-from ) id 1lhX1o-0009TN-A3; Fri, 14 May 2021 13:34:52 +0100 To: petefrench@ingresso.co.uk, se@freebsd.org Subject: Re: Does FreeBSD 13 disable the VEV cache in ZFS ? Cc: stable@freebsd.org In-Reply-To: <44b0243a-45b6-d098-948b-a6f3d6a53ba7@freebsd.org> Message-Id: From: Pete French Date: Fri, 14 May 2021 13:34:52 +0100 X-Rspamd-Queue-Id: 4FhSf62bY7z3hDR X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2021 12:34:54 -0000 > Could you check the values of the following sysctl variables: > > vfs.zfs.vdev.cache_size > vfs.zfs.vdev.cache_bshift > vfs.zfs.vdev.cache_max > kstat.zfs.misc.vdev_cache_stats.misses > kstat.zfs.misc.vdev_cache_stats.hits > kstat.zfs.misc.vdev_cache_stats.delegations As predicted, all zero, apart from bshift which is 16 and max which is 16384 > https://openzfs.github.io/openzfs-docs/Performance%20and%20Tuning/Module%20Parameters.html#zfs-vdev-cache-size > > Quote: > > Note: with the current ZFS code, the vdev cache is not helpful and in some > cases actually harmful. Thus it is disabled by setting the zfs_vdev_cache_size = 0 Ah, thats the thing I should have found msyelf I guess! :-) Actually, if smarter people than me think that its not useful on OpenZFS, then I shall probably leave it disabled. Generally people have a good reason for doing things. I shall have a read,and thankyou for confirming this (and thankyou for maintinaing zfs-stats! which is an invalauble tool I have found over the years) -pete.