Page MenuHomeFreeBSD

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

Authored by markj on Apr 29 2025, 2:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 16, 9:25 AM
Unknown Object (File)
Sat, Jan 10, 4:34 PM
Unknown Object (File)
Sat, Jan 10, 5:09 AM
Unknown Object (File)
Sun, Jan 4, 7:27 AM
Unknown Object (File)
Fri, Jan 2, 4:27 AM
Unknown Object (File)
Thu, Jan 1, 5:50 PM
Unknown Object (File)
Dec 13 2025, 11:20 PM
Unknown Object (File)
Dec 12 2025, 9:22 AM
Subscribers

Details

Summary
  • 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
MFC after: 2 weeks
Sponsored by: Klara, Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable