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
F169813393: D50073.id154622.diff
Wed, Sep 2, 3:41 PM
F169674742: D50073.id.diff
Wed, Sep 2, 6:29 AM
Unknown Object (File)
Mon, Aug 31, 10:35 PM
Unknown Object (File)
Mon, Aug 31, 7:53 PM
Unknown Object (File)
Mon, Aug 31, 3:16 PM
Unknown Object (File)
Mon, Aug 31, 6:48 AM
Unknown Object (File)
Sun, Aug 30, 5:06 AM
Unknown Object (File)
Sat, Aug 29, 10:29 PM
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