Red Hat (RHEL), CentOS, Fedora Linux Install stress tool to test load

Fig.01: Installing stress on a RHEL/CentOS/Fedora Linux

Fig.01: Installing stress on a RHEL/CentOS/Fedora Linux

stress command designed to put given subsytems (such as CPU, RAM, VM etc) under a specified load. To install type the following command as the root user:

yum install epel-release
yum install stress

Sample outputs:

Loaded plugins: auto-update-debuginfo, protectbase, rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Install Process
0 packages excluded due to repository protections
Resolving Dependencies
--> Running transaction check
---> Package stress.x86_64 0:1.0.4-4.el6 will be installed
--> Finished Dependency Resolution
 
Dependencies Resolved
 
======================================================================================================================
 Package                    Arch                       Version                         Repository                Size
======================================================================================================================
Installing:
 stress                     x86_64                     1.0.4-4.el6                     epel                      36 k
 
Transaction Summary
======================================================================================================================
Install       1 Package(s)
 
Total download size: 36 k
Installed size: 89 k
Is this ok [y/N]: y
Downloading Packages:
stress-1.0.4-4.el6.x86_64.rpm                                                                  |  36 kB     00:00     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : stress-1.0.4-4.el6.x86_64                                                                          1/1 
  Verifying  : stress-1.0.4-4.el6.x86_64                                                                          1/1 
 
Installed:
  stress.x86_64 0:1.0.4-4.el6                                                                                         
 
Complete!

Examples and usage: How To Stress Test CPU and Memory (VM) On a Linux and Unix With Stress-ng

1 comment

  1. [root@stack ~]# yum install stress
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirror.lug.udel.edu
    * centosplus: mirror.symnds.com
    * epel: mirror.symnds.com
    * extras: http://www.gtlib.gatech.edu
    * updates: mirror.atlanticmetro.net
    No package stress available.
    Error: Nothing to do
    [root@stack ~]# cat /etc/redhat-release
    CentOS Linux release 7.1.1503 (Core)

    Have a question? Post it on our forum!