Wednesday, June 22, 2016

top output on all cpu cores

wanna check 'top' command on all cpu cores?

first type
#top

then press '1' over top output

=================================

Also, wanna check which specific CPU core a specific process is running?

check this out:

# ps o pid,psr,comm `pidof gvim`
  PID PSR COMMAND
12063   7 gvim


so, 'gvim' command is running on cpu core '7'.
----------------------------------------------------------------------------------

want to check every process and the core in which it is running?

# ps -eo psr,comm,pid