Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
6
rated 0 times [  6] [ 0]  / answers: 1 / hits: 1997  / 2 Years ago, tue, november 8, 2022, 2:22:03

uptime reports load averages over the last 1, 5, and 15 minutes.



How can I view the load average over the last 10 seconds?


More From » cpu-load

 Answers
3

That's impossible because the kernel doesn't compute it. (Well, you could patch the kernel of course...).



Remember that the load average is not a "regular average" of a set of numbers like you learned to compute in high school. Keeping around samples for 15 minutes and computing 3 averages over that array several times a second would require way too much memory & CPU power.



The "load average" (on linux) is an exponentially damped/weighted moving average, meaning it indicates a trend over time. See my answer to this related question for a couple of links to sites with more info.



If you know a bit of programming, it's actually easy to understand from the kernel sources too--that's how somebody teached me this. See page 2 of the link to the Linux Journal article for that.


[#44756] Tuesday, November 8, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
thellfi

Total Points: 222
Total Questions: 103
Total Answers: 123

Location: Palau
Member since Mon, Aug 16, 2021
3 Years ago
thellfi questions
;