0

How can i achieve my CPU load average as high?

Hi, currently i am working on a load balancing concept for my servers, there i need to test high performance for my servers, so is it possible to produce fake CPU load average on linux server, is there any extra package or tools need to be installed?

CPU Usage Load average Add a comment
hobbs
asked Dec 28 2017

Answer

0

Yes it is possible to test fake load average on linux servers, we sugguest you two ways to increase your CPU load average. One you can simply use below command to produce load.

cat /dev/zero > /dev/null

this command will utilizes 1 core

you can also install a package called stress, which can also produce fake load average. The package can be installed using yum (for redhat based) or apt-get (for debian based) command, it's depends on your linux distribution. After installing the package you can use below command to achieve high load average

stress --cpu 1 ( 1 is no of cores in your cpu )

Add a comment
parthiban
asked Dec 28 2017
edited Oct 05 2018
Post your Answer
0

When i run yum install stress command it's shows error No package stress available. How do i install the package? am i missing anything?

Add a comment
hobbs
asked Dec 29 2017
edited Oct 05 2018
Post your Answer
0

Install epel repository and then try to install stress package.

yum install epel-release -y
Add a comment
parthiban
asked Dec 30 2017
edited Oct 05 2018
Post your Answer