From nobody Fri Jan 05 17:29:36 2024 X-Original-To: fs@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 4T69SJ4xC5z55PGB for ; Fri, 5 Jan 2024 17:29:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4T69SJ34Tdz57gM for ; Fri, 5 Jan 2024 17:29:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1704475776; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Kj+GBa8gMCzXx6TybIRLceFga4o8upwDgCLLIiRPZKw=; b=q3VWX5Fq4eJmI5bbegenrv7J1jnHUFNMARNAfLDKAF3rJyV3SKsF/B7SZ0Ch3JTb2V2v4H iLW12uhRLAVKG1pD7dGI7CXkzYLoK4BjKkfGiNYkXBmUecjYIW3jOZyYrmqyIx8ZvtWGga G8tdqCgi5CZ/J+2ucIE5rP0hKfMQApeIDA/RKDJMrofXnTKAtfDYxOG1lovIe9esvTmkdG CA01Re5hgHcYK7LoxEDw8Y+oBI8ygsLWXt4AY7gggtoHicl7j8/5KPDnankB2BrVr2K0C9 b5k5YEG/mC8lLlFO02pfFqiXzGM2cLS+f0GAv+YC4NwiXHWmoL9HeYcaFvaTFg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704475776; a=rsa-sha256; cv=none; b=ul+bQ9zkLJM4MklM6J6yQROUH4davznHV0Y078Ck566AeLAdXSSgSp74oMvP57Gc1ocSqE JBuREdJSv0iEbT1WswoN5QzuBm89ARn9sSIAKIU9tzJuVzKsUvxAvFn6UGKGxPmZramF40 /ouUQyDeakZ/iBiizuTQ8FuWV5pUMpQXZ0qEIcO/Tf0Y0C7NnuTDDOMnP5vH3wHwfJZIgH F1oc03hIN7CYbWmm+TASj270R+939eGd+rT1Yt/+ep+PnpOf5FSFmekF3uAaJHcjidkK4E QfpcFFv3VPEYbTyIhU8VuyksjxJmkI8oa4lu2drkfEoNJLEwxKymuVgXdN4HYw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4T69SJ28bjz167T for ; Fri, 5 Jan 2024 17:29:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 405HTaKp077072 for ; Fri, 5 Jan 2024 17:29:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 405HTawq077071 for fs@FreeBSD.org; Fri, 5 Jan 2024 17:29:36 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 275594] High CPU usage by arc_prune; analysis and fix Date: Fri, 05 Jan 2024 17:29:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: seigo.tanimura@gmail.com X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275594 --- Comment #23 from Seigo Tanimura --- (In reply to Mark Johnston from comment #1) > > - vfs.vnode.vnlru.max_free_per_call=3D100000 > This value is 10 times larger than the default. Why did you change this = parameter? What happens if you leave it at the default value? Out of the tests so far, I now believe that the default value of vfs.vnode.vnlru.max_free_per_call (10K) was chosen in order to polish the l= oad under the uncontrollable and unreasonable ARC pruning requests. Now that the ARC pruning is precisely throttled for the efficient execution= , it should be all right to increase vfs.vnode.vnlru.max_free_per_call up to vfs.vnode.param.limit and let ZFS determine the actual work load.=20 vnode_list_mtx is an expensive lock, so once we acquire it, we should prune= as many vnodes as we can. --=20 You are receiving this mail because: You are the assignee for the bug.=