CentOS displays the CPU on which each process is running.

Source: Internet
Author: User
Tags gluster
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


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.