Benchmark Your System (CPU, HDD, RAM) with sysbench/hdparm

At first install sysbench :

apt-get install sysbench hdparm

 

CPU

for CPU bench run :

sysbench --test=cpu --num-threads=8 --cpu-max-prime=20000 run

Result:

Maximum prime number checked in CPU test: 20000


Test execution summary:
    total time:                          3.5538s
    total number of events:              10000
    total time taken by event execution: 28.3796
    per-request statistics:
         min:                                  2.30ms
         avg:                                  2.84ms
         max:                                 31.04ms
         approx.  95 percentile:               3.40ms

Threads fairness:
    events (avg/stddev):           1250.0000/60.13
    execution time (avg/stddev):   3.5474/0.01

 

HDD-Test1

prepare:

sysbench --test=fileio --file-total-size=1G prepare

then test:

sysbench --test=fileio --file-total-size=1G --file-test-mode=rndrw --init-rng=on --max-time=300 --max-requests=0 run

Result:

Operations performed:  40920 Read, 27280 Write, 87270 Other = 155470 Total
Read 639.38Mb  Written 426.25Mb  Total transferred 1.0406Gb  (3.552Mb/sec)
  227.33 Requests/sec executed

Test execution summary:
    total time:                          300.0036s
    total number of events:              68200
    total time taken by event execution: 1.0510
    per-request statistics:
         min:                                  0.00ms
         avg:                                  0.02ms
         max:                                  0.15ms
         approx.  95 percentile:               0.03ms

Threads fairness:
    events (avg/stddev):           68200.0000/0.00
    execution time (avg/stddev):   1.0510/0.00

clean up:

sysbench --test=fileio --file-total-size=1G cleanup

 

HDD-Test2

hdparm -Tt /dev/sda

Result:

/dev/sda:
 Timing cached reads:   7784 MB in  1.99 seconds = 3903.24 MB/sec
 Timing buffered disk reads: 128 MB in  3.01 seconds =  42.54 MB/sec

 

RAM

sysbench --test=memory --memory-block-size=1M --memory-total-size=10G run

Result:

Operations performed: 10240 ( 6368.83 ops/sec)

10240.00 MB transferred (6368.83 MB/sec)


Test execution summary:
    total time:                          1.6078s
    total number of events:              10240
    total time taken by event execution: 1.6057
    per-request statistics:
         min:                                  0.15ms
         avg:                                  0.16ms
         max:                                  0.52ms
         approx.  95 percentile:               0.17ms

Threads fairness:
    events (avg/stddev):           10240.0000/0.00
    execution time (avg/stddev):   1.6057/0.00

3 thoughts on “Benchmark Your System (CPU, HDD, RAM) with sysbench/hdparm”

  1. Everything is very open with a clear clarification of the
    issues. It was definitely informative. Your website is extremely helpful.

    Thank you for sharing!

  2. Heya i am for the first time here. I found this board and I find It really useful & it helped me out a lot.
    I hope to give something back and aid others like you helped me.

  3. You will be so awesome! I don’t believe I have go through one particular
    thing similar to this before. So wonderful to find out somebody with original thoughts on this topic.
    Really.. many thanks for starting this up. This amazing site can be something that’s needed on the net, someone
    with a bit of originality!

Leave a Reply

Your email address will not be published.

thirteen + 10 =