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
F170537926: D50073.diff
Sat, Sep 5, 7:33 AM
F170492171: D50073.id154476.diff
Sat, Sep 5, 2:11 AM
Unknown Object (File)
Fri, Sep 4, 10:00 PM
Unknown Object (File)
Fri, Sep 4, 9:14 PM
Unknown Object (File)
Fri, Sep 4, 6:48 AM
Unknown Object (File)
Thu, Sep 3, 3:35 AM
Unknown Object (File)
Wed, Sep 2, 10:37 PM
Unknown Object (File)
Wed, Sep 2, 9:17 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