Benchmarking: Stress (Not quite benchmarking, but a good stress test!)

From Define Wiki
Jump to navigation Jump to search

Stress Utility

URL : http://weather.ou.edu/~apw/projects/stress/ Summary : A tool to put given subsystems under a specified load Description : stress is not a benchmark, but is rather a tool designed to put given subsytems under a specified load. Instances in which this is useful include those in which a system administrator wishes to perform tuning activities, a kernel or libc programmer wishes to evaluate denial of service possibilities, etc.

Installation

  • Make sure EPEL is setup as a repo
  wget http://ftp.heanet.ie/pub/fedora/epel/6/i386/epel-release-6-8.noarch.rpm
  rpm -ivh epel-release-6-8.noarch.rpm
  • Then use yum to install
  yum install stress

Running Stress

  • Combine the following as you see fit
    • For CPU intensive workload --cpu N
    • For Memory intensive workload --vm 2 --vm-bytes 128M
    • For Disk/IO intensive workload --io N
    • Make sure to set a timeout value too --timeout [seconds] (can add s, m or h for seconds minutes or hours)