HomeFreeBSD

racct: Fix accounting of CPU time for the system idle process

Description

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

(cherry picked from commit 33be1632047c05dbfcc139476e05f49c3a86d560)

Details

Provenance
markjAuthored on May 1 2025, 1:59 PM
olceCommitted on Fri, Dec 19, 9:16 AM
Reviewer
olce
Differential Revision
D50073: racct: Fix accounting of CPU time for the system idle process
Parents
rG12b613efb4c6: vm_domainset: Ensure round-robin works properly
Branches
Unknown
Tags
Unknown