From nobody Mon Sep 08 19:22:32 2025 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 4cLH0916sjz671Hb for ; Mon, 08 Sep 2025 19:22:33 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cLH09081Qz3s0J for ; Mon, 08 Sep 2025 19:22:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757359353; 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=v+QeUtVFrqM1s3AAioOzgrE1CE3zRn7XjXTvqNWa/Os=; b=I/7/QORbQqLc1sk/A+YNEBX9y1VNbt3DNPEspPCSvH5MVocE5YPF0v8Xz5nEO6PsI0AKER rxT+u8dk9Gz+r3LNX0302VPpBmqmkusgLR0HP8JpUazYx8f8x1VpK3VhDtJ4fzIZQU6zJb 3kAZy5AFDeaT2gR26eWcZ9OXUL/xS3Y3ra990DHCUvooEAh+r9ifhX8x2KffHbRA/6xPoV COdGvrKfpwaQI1DDkc+lf71PP0nZSkEPKs7wX5Kyznm+Bv9WGP5aOSArd7eIkza7zYaloO kZMtAbO9BhIKT+5GzAfld9e+C1ZkLjp2YG5G5+DkMNlmp+gmwK/Bal6Zz1abFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1757359353; 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=v+QeUtVFrqM1s3AAioOzgrE1CE3zRn7XjXTvqNWa/Os=; b=bdbRClEIxKyJHuQqSTuAM9Xo3eLFT3RWEIsFcYT1LDvKaCf+5xf+xU3PrXmx3iyS2znorf /QdH2Slk1HaaQsbvU2oE/Wkozeh6gccjHisXWkcY9o9FLM4woeB1scnSEJK8m5W4Ac6VOD CmqltVeq0kJnvqGrR6zGT/f3bJorF/uKzj/m1UTzdjYPx2Je3CQaJ67vAsqJEIKosAjNkL CeqVTWbA1IHDY/bX56j/+tzRMKfkvOfr6ovJNuD6+b7GmbUjiglwAavGHINqngSIepUYCy lNJx7x/gD4NqJA4pTzIR//Q1JS82rnz0ALLyj5BHvQB2NTvafSRiVwi3UAuytw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1757359353; a=rsa-sha256; cv=none; b=xMC0GB/oTpiYQYPvx9pjuq/PdTAigK2MUZlADqSCmbWruTrSsvsVOB9a+laX8vbJ4YqguN 5mM/kSdXgRW1RX66LWnNZorbXcn+m8dnLZyjPqTpz+qMO7WklOHsUf/ZVnRrfgLlFUe2tB fTw1xZMF4XcUk42HsNTVPytDA7kkMRfRW8Pj8cPX6oa2Mp7N97bEDCvzniytUK+LHjtGSC jN+A3+9z4BbT+39S63kNPM7UMXkYRMGvY2u+w+X+c0GU6EXQCtsGu3PwLpT9w4m8W6uXNL yq20JbOWVcqGvbwT3zM6dCL7RK8vl1spVnoH1qW4NQSe6SZFghGVG0Aoljsi2g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cLH086qvzz1J51 for ; Mon, 08 Sep 2025 19:22:32 +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 588JMWAe019302 for ; Mon, 8 Sep 2025 19:22:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 588JMWuM019300 for bugs@FreeBSD.org; Mon, 8 Sep 2025 19:22:32 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 289387] sysctl values dev.cpu.N.cx_usage are at 100% while CPUs are mostly idle Date: Mon, 08 Sep 2025 19:22:32 +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.3-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: staffer.parry.0e@icloud.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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=3D289387 Steve King changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |staffer.parry.0e@icloud.com --- Comment #1 from Steve King --- AIUI cx_usage is the amount of time a cpu spends in a given C state, you se= em to only have one C state active therefore the cpu spends 100% of its time in it. So not directly related to CPU load as shown by top. Have you got performance_cx_lowest=3D"Cmax" set in rc.conf. This the out from my cpu: $ sysctl -a | grep cx_ hw.acpi.cpu.cx_lowest: C8 dev.cpu.3.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc dev.cpu.3.cx_usage_counters: 67455451 94463362 175741864 dev.cpu.3.cx_usage: 19.97% 27.97% 52.04% last 29us dev.cpu.3.cx_lowest: C8 dev.cpu.3.cx_supported: C1/1/1 C2/2/253 C3/3/1048 dev.cpu.2.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc dev.cpu.2.cx_usage_counters: 65856084 90971269 171281055 dev.cpu.2.cx_usage: 20.07% 27.72% 52.20% last 779us dev.cpu.2.cx_lowest: C8 dev.cpu.2.cx_supported: C1/1/1 C2/2/253 C3/3/1048 dev.cpu.1.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc dev.cpu.1.cx_usage_counters: 65724627 90757058 170987417 dev.cpu.1.cx_usage: 20.07% 27.71% 52.21% last 4us dev.cpu.1.cx_lowest: C8 dev.cpu.1.cx_supported: C1/1/1 C2/2/253 C3/3/1048 dev.cpu.0.cx_method: C1/mwait/hwc C2/mwait/hwc C3/mwait/hwc dev.cpu.0.cx_usage_counters: 65670120 89806406 173626997 dev.cpu.0.cx_usage: 19.95% 27.28% 52.75% last 2385us dev.cpu.0.cx_lowest: C8 dev.cpu.0.cx_supported: C1/1/1 C2/2/253 C3/3/1048 As you can see I have 3 active states C1,c2,C3. Note the cpu manages the c states itself. --=20 You are receiving this mail because: You are the assignee for the bug.=