How to benchmark Unix OS

I'm upgrading the hardware for my AIX server.

I wanted to get some benchmarks for the server before we went for the upgrade to compare before and after results.

Can anyone suggest any benchmarks for processing performance etc and how to run the same.
Who is Participating?
skullnobrainsConnect With a Mentor Commented:
you can use a web benchmark tool such as apachebench, httperf, or the apparently better curl-loader (never used the latter but it seems to have a crazy wealth of functionalities including benchmarking random URLs)

it is fairly easy to write your own tool as well even in a shell script. just make sure you actually benchmark the server and not the network bandwidth or the machine that runs the benchmarking tool

with this approach there is no need to run the tool locally


another nice approach would be to select a few cpu-intensive or io intensive java processes and just run for example 100 or them in parallel 100 times each

something like this should do
yes  | head -n 10000 | xargs -P 100 command_to_run
The most meaningful benchmark would be one that does the kinds of things you expect you be doing, and measures the kinds of parameters of most interest to you.

So, what kinds of tasks is your server performing now, and in what ways would you want to improve performance on those tasks?
gaugetaAuthor Commented:
@ozo: Thanks for the reply.

Currently its running a website and most of the background processing which involves C++,shell scripts and java code running.

Now I ant to get a benchmark value for the processing performance alone.

Can you suggest some benchmarks to measure the processing performance and I/O performance.
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

Dhrystone and Whetstone are some classic benchmarks of processor performance But how meaningful either would be for your situation may depend on what kinds of operations your your processor needs to perform when running your code.
A list of a few different I/O benchmarks can be found here:
There's loads of tools for benchmarking webserver performance.

The tool I've used in the past is called Seige
gaugetaAuthor Commented:
@ozo : Thanks for the reply.

I ran the Dhrystone benchmark but not getting any results.

                   INDEX VALUES
TEST                                                             BASELINE     RESULT      INDEX

Dhrystone 2 without register variables       22366.3        0.0            0.0
     SUM of  1 items                                                                           0.0
     AVERAGE                                                                                      0.0

An I'm getting the errors while the benchmar is running.

        gcc -o ./pgms/arithoh -DTIME -O         -Darithoh ./src/arith.c
./src/arith.c: In function 'report':
./src/arith.c:39: warning: incompatible implicit declaration of built-in function 'exit'
./src/arith.c: In function 'main':
./src/arith.c:51: warning: incompatible implicit declaration of built-in function 'exit'
/tmp//ccSglu5P.s: line 16: 1252-191 Only .llong should be used for relocatable expressions.
/tmp//ccSglu5P.s: line 41: 1252-191 Only .llong should be used for relocatable expressions.
/tmp//ccSglu5P.s: line 86: 1252-191 Only .llong should be used for relocatable expressions.
/tmp//ccSglu5P.s: line 125: 1252-191 Only .llong should be used for relocatable expressions.
/tmp//ccSglu5P.s: line 172: 1252-191 Only .llong should be used for relocatable expressions.
make: 1254-004 The error code from the last command is 1.

Open in new window

But its running on Linux but on AIX where I have gcc version 4.0.0 installed its returnng errors and the I/O benchmarks you suggested none of them compile, How can I fix the same. Please help...
madunixConnect With a Mentor Commented:
The following is a list of tools available on the internet for UNIX/Linux:

aio-stress ---- AIO benchmark tool
bandwidth ---- a memory bandwidth benchmark
bonnie ---- Filesystem benchmark tool
bonnie++ ---- Filesystem and disk benchmark & burn-in suite
dbench ---- Filesystem load benchmarking tool
dnsperf ---- Benchmarking authorative and recursing DNS servers
filebench ---- A model based file system workload generator
fio ---- I/O benchmark and stress/hardware verification tool
fs_mark ---- Benchmark synchronous/async file creation
httperf ---- Web server benchmark
interbench ---- Interactivity benchmark tool
ioblazer ---- Multi-platform storage stack micro-benchmark
iozone ---- filesystem benchmark tool
iperf ---- Tool for measuring TCP and UDP bandwidth performance
iperf3 ---- Measurement tool for TCP/UDP bandwidth performance
kcbench ---- Kernel compile benchmark
lmbench ----Suite of simple, portable benchmarks
netperf ---- Performance testing tool for TCP/UDP
netpipe ---- Protocol independent performance tool
nfsometer ---- NFS Performance Framework Tool
phoronix-test-suite ---- An Automated, Open-Source Testing Framework
seeker ---- Tool to measure disk performance (random access time)
siege ---- HTTP regression testing and benchmarking utility
spew ---- I/O performance measurement and load generation tool
stress ---- A tool to put given subsystems under a specified load
sysbench ---- System performance benchmark
tiobench ---- Threaded IO benchmarking utility
ttcp ---- tool to do memory to memory performance measurements with TCP/IP
unixbench ---- Byte's UNIX Benchmarks
wbox ---- Command line tool to test HTTP performance of Web servers and Web applications
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.