Stress testing Linux based server for benchmarking

Stress testing a new server to benchmark it is always an important part for using server.

There are lot of ways to do stress test on a server, we can do on each module (Processor, I/O and Memory) individually.

But doing stress test by combining all modules is an important part.

While exploring about doing stress test on Processor, I/O and memory at a time I got to know about a tool called stress.

stress is a deliberately simple workload generator for POSIX systems. It imposes a configurable amount of CPU, memory, I/O, and disk stress on the system. It is written in C, and is free software licensed under the GPLv2.

Download this tool from here, uncompress it, then enter into the uncompressed directory and install it with following commands:

$ ./configure
$ make
$ make install

After installing run folloing command to test all your CPU’s

$ stress -c 20

Above command will  do stress test on CPU’s with 20 threads.

stress command will run complex sqrt computation on randomly generated numbers.

Base on the requirement we can write log of lot of commands with stress, here is one useful link which listed some stress commands with detailed explanation.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s