After running top, press 1 to view the busy status of each CPU and IOWAIT. However, I want to see which process is executed on which CPU, and which process causes high IOWAIT. Take a closer look at mantop and finally find the method: after top is executed, press f, Press j, and then press space to exit. in this way, a column # C appears, you can see which CPU the current process is running. Press W (W in upper case) to write the top configuration to the configuration file. next time you press top to run the top command, press 1 to view the busy status of each CPU and IOWAIT.
However, I want to see which process is executed on which CPU, and which process causes high IOWAIT.
Check man top carefully and finally find the method:
After the top command is executed, press f, j, and then exit by space. a column # C is displayed, showing the CPU on which the current process is running.
Press W (W in upper case) to write the top configuration to the configuration file. the same configuration will be visible next time you open top.
Ps
To view the cpu on which the process is currently running, run the following command: ps-eo pid, args, and SRS.
[Gluster @ platform3 local] $ ps-eo pid, args, psr
PID COMMAND PSR
1 init [3] 0
...
7546 ssh-agent-s 3
8253 sshd: gluster [p 2
8255 sshd: gluster @ pt 2
8256-bash 0
8285/home/gluster/lo 1
8334 ps-eo pid, args, 1
8403/home/gluster/lo 2