[Bug 269097] rctl(8) seems to include idle time in cputime
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 269097] rctl(8) seems to include idle time in cputime"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 01 May 2025 14:23:19 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269097
--- Comment #2 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:
URL:
https://cgit.FreeBSD.org/src/commit/?id=33be1632047c05dbfcc139476e05f49c3a86d560
commit 33be1632047c05dbfcc139476e05f49c3a86d560
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-05-01 13:59:55 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-05-01 14:22:25 +0000
racct: Fix accounting of CPU time for the system idle process
- Add a flag which cleanly indicates that a given process is the system
idle process.
- Modify racctd() to skip over the idle proc when aggregating CPU time
and other metrics which don't apply to the idle thread.
- Remove handling for idle threads from racct_getpcpu().
PR: 269097
Reviewed by: olce, kib
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D50073
sys/kern/kern_idle.c | 3 +++
sys/kern/kern_racct.c | 22 ++++------------------
sys/sys/proc.h | 2 +-
3 files changed, 8 insertions(+), 19 deletions(-)
--
You are receiving this mail because:
You are the assignee for the bug.