Linux validation work in SMP environment

Source: Internet
Author: User
During a troubleshooting process in the SMP environment, you need to check whether the system is already working in the SMP environment and check the load of each cpu. The following describes the methods. Www.2cto.com 1: Check that SMP (Symm...
During a troubleshooting operation in the SMP environment, you need to check whether the system is already working in the SMP environment and check the load of each cpu. The following describes the methods. Www.2cto.com
First, confirm that the redhat 5.8 is enabled for the SMP (Symmetric Multi-Processing structure) service. [Root @ cepsvr1 ~] # Uname-a Linux cepsvr1 2.6.18-308. el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 "SMP" in the GNU/Linux kernel flag, which indicates support for SMP 2: Check whether the irqbalance service is enabled: this service distributes hardware interruptions evenly among multiple CPUs, helping the SMP system balance the CPU load.
[Root @ cepsvr1 ~] # Service irqbalance status irqbalance (pid 30948) is running... through cat/proc/interrupts, you can see the distribution of hardware interruption information on each cpu. third, you can view the cpu where the java process (pid = 4539) runs: [root @ cepsvr1 ~] # Taskset-p 4539 pid 4539's current affinity mask: f [root @ cepsvr1 ~] #
Note: the Cpu ID number, corresponding to the hexadecimal number: Zero-based cpu id: 7 6 5 4 3 2 1 0 Decimal Value: 128 64 32 16 8 4 2 1 the cpu ID in our system is (4539,), pid's current affinity mask: the sum (1 + 2 + 4 + 8 = f) of the hexadecimal value of the cpu ID (pid = 4539) the java process works on four CPUs, namely, 0, 1, 2, and 3, respectively. 4. run the top command to view the usage of each cpu: 1. top-d 1 2.1 shows the usage of each CPU. 3. type an I in upper case. The Irix mode of top is disabled because it works in Solaris mode. in the real SMP environment, the cpu usage in this mode is divided by the number of CPUs. SOURCE http://yangyoupeng-cn-fujitsu-com.iteye.com/blog/1722514
 
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.