as all know we can get cpu load average as:

 10:09:22 up 2 days,  1:44,  1 user,  load average: 20.01, 20.03, 22.05

but this show only

load average over the last 1 minute is 22.05
load average over the last 5 minute is 20.03
load average over the last 15 minute is 20.01

but we want list of load average for last 6 hours

any command that can show this?

  • This is unlikely, although you could likely set up an red database with a cronjob if you are desperate enough. – davidgo Sep 10 '19 at 10:54
  • what we want is the CPU load average on each couple second in history of couple hours – King David Sep 10 '19 at 11:04
  • logging that will significally INCREASE CPU load... – BladeMight Sep 10 '19 at 11:16

I think what you are looking for are the sysstat tools, they do logging and the with the sar tool you can query the logs for things like the cpu load during a specific time frame. https://github.com/sysstat/sysstat

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.