5 ms·
The "pressure stall information" looks interesting. It's exponentially weighted moving averages of the fraction of time "some" or "full" (all non-idle) tasks ar
by scottlamb 8y ago
The "pressure stall information" looks interesting. It's exponentially weighted moving averages of the fraction of time "some" or "full" (all non-idle) tasks are stalled on each of CPU, memory, and IO. Also a counter of absolute time. [1]
Printing this seems like a good addition to "Linux Performance Analysis in 60,000 Milliseconds". [2] More useful that the load average printed by uptime, which hasn't aged well. Linux mixes cpu-bound and io-bound stuff into one bucket [3] which is a terrible idea, and the number of tasks is confusing at best when you have a mix of thread-per-CPU and thread-per-connection stuff running.
Looks like it's also exported on a per-cgroups basis, which is great.
[1] http://git.cmpxchg.org/cgit.cgi/linux-psi.git/tree/Documentation/accounting/psi.txt http://git.cmpxchg.org/cgit.cgi/linux-psi.git/tree/Documenta...
[2] https://medium.com/netflix-techblog/linux-performance-analysis-in-60-000-milliseconds-accc10403c55 https://medium.com/netflix-techblog/linux-performance-analys...
[3] http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html http://www.brendangregg.com/blog/2017-08-08/linux-load-avera...
- peterwwillis 8y agoI was excited at first, and then realized this is a kernel patch and not a userland tool. Boooo. FB says "PSI tracks three major system resources — CPU, memory, and I/O — and provides a canonical view into how the usage of these resources changes over time." It should have been possible to do this in userland and make this (somewhat) kernel version-independent. I'm sure I'll use this once there's OSes running a stable kernel with these patches, but I don't run non-vendor kernels in production [unless I'm forced to], and depending on kernel features makes it hard to support legacy systems.
- Hello71 8y agohow would that work edit: you seem to be implying that FB is stupid and likes writing kernel code for no good reason.
- deleted 8y ago[deleted]
- VectorLock 8y agoThis PSI data could be the holy grail of autoscaling metrics.