From nobody Fri Dec 08 11:04:25 2023 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 4SmpDp3bXFz53nnk for ; Fri, 8 Dec 2023 11:04:26 +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 4SmpDp1P5Qz4Fws for ; Fri, 8 Dec 2023 11:04:26 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702033466; a=rsa-sha256; cv=none; b=AglNdqMpA37ND0bJ+t7bk5tSNOkJ5Cdy+Ivm86clzdjCXdLPQxYN68iXLqbYHZ3njxqCkR t/a03lEkAZd+OWbauf1lBThGncJCAqbmLjE/7qtI+pPYkr36EEb+qcR23936qc45CyeMZs SNIj3xPQYJfeWmmb5m65XMRM7W0hTxZ5FmWZ36je73EN51VvYbFjSvvcEngGUji+HKhdlo JGuo4hwpy+vp+XvMqp28+2OarmCDc/ym2BVV3VqUQIS233+sHT8PaAaFpAr9qXGp/rdPyn 35PBY/AsAow2jPa3LhB8ExVDjFtIq33+WE/RUBwBHW+0kFc+4cugPFrrGIZJgg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1702033466; 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=A6ERq/5/mnu5FSXljKcEt9r/le1Xdke4Xxl8nut6GUc=; b=aTxO7yosV2I4Ro3GulaLL4LG1Jr60ov4naBldq30koyYfZz6JtJCzNlmBsQQuJD9/foPal DCKGNNxZvnzDpMtOX51//JJBuDzzoOKoYUWDjIE8j0wof2kCZhLxREjmgej/5UgKcwTeSb 1GMWbwjDQapVGCXECLsPMgxE2qq7YvQjCTT7o5uPkoCXsaRFbeQLyKn5TTdaTD4nt4OP7z 7gPjhhmzVE1T2dxxYO4kpn01cNy6Xk+AcXoExv4TWfMej4gEe/tY84YGta12xmcoake9PK BwFwpvSSQAaIxmau5T+/QUb10cfzo04Ez/DHq0YDEJ2dz9WKeCWEIyWTBcSmCw== 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 4SmpDp0V6Gz3M6 for ; Fri, 8 Dec 2023 11:04:26 +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 3B8B4QPZ064128 for ; Fri, 8 Dec 2023 11:04:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B8B4QBt064127 for fs@FreeBSD.org; Fri, 8 Dec 2023 11:04:26 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, 08 Dec 2023 11:04:25 +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 #7 from Seigo Tanimura --- (In reply to Seigo Tanimura from comment #6) Update: 1:25:00 since the build start, building lang/gcc12 and lang/rust. vfs.vnode.stats.count is ~1.4M. arc_prune tends to stick at about 20 - 25%= of the CPU with the occasional drops. The ARC memory is stable at ~4.6GB. The average vnode number requested for the reclaim by ZFS has exceeded 100K. I understand that the files generated by the builds exceed the upper limit = of the ARC memory. Arc_prune hence has to run continuously, though the interv= al avoids the starvation upon vnode_list_mtx. --=20 You are receiving this mail because: You are the assignee for the bug.=