From nobody Fri Dec 8 17:47:28 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 4Smz9s0WPTz536xG for ; Fri, 8 Dec 2023 17:47:29 +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 4Smz9r5lQPz3Wl6 for ; Fri, 8 Dec 2023 17:47:28 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1702057648; a=rsa-sha256; cv=none; b=eEoHeupySW6z4Fbqm0gzjLHzjMDYhpaCCRMEnE/X12O0RpCY0+uXrZ210B994s7RzBpBkn XzU33UdU4KGOscctxllEUHLq8vYXZBZLtnvmFGzVtn0oQ5JW+Hs1GHLgD/af2maKm6EAJj +TWCPhCnP4aggLG6FSJ8OWxK7SWYZ3vQo8TpbqH76p16HlUO8AttipC0RhtYYDZ+BiAH63 xqZjvqyYah+tfJcE66NuRWKM/FfeyUOKpRsH1VJ7dYecS67vqbGoBpvIlxOsrh1BSs3Tjg HAvCiztr8UnZ+ITdi/xV4yz+WAylyxDKj+XQXNZlChSEtbZa0m3wG8xx5wO6kQ== 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=1702057648; 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=bbqSnlK9LCqoUovvboZep8hKjqZPNYGeGJssheNRN/c=; b=mBfXKg2PtOBvwa0SO2XjcQGFskx3BRk4ujw/WwXmQJQ8prhP+Cuvf4X+rCPSfvp2hK6HBj j7nf86CqBn+4J80wuGZK00+ddzMpoSA2CTuB9Hvzlh0cuHTEUkBkzqTF4FWQ9/rblcB/dC 9PFQfa7jH2uAIUlKPLmdpf12eiS83ibTGShYzbURF52xBhwQlDRyicuj+TFi3llcYhy+8K BFxzdBUMmvoMKUDg6uTPqxc5PN6+dlFPJO+sJ2ZWhchN1adMjZctAhy3h5wOBlbtWo467I K3QiUUlzyUq1LUbEsWKASdgGI4zbHl7xhSp4O01k86Z3pgaBt7Wbl2/Z+Iw95g== 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 4Smz9r4nnMzWMg for ; Fri, 8 Dec 2023 17:47:28 +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 3B8HlS0e094045 for ; Fri, 8 Dec 2023 17:47:28 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3B8HlSup094044 for fs@FreeBSD.org; Fri, 8 Dec 2023 17:47:28 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 17:47:28 +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 #8 from Seigo Tanimura --- (In reply to Seigo Tanimura from comment #7) Done. Build time: 07:14:10 (295 pkgs / hr) ARC memory size: ~5.8GB just when the final build finished, ~4.0 GB after cleaning up all of the poudriere builders. The final performance was rather like the case of vfs.vnode.vnlru.max_free_per_call=3D10000. arc_prune kept the CPU usage of= 20 - 40% after the build of lang/gcc12 until the end. Inside the ARC memory, "Other" of top(1) recorded ~2.0GB just when the final build finished. This value is the sum of: - kstat.zfs.misc.arcstats.bonus_size - kstat.zfs.misc.arcstats.dnode_size - kstat.zfs.misc.arcstats.dbuf_size Maybe I have work out the way to track them... --=20 You are receiving this mail because: You are the assignee for the bug.=