News for hackers. Stuff that matters.
Re:Where Linux's load average comes from in the kernel by tie_ on Monday April 18, 2022 @04:02PM (#31075729)
Install atop and configure it to sample every second.

I can't count the number of times this has helped solve a mysterious behavior. Atop is king.

Re:Where Linux's load average comes from in the kernel by jeffbee on Monday April 18, 2022 @08:18PM (#31078389)
It's great but it's very expensive so be aware that if you are down to the level of caring about things in the single-digit percentages of your budget, something like atop once per second could easily consume that amount of resources. A lot of these stats are really not cheap at all. E.g. you may find a substantial difference in the amount of CPU time needed to produce /proc/pid/stat as opposed to /proc/pid/statm. And some of the system-wide stats are even worse.
Re:Where Linux's load average comes from in the kernel by geocrasher on Monday April 18, 2022 @04:35PM (#31076136)
Yes, atop is great for this! There's also "sar" (system activity report) which can do similar things. Both are quite helpful.
Re:Where Linux's load average comes from in the kernel by winrid on Tuesday April 19, 2022 @01:13AM (#31079931)
Be careful running atop with the -R flag on machines that create lots of short lived threads or do lots of IO, like many databases.