From nobody Thu Jan 25 06:31:53 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 4TL9wB5mcJz57sTk for ; Thu, 25 Jan 2024 06:31:54 +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 4TL9wB4jnWz4gTy for ; Thu, 25 Jan 2024 06:31:54 +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=1706164314; 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=OGLcbyqxBK8+gVLZIpvse7S+9X7qClUIhe+QMJh9r70=; b=KcWKHpk6AJaaWhlpxdUDWRLXqhG0NLQ0qRWNDI0Y99jn6XnSI2SoMD7T7UxHaENJdLKRVV 85OJgc8cgL/9Yz2CehGRIVedrKDoxIQb4HaMxVn7ZxLNTyPZ7kAN9U+9uyv5YQbHOW95WA K5zmx81AYHTpu5u739j5i6ugQFOxlgnVb1PoUBZGduJRCwo6nMS+Uz2LyO6vDxLBw+bVub CBvEpYbXNWlpQr8P+LIpGxrdYtXDrQu91B2IVYrGVIahNU9c/nnhr8zL/agChWAnJljhpE wtCGJFyGsKgRPPn82W1WpQ/f5eI8NaSy9WETRrBU3+f4TqHUU/K2Yd53mZOQNg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1706164314; a=rsa-sha256; cv=none; b=UavywMnxaoBykdm3mX7iv4/DAcVqW2atpOtioOZbmb2fRuU4vth0G0hEahVrtDtgXrx2PA lNDc8n1n9B6tCkcXye3FiQJXkwwfptlS1GEgmn4w3p2fSPGLqdEfFFM9r+tdywGNuTkIYD knt0ptIjee/PRqYXor27PJWvTRbHWw+tJKfMseaWm4A4NOVZSPvm5pIaotW4PnU+nujcGV Ep6hpUJ3dms8ag+vQg105dnxKYnlQfMgJjtbUh+3kzVfoh96i6/MiHFUjpJ7QB540fF9WN jOPjQpvkoeV4xRH8xGzHoYBdcQGe8sQiQPO0/WxSWY07/fbctz+SUN7Vv6WUWw== 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 4TL9wB3qYDzn5x for ; Thu, 25 Jan 2024 06:31:54 +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 40P6VssV081335 for ; Thu, 25 Jan 2024 06:31:54 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40P6Vsfe081334 for fs@FreeBSD.org; Thu, 25 Jan 2024 06:31:54 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: Thu, 25 Jan 2024 06:31:53 +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: 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 #41 from Thomas Mueller --- I added changes from commits a57d4914c11f4bc6d5ed33e146f2664315f64701 4efe36b1428a9956a049fc5fc5f19d4a001d51bf=20 from your stable/13-topic-openzfs-arc_prune-regulation-fix branch to my 13-STABLE kernel and things look much better now. I have no exact comparable data though, but from observation - while poudriere is running, kernel{arc_prune} could not be=20 observed consuming 100% CPU or any other unusually high=20 values for longer amounts of time - while poudriere is running, parallel heavy disk I/O=20 (e.g. by periodic daily/weekly) will no longer slow the=20 system down - no spurious build failures ("bad file descriptor") observed for now - after a poudriere run, "pkg upgrade" of large packages, (for example texlive-texmf) no longer triggers high CPU usage of kernel{arc_prune} and also does no longer take unusually long time - poudriere pkg/hour went from 5-20 up to 55 (no exact comparable builds), just an observation from previous samples and one build with ~400 packages on the patched=20 system - no negative impact of poudriere (2 jails) running at idle=20 priority on productive work or video playback --=20 You are receiving this mail because: You are the assignee for the bug.=