mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-07-06 10:03:07 +02:00
atop's `-P PRC` output inserts the clock-tick rate (HZ=100) between the
`state` and `utime` columns. Both the Python parser and the native C
aggregator read that constant as utime for every record, charging a flat
1 CPU-second per record — so cpu_seconds collapsed to pid_count and
short-lived fork-storm commands (xset, dd, chronyc) topped the CPU table
(xset showed 67h). The old test fixtures lacked the HZ field, so code and
tests agreed on the bug.
- _parse_prc / atop_agg.c: read utime/stime past the HZ field (after+2/+3,
tokens[10]/[11]); bump the length guards accordingly
- restore C/atop_agg (deleted in
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| _usage_report_parsing.py | ||
| _usage_report_types.py | ||
| auto-system-update.sh | ||
| browser-preexec-wrapper.sh | ||
| hosts-file-monitor.sh | ||
| install_usage_monitoring.sh | ||
| kill_stale_recorders.sh | ||
| periodic-system-maintenance.sh | ||
| shutdown-timer-monitor.sh | ||
| usage_report.py | ||