From nobody Mon Nov 13 21:10:33 2023 X-Original-To: bugs@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 4SThsk28S6z50gds for ; Mon, 13 Nov 2023 21:10:34 +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 4SThsj739vz3LHM for ; Mon, 13 Nov 2023 21:10:33 +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=1699909834; 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; bh=CLqd4CKKwRRHx4n7CRdfYf3pNSiA+jg3FvJt3e74K8U=; b=n7qzlByadFqLSnXTl1++iQPeQMPYU/lQ+q4DzMWMZIt+M0192Nmm0xVaiY1FhTA07dJY9E 8gCT+UpZhxZMHL/ufuboRvtZwhyQni4HAsD6DCdja9J7xXH/4JPEnjDH+DoxGf27ddx0tI eZIfLROtKf3s46ZdsXuuk6v5cOW/2OXfvgGXCcI0BaBjPolygqxSjrqTZFkVQ8p7fQryaI reMmnJmpTEF3VpVXiNk+GFwNYKD9fYZ8Knc86pORewy8DhJZll3Ugxomnr/dMRP9IVEnLp 8tuEttKqePs42IAVhjf0pM14gEu29R/pZirBeZVG1VR/fW9ZFUvQsXZVzaeuAw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699909834; a=rsa-sha256; cv=none; b=Uax3tBM69GV5TsbQPwgYY0voEAAzx+b+ARYn6bFGO2qOmaXo8M2ZZh36Y2QdJZs/GOhWfS OD8/zVV+U/8G6uozd/I5EBKQsulhDJIMWWVH7JeZj27r8StWWZTabQqxJnVIjHZVRAT2Qo FvaEukpCq9Yrz19Y1p/xHmRtIiLBNyiFEFOwqArWzshHzFm6271SjkOxowdUMpX48VrxfX sR0whatGQEhlDCBAp3/EmYpaZzou8fr4Z9ojXDTn9drxsBueB60AveADBNXt89b9lsf0P6 WJkdawvFkHe/BwEAp82/IzVHKfSFPOqrAtF/Zcb0bAiTvKD7m/UkMNM0kQPUUA== 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 4SThsj618Bz6HW for ; Mon, 13 Nov 2023 21:10:33 +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 3ADLAXjh070477 for ; Mon, 13 Nov 2023 21:10:33 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 3ADLAXCF070476 for bugs@FreeBSD.org; Mon, 13 Nov 2023 21:10:33 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: bugs@FreeBSD.org Subject: [Bug 275063] kernel using 100% CPU in arc_prune Date: Mon, 13 Nov 2023 21:10:33 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: d8zNeCFG@aon.at X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D275063 Bug ID: 275063 Summary: kernel using 100% CPU in arc_prune Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: d8zNeCFG@aon.at Scenario: - FreeBSD stable/14 at e4fb49e867ae70412205d1aade0b76fae158b551 - Doing an rsync from UFS to ZFS, where both are on the same physical disks - The scenario always worked flawlessly on releng/12.4 - 4-core CPU - Running top with H and S keys pressed (show system processes, show thread= s) Result: - 200% CPU time is used: 100% by rsync, another 100% by something labeled "arc_prune" in top - top snapshot: last pid: 4132; load averages: 2.04, 1.92, 1.69=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 up 0+13:28:31 22:08:35 369 threads: 7 running, 342 sleeping, 20 waiting CPU: 0.0% user, 0.0% nice, 49.9% system, 0.0% interrupt, 50.1% idle Mem: 64M Active, 142M Inact, 222M Laundry, 2632M Wired, 276M Buf, 12G Free ARC: 661M Total, 153M MFU, 394M MRU, 16M Anon, 14M Header, 68M Other 380M Compressed, 941M Uncompressed, 2.48:1 Ratio Swap: 20G Total, 20G Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 0 root -8 - 0B 1376K CPU1 1 28:14 100.00% kernel{arc_prune} 1491 root 132 0 26M 11M CPU2 2 21:04 96.99% rsync 10 root 187 ki31 0B 64K CPU0 0 765:33 83.53% idle{idl= e: cpu0} 10 root 187 ki31 0B 64K RUN 2 763:29 68.92% idle{idl= e: cpu2} 10 root 187 ki31 0B 64K RUN 3 762:42 47.56% idle{idl= e: cpu3} 20 root -16 - 0B 16K vlruwt 3 0:43 3.07% vnlru 2 root -60 - 0B 64K WAIT 0 0:54 0.08% clock{cl= ock (0)} 4132 root 20 0 14M 4188K CPU3 3 0:00 0.06% top 11 root -64 - 0B 256K WAIT 0 0:44 0.01% intr{irq= 29: ahci1} 4 root -16 - 0B 48K - 3 0:40 0.01% cam{done= q0} 2824 root 20 0 25M 13M select 0 0:00 0.01% xterm 17 root -16 - 0B 48K psleep 0 0:15 0.01% pagedaemon{dom0} 779 root 20 0 33M 6976K select 3 0:05 0.01% mountd 698 root 20 0 13M 1840K select 0 0:04 0.01% powerd 16 root -16 - 0B 16K - 0 0:04 0.01% rand_harvestq 2876 root 20 0 16M 4696K select 0 0:01 0.01% xload 0 root -64 - 0B 1376K - 3 0:03 0.00% kernel{fw0_taskq} 11 root -64 - 0B 256K WAIT 2 0:53 0.00% intr{irq= 30: re0} 695 root 20 0 19M 6028K select 0 0:03 0.00% ntpd 861 root 20 0 63M 24M select 3 0:01 0.00% httpd 21 root 16 - 0B 16K syncer 0 0:03 0.00% syncer 19 root 20 - 0B 144K sdflus 3 0:01 0.00% bufdaemo= n{/ worker} 15 root -8 - 0B 1104K mmp->m 2 0:01 0.00% zfskern{mmp_thread_enter} 15 root -8 - 0B 1104K t->zth 0 0:07 0.00% zfskern{arc_reap} ... Expected result: - The system should not slow considerably by spending a full core on "arc_prune" -- Martin --=20 You are receiving this mail because: You are the assignee for the bug.=