Date: Tue, 05 Aug 2025 23:58:36 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 235556] rctl(8) pcpu/cputime is too high Message-ID: <bug-235556-227-tOVvphDnu3@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-235556-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=235556 --- Comment #7 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=c72188d85a793c7610208beafb83af544de6e3b7 commit c72188d85a793c7610208beafb83af544de6e3b7 Author: Cyril Zhang <cyril@freebsdfoundation.org> AuthorDate: 2025-08-05 23:20:56 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2025-08-05 23:33:55 +0000 racct: Improve handling of the pcpu resource The previous scheme would inflate the CPU consumption of short-lived processes. For containers (e.g., processes, jails), the total pcpu usage was computed as a sum of the pcpu usage of all constituent threads, which makes little sense for a decaying average. Instead, aggregate wallclock time of all on-CPU threads and compute the pcpu resource as a decaying average as the sum. This gives much more reasonable and accurate values in various simple tests. PR: 235556 Reviewed by: markj MFC after: 1 month Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30878 sys/kern/kern_racct.c | 307 +++++++++++++++++++++++++------------------------- sys/sys/proc.h | 1 - sys/sys/racct.h | 6 +- 3 files changed, 156 insertions(+), 158 deletions(-) -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-235556-227-tOVvphDnu3>
