From nobody Wed Jan 10 07:45:11 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 4T90Fg5pN9z56K7g for ; Wed, 10 Jan 2024 07:45:11 +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 4T90Fg4hjXz4rQ7 for ; Wed, 10 Jan 2024 07:45:11 +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=1704872711; 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=CD8N3/Uw/shEs2XNLJeTTmqTgABIbf9jXbDEZk68xio=; b=BvYE0vodt6dNsUFKqXApMPjpHO6IjgfKmtWTVkKGoVNk/Mr0JaVLcZL40X8IQZ1UUX7WgD mPJkIggDudiioG5RyL4K4rjJUTaHVkdYOBNHjeFw812+r911iMIxSbYQ0OqZPanaX6PoHj GabJq2VttW9DuTFivyJy6eqRUDgJiI8VyjDWaj+ApqJWyeCmH+0gmQHfnQ5A3tcHosq5A/ HYhnD2RNaow6PrgWaGLdlIuYarmw69iTmkMBxSAkDALnH0L+zsTfoToFgMFqoCmeJOUAtB D9QKOMgMYYg9pcpKBlTOSWopxX7tpCSTRoWxWY+fNfzK/hlb5aVRZ44VQgSC5w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1704872711; a=rsa-sha256; cv=none; b=isSGpRW2ECD4HZZAoBI/OXMoKYmp3PzGoKCuGmb0+5yPZ8yKJOX2xGSeMIWEjk0/YCF0fW HDIAzBMyGaclDprqRhRRbViWsYi7tlTMKynAbgttaQ5v6ZeCL++rwMlLIFLKs4A/b9ZleF 5kDR3yklPdJ9BoiSJf9jxmE8dNYUDOjn/C2Bq0Fh80EWOdg8glU3WZ89/kwkADe4UlhqzN flrFqZYXbSJ4E5tVYCvaY42k6i3TY/l+QR0b75V1MLoug7aTnWZJLMFAzjLi76CX/wPYH5 KIpPI6u1k8HIYrrc6zMHalveUvAKRsZ1JmVUm6zlvh9qIlNXe67euQ6fMAfUsQ== 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 4T90Fg3j1mzRF2 for ; Wed, 10 Jan 2024 07:45:11 +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 40A7jBln057890 for ; Wed, 10 Jan 2024 07:45:11 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 40A7jBj9057889 for fs@FreeBSD.org; Wed, 10 Jan 2024 07:45:11 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: Wed, 10 Jan 2024 07:45:11 +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 #30 from Seigo Tanimura --- (In reply to Allan Jude from comment #24) > Something that might be worth looking at is these changes from upstream: > https://github.com/openzfs/zfs/pull/15511 I have tested PR 15511 applied to the fix branch, but there were no signifi= cant changes on the dnode sizes. Result Chart Archive: (poudriere-bulk-openzfs-pr-11551-20240110.7z, Attachm= ent #247565) - zfs-arc-dnode-size-before.png - The total dnode size in bytes, before applying PR 15511. - zfs-arc-dnode-size-after.png - The total dnode size in bytes, after applying PR 15511. Contrary to the test steps in PR 15511, the nullfs(5) vnodes used in my poudriere setup keep the use counts on the lower ZFS vnodes. This behaviour makes the ARC-prunable vnodes much less compared to the total znode number.= =20 Please refer to zfs-znodes-and-dnodes.png in Attachment #247560; the area between the blue and green traces are prunable. --=20 You are receiving this mail because: You are the assignee for the bug.=