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)
Wed, Mar 11, 5:39 AM
Unknown Object (File)
Fri, Feb 27, 3:59 AM
Unknown Object (File)
Mon, Feb 23, 11:14 PM
Unknown Object (File)
Feb 7 2026, 5:38 PM
Unknown Object (File)
Jan 16 2026, 9:25 AM
Unknown Object (File)
Jan 10 2026, 4:34 PM
Unknown Object (File)
Jan 10 2026, 5:09 AM
Unknown Object (File)
Jan 4 2026, 7:27 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