I received a strange request today. Because the superiors wanted to check and said that the server CPU usage is too low, it will make the leaders feel that the system application range is not wide enough, so we need to increase the server CPU usage when the leader inspects.
It’s quite common to optimize memory and CPU usage. Suddenly, I need to make the CPU higher, so I have no experience. Now I try to run a few more services, but the service does take up part of the CPU when it starts. After it stabilizes, the occupancy is very low again.
So I searched the Internet for a method, and it really didn't match up.
With a flash of inspiration, let the computer continue to calculate, right? The best way to achieve this effect is to calculate the pi.
Immediately, find the command echo "scale=5000;4*a(1)" | bc -l -q, which means to calculate the 5000 digits behind the pi. If there is no bc command yum -y install bc, it will do. The bc command is an operation command.