Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 818  / 2 Years ago, tue, august 23, 2022, 1:55:50

Im currently usig ubuntu as a server, and i use gnome-system-monitor to track (visually) how much cpu load is being consumed, however, I only see the last 60 seconds of usage.



Is there a way to set the gnome-system-monitor to remember the last 300 seconds (or some other value)?



Thanks,


More From » server

 Answers
2

The program sar or atsar also might be helpful. You can start them in a terminal or shell. The option -u shows information about CPU. The last the options are the time between updates and the number of data points you'd like to have.



atsar -u 15 9999999
21:06:20 cpu %usr %sys %nice %idle _cpu_
21:06:35 all 5 2 0 93
21:06:48 all 48 4 0 49
21:07:03 all 59 3 0 37
21:07:18 all 65 4 0 31
21:07:33 all 53 4 0 42
21:07:48 all 8 2 0 90
21:08:03 all 5 1 0 94


Depending on your font size and the size of your terminal you'll see the last 300 seconds (20 measurements) of your CPU life.


[#39728] Wednesday, August 24, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
confiorc

Total Points: 42
Total Questions: 121
Total Answers: 123

Location: India
Member since Wed, Aug 26, 2020
4 Years ago
;