Enable irqbalance to improve server performance

There was a problem in the company's stress test: the CPU resources could not be pressed up, and the performance bottleneck had been reached at 40% . After locating the cause, the interrupts generated by the server during the stress test were processed on CPU0 . Interrupts are not balanced across CPUs , causing a single CPU to become overloaded and form a bottleneck. (This machine is the new physical machine)

The solution is to enable the irqbalance service ( command: service irqbalance start) , so that the hardware interrupts are distributed among multiple CPUs to solve the problem of single CPU overload.

 

The main function of IRQBalance is that it can reasonably allocate and use each CPU core, especially for the current mainstream multi-core CPU, in short, it can evenly distribute the pressure to each CPU core, which is of great help to improve performance.

Enabling the irqbalance service can improve performance and reduce power consumption. irqbalance is used to optimize interrupt distribution. It automatically collects system data to analyze usage patterns and places work in Performance mode or Power-save mode depending on system load.

When in Performance mode, irqbalance will distribute interrupts to each CPU core as evenly as possible to make full use of CPU multi-core and improve performance.

When in Power-save mode, irqbalance will centrally assign interrupts to the first CPU to ensure the sleep time of other idle CPUs and reduce energy consumption.

Start the IRQBalance service:

service irqbalance start

Close the IRQBalance service:

service irqbalance stop

Turn off the startup IRQBalance service:

chkconfig --level 123456 irqbalance off

 

 

Also check the /proc/interrupts file to see the interrupts of each cpu

Direct top command can also view the cpu interrupt situation

 

Reference: http://www.aikaiyuan.com/7109.html

 Interruption: http://blog.csdn.net/joeyon1985/article/details/39127087

 top command: http://www.cnblogs.com/peida/archive/2012/12/24/2831353.html

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326800741&siteId=291194637