How to log CPU usage over a period of time on Linux.

Logging CPU usage over a certain period of time is very easy. The command below will print 24 lines of CPU statistics, printing a line every 4 seconds. ┌──[[email protected]]─[~] └──╼ ╼ $ sar -u 4 24 –human Linux 5.8.0-41-generic (jason-desktop) 12/04/21 _x86_64_ (4 CPU)   09:05:33 CPU %user %nice %system %iowait %steal %idle 09:05:37 all … Read more