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
F151119955: D50073.diff
Mon, Apr 6, 5:24 AM
Unknown Object (File)
Thu, Apr 2, 6:52 AM
Unknown Object (File)
Tue, Mar 31, 6:44 AM
Unknown Object (File)
Wed, Mar 25, 9:13 AM
Unknown Object (File)
Sat, Mar 21, 3:15 PM
Unknown Object (File)
Sat, Mar 21, 8:59 AM
Unknown Object (File)
Sat, Mar 14, 12:20 AM
Unknown Object (File)
Wed, Mar 11, 5:39 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