summaryrefslogtreecommitdiff
path: root/00_blog/00015_Admin/00020_Benchmarking-and-Stress-testing/index.md
blob: facfc1729b385ac65cbdfeecdb6bdab17bd9ab76 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Benchmarking

    May 12, 2017

## Tools for Stress Testing your RIG

    Some nice tools to stress-test your computer:

    CPU: Prime95
    GPU: FurMark
    RAM: MemTest86+
    HDD/SSD: S.M.A.R.T

    Ref: http://www.pcworld.com/article/2028882/keep-it-stable-stupid-how-to-stress-test-your-pc-hardware.html

## Networking

    1. Connected my [laptop] and [desktop] via 5meter cat5e cable -> 1000mbit full duplex link
    2. created ~1.5G ramdisks with tmpfs on each.
    3. created a 1 giga file with data from /dev/urandom on [desktop]
    4. copied file with scp from [desktop] to [laptop]
    5. copied file with scp from [laptop] to [desktop]
    6. repeated 4 & 5 10 times : average speed ~70+MB/s from desk & 80+MB/s to desk, link stays up all the time. ping around 0.2-0.3ms
    7. repeated 1-6 with my other 3meter ethernet cable.
    8. tried both direction simultanously which gave a total data throughput even over 100MB/s

## Hard Disk

To get some information about the disk run:

Request identification info directly from the drive, which is displayed in a new expanded format with considerably more detail than with the older -i option.

    $ hdparm -I /dev/sda

Timings

    $ hdparm -tT /dev/sda

Clear Cache

    $ echo 3 > /proc/sys/vm/drop_caches 

I am using this block-size and count which results in ~2GB:

    $ dd [...] bs=1048576 count=2048

READ:

    $ dd if=test of=/dev/null
    $ dd if=/dev/sdX of=/dev/null

WRTIE:

    $ dd if=/dev/zero of=test
    $ dd if=/dev/zero of=/dev/sdX

smartmontools:

    seatage: 
    Raw_Read_Error_Rate
    Seek_Error_Rate  

    example:
    % python
    >>> 200009354607 & 0xFFFFFFFF
    2440858991 <---- total number
    >>> (200009354607 & 0xFFFF00000000) >> 32
    46 <--- number of errors