Score:0

Total CPU Utilisation % from SAR on Ubuntu

vu flag

When I run sar 1 1 to monitor CPU usage, I get the following output:

username@my-server:~$ sar 1 1
Linux 5.4.0-84-generic (my-server)  10/18/21    _x86_64_    (80 CPU)

19:50:45        CPU     %user     %nice   %system   %iowait    %steal     %idle
19:50:46        all      0.09      0.00      0.10      0.00      0.00     99.81
Average:        all      0.09      0.00      0.10      0.00      0.00     99.81

From this output, I want to get a headline "total CPU utilisation percentage" figure.

Is it as simple as 100 - %idle, or is 100 - %user - %system more accurate, or something else?

Egidijus avatar
nz flag
Do you mean, instead of user/system/idle you want a single value "this much cpu is used" ? if yes, then `100.00 - %idle = total used`
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.