schedlatsys: system-wide schedlat #52
Open
+191
−26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Taking inspiration from the schedlat script, I made a script for tracking scheduler latency system-wide, rather than for a specific process. I also display the latency values in µs to the user (I used this for plotting latency over time). This turned out to be rather useful for me at work.
While finishing it up I noticed issue #14, so implemented the simple version of the fix for that (using TID instead of PID with no aggregation) and it seems to work.
Let me know if you want me to merge schedlatsys and schedlat into one script (e.g. it could use a
-aflag for system-wide mode). Note that I calculate%LATslightly differently in schedlatsys.Please let me know if I've missed anything, I'm still fairly new to this area.