I built a TSA tool for Linux to find the "hidden" CPU wait time

Posted by AnkurR7@reddit | linuxadmin | View on Reddit | 17 comments

standard tools like htop usually just show cpu % but i needed to know why threads were stalling when they WERENT using cpu. found a footnote in brendan greggs systems performance book saying a native linux tsa tool was missing, so i tried to build one in rust.

it uses raw netlink taskstats to get microsecond-precision delay accounting. it shows exec % vs sched wait % vs disk io %. i had some trouble with kernel caching in newer versions (5.15+) but it works well for active threads.

check it out if you're debugging noisy neighbors or disk latency

issues:

https://github.com/AnkurRathore/tsastat