From nobody Thu Apr 04 12:16:00 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 4V9LF02zlTz5GvS7 for ; Thu, 4 Apr 2024 12:16:04 +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 4V9LF01y7Vz437n for ; Thu, 4 Apr 2024 12:16:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1712232964; a=rsa-sha256; cv=none; b=SCd12DIP7HXKHWwHzkVIyu51Pzud8jREUVqV1ylIDlfknS3cUt4XPLAYsVASNxZ0Wmlc+U jypa2DShAEcgiSaSy/QRpjZyz9FX9Mi2x1zXiZ0IJCh8gcDBgCKvRpfm78H/STfTypZSh8 RZqXpJd7XfUwf2jk1XKgD6e7IZkPf8U7ZU7APO2VYgQwi/FnU4nCfJmdRkOzAGfp0MicAM 4vlQgf69J2wwaWVSgBns1djCO9NxVpD5oF75Hua1kde8ucn/DTylxLxtExDZM0CcpYeTZg ZDqW5KOne7CMckrRtFA20n6RaqhRMeCTyXYO+OglstC/oK1R0ebPHdj00mMsJA== 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=1712232964; 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=En1D7ie5EoFusgxXiHlr7ImJDXZheR8hZoV/qjh3fD8=; b=uZAdsMCRO8vPTjRmg4F/Mp4Ofgq2Ld3FEEJ0PDOXjjli1gmpJKkPVAjY5kkqcxfEGefprw Ezo9WB+2YmSfMVrxKfPtTNZx/ol/XHMtfFLuvoAG0u21sTQQRiqGWDDiPZ4+xUjohNVfWE rDqkA1rLkJBQ785YdlTmkirJgXXauSUayivu2SbDfLq6DB0YQrPw7ASim/vY199pGURHo2 u8ZRggvjdJUaE2S4NS4ehWEzeuJnKZ33x6NmQsODMXTyu7nF7cHp2lGOohPAc/9K3SsQO+ k6ABp7sonW2VIx7bTlq4/0U45kS9lLMJdQ/2KKOuv/pfUpJ4WUDgWzP0phirEg== 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 4V9LF01Z9wzG53 for ; Thu, 4 Apr 2024 12:16:04 +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 434CG4fX011730 for ; Thu, 4 Apr 2024 12:16:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 434CG4YX011727 for fs@FreeBSD.org; Thu, 4 Apr 2024 12:16:04 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, 04 Apr 2024 12:16:00 +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: mike@sentex.net 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 #109 from mike@sentex.net --- (In reply to Olivier Certner from comment #106) FYI, I am able to trigger this on a small 8G zfs box acting as a smb server= . On a windows machine I am generating a 200G vhdx file to the FreeBSD smb serve= r. That part is ok. Then on the FreeBSD box (RELENG_13.2) I run qemu-img to convert the vhdx file to qcow2. After that is done, I see the arc_prune is= sue. last pid: 49326; load averages: 2.80, 2.42, 2.32=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 =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=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=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 57+19:02:07 08:10:42 253 threads: 7 running, 226 sleeping, 20 waiting CPU: 10.1% user, 0.0% nice, 59.7% system, 0.2% interrupt, 30.0% idle Mem: 704K Active, 22M Inact, 12M Laundry, 7444M Wired, 619M Buf, 191M Free ARC: 5955M Total, 70M MFU, 5577M MRU, 61K Anon, 53M Header, 1020K Other 5475M Compressed, 19G Uncompressed, 3.54:1 Ratio Swap: 4096M Total, 155M Used, 3941M Free, 3% Inuse PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND 0 root -8 - 0B 1456K CPU3 3 69:20 99.91% kernel{arc_prune} 17 root -16 - 0B 16K CPU2 2 48:54 64.44% vnlru CPU: Intel(R) Celeron(R) N5105 @ 2.00GHz (1996.80-MHz K8-class CPU) Origin=3D"GenuineIntel" Id=3D0x906c0 Family=3D0x6 Model=3D0x9c Steppi= ng=3D0 =20 Features=3D0xbfebfbff =20 Features2=3D0x4ff8ebbf AMD Features=3D0x28100800 AMD Features2=3D0x101 Structured Extended Features=3D0x2394a2c3 Structured Extended Features2=3D0x18400124 Structured Extended Features3=3D0xfc000400 XSAVE Features=3D0xf IA32_ARCH_CAPS=3D0x20c6b VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID,VID,PostIntr TSC: P-state invariant, performance statistics real memory =3D 8589934592 (8192 MB) avail memory =3D 8002285568 (7631 MB) CPU microcode: updated from 0x1d to 0x24000024 Event timer "LAPIC" quality 600 --=20 You are receiving this mail because: You are the assignee for the bug.=