view multi-core or mlti-cpu utlization on linux

后端 未结 5 1733
耶瑟儿~
耶瑟儿~ 2021-01-31 02:35

I have a program running on Linux and I need to determine how it is utilizing all the CPUs/cores. Is there any program for viewing this information?

5条回答
  •  忘了有多久
    2021-01-31 03:23

    mpstat -P ALL 5 5 >>your.file

    You may need to parse this to use it for a presentation, or sum it But read the man page as mpstat has some useful options.

提交回复
热议问题