Accurate calculation of CPU usage given in percentage in Linux?

后端 未结 5 1845
挽巷
挽巷 2020-11-29 16:23

It\'s a question which has been asked many times, however there is no well supported answer I could find.

Many people suggest the use of top command, but if you run

5条回答
  •  孤独总比滥情好
    2020-11-29 17:01

    idnt.net has a good description for how to use the /proc/stat cpu data, include a bash-script for extracting cpu and description of the lines. I just wanted to link it here, since I found it valuable.

提交回复
热议问题