Complete
Details
Assignee
CalebCalebReporter
Bug ClerkBug ClerkLabels
Original estimate
Time remaining
0mComponents
Fix versions
Priority
Low
Details
Details
Assignee
Caleb
CalebReporter
Bug Clerk
Bug ClerkLabels
Original estimate
Time remaining
0m
Components
Fix versions
Priority
Katalon Platform
Katalon Platform
Katalon Platform
Created December 2, 2022 at 3:45 PM
Updated February 27, 2025 at 10:09 PM
Resolved December 8, 2022 at 3:08 PM
PR: https://github.com/truenas/middleware/pull/10173
Investigating scalability problems on a large internal system showed that an abnormal amount of time was spent in `psutil.disk_io_counters`. Specifically, it was busy doing `readlines()` on `/proc/diskstats`. This fixes that problem by transposing the same logic to this class but instead of reading the entire file into memory, iterate over it. Generating flamegraph afterwards has shown that this is no longer a problem.