From nobody Fri Jan 19 08:35:12 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 4TGXxF0npMz58B66 for ; Fri, 19 Jan 2024 08:35:13 +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 4TGXxD6sq8z4Lmn for ; Fri, 19 Jan 2024 08:35:12 +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=1705653313; 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=pUJEV0PAdD5Q/IyW6VDsFXV6SGq9av/RoqPWDeAWlSQ=; b=ksWaa7BtqFQEr81TNoXB5/iQ8RetixppZouFDaFIHU6Mqd9yT2H5CYJNuj/QED6N8UG3d9 W3HBSeHiFb+JWiJ+pJIk6GK20WyHOUIiCEnRbn87BRm4IiQs57vrcEeov40AbhUtkXdGjb dLim3nwxyGC6QDYR/zv1Sy8wKKlfA8ErHHwvCwzRFQ7trROO87+M2UPp94tQkJqtdAGiQA b1QLEGhCjEEdRd4p/KLsRM4gZZ5LsD9utbNEAkseLJQdUTtf9nwyAEe7/G9sFmQTvAn0H9 AOO/KsxvkeTHSQSEMms4cswOBEo0+KehFIyTQHy0xKbF3HMYQ8ln4pkvacdsEg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705653313; a=rsa-sha256; cv=none; b=S1fwJtZfOBPP55yGugtfToe0JvJSwUcuCCGmKemhI/gUOt9205pGNaz97u0LtEHtPtz8mA tPc1Vt4LR9CCZ2r2JRPxHfWr7rR5neI2doVFeagPmMR3vIrMmqKrtX4FRJiv7q26k7JimI oUzz8ZivNTLn1WAsiXIyNmrayks6+adQ4qYcQoPC4lANAvgf4BUOYKEGpQVIRAyn7ipC8p lmYoTLfWZmcBPJW5rj2cYjDW5aCesXz2CDn18laZKc3WBMu7mdLic9WTMqJMr8XSt5UPkB DZfWZCThdNiOPLlPWzIhJtFK6uJCwoIDdKsJrZIGrghJgjnTllVKdMOngSG0Xg== 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 4TGXxD5xvZzkmv for ; Fri, 19 Jan 2024 08:35:12 +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 40J8ZCEE060765 for ; Fri, 19 Jan 2024 08:35:12 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40J8ZCPU060764 for fs@FreeBSD.org; Fri, 19 Jan 2024 08:35:12 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, 19 Jan 2024 08:35:12 +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: thmu7@freenet.de X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: fs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 Thomas Mueller changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |thmu7@freenet.de --- Comment #32 from Thomas Mueller --- After upgrading from 12-STABLE to 13-STABLE (due to ports changes triggered by 12 being EOLed), I'm now observing high CPU usage of kernel{arc_prune} on 13-STABLE too. This is on a system with 16GB of RAM which boots from a SATA attached SSD with UFS containing the OS, /usr/src, and /usr/local. A ZFS pool containing data, home, poudriere jails and data, /usr/ports is located on a GELI encrypted 1TB NVMe. ARC is limited to 2GB. This system is used as desktop development system. The arc_prune high CPU usage appears to be triggered by heavy file I/O on the UFS file systems, for example git operations on /usr/src.=20 Once, when /usr/ports was also still on UFS, the "Inspecting ports tree for modifications to git checkout..." step of poudriere took more than 3 hours! Questions: Would migrating to ZFS on root mitigate the issues? Is 13-STABLE in focus for this PR? --=20 You are receiving this mail because: You are the assignee for the bug.=