view multi-core or mlti-cpu utlization on linux

后端 未结 5 1549
耶瑟儿~
耶瑟儿~ 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:14

    Run the 'top' command and press '1' to see the individual core is the best way to see the cpu cores usage .. another option is run cmd- cat /proc/stat to see the cpu cores usage

    0 讨论(0)
  • 2021-01-31 03:16

    Run the 'top' command and press '1' to see the individual cores.

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-31 03:27

    htop shows you the cpu usage of each core in a graphical manner (ncurses).

    0 讨论(0)
  • 2021-01-31 03:34

    When runnging the top command, press f then j to display the P column (last CPU used by process), in addition to the 1 command in top, you should view some multi core occupation informations :)

    0 讨论(0)
提交回复
热议问题