Is there some way to monitor my CPU usage over a period of time, e.g. get a graph that shows CPU% vs. date/time? I occasionally see high load using htop, but I'd like to see what's happening throughout the day.
The more lightweight, the better :)
Is there some way to monitor my CPU usage over a period of time, e.g. get a graph that shows CPU% vs. date/time? I occasionally see high load using htop, but I'd like to see what's happening throughout the day.
The more lightweight, the better :)
There's nmon for Linux which is in Ubuntu build. You can run nmon
in 'spreadsheet' mode where it samples data every few minutes and saves it to a file. There are various tools for then graphing that, or you can just review the data manually.
More complex options include things like munin, cacti, etc. but they look at just more than straight CPU.
The command sar
is intended to do this and should be available by default under Ubuntu as the sysstat
package.
It's output is plain-text rather than graphical, but kSar
is intended to take this data and make it pretty for you. This may need to be built or found in an unsupported repository. (I don't know.)
nixCraft did a great write up on the tool you may want to refer to for more information.