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)
Tue, Jun 9, 1:58 AM
Unknown Object (File)
Sun, May 31, 12:13 PM
Unknown Object (File)
Sat, May 30, 3:27 AM
Unknown Object (File)
May 20 2026, 10:00 AM
Unknown Object (File)
May 15 2026, 1:46 AM
Unknown Object (File)
May 15 2026, 1:45 AM
Unknown Object (File)
Apr 28 2026, 6:58 AM
Unknown Object (File)
Apr 28 2026, 4: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 Skipped
Unit
Tests Skipped
Build Status
Buildable 63779
Build 60663: arc lint + arc unit