11. Évaluation des performances

La pertinence ou la validité des résultats obtenus avec la commande sysbench dépendent énormément du facteur temps. Une mesure valide suppose un temps d'exécution de quelques heures au moins. Les résultats donnés ici ne sont que des échantillons.

$ sudo apt install sysbench
Unité de disque locale

Système de fichiers ext4.

$ mkdir /var/tmp/benchmark

$ cd /var/tmp/benchmark/
$ sysbench fileio prepare
$ sysbench fileio --file-test-mode=rndrw run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Extra file open flags: (none)
128 files, 16MiB each
2GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...

Threads started!


File operations:
    reads/s:                      6062.94
    writes/s:                     4041.90
    fsyncs/s:                     12939.18

Throughput:
    read, MiB/s:                  94.73
    written, MiB/s:               63.15

General statistics:
    total time:                          10.0062s
    total number of events:              230569

Latency (ms):
         min:                                    0.00
         avg:                                    0.04
         max:                                  133.67
         95th percentile:                        0.15
         sum:                                 9943.24

Threads fairness:
    events (avg/stddev):           230569.0000/0.00
    execution time (avg/stddev):   9.9432/0.00
Volume logique LVM sur une unité de disque RAID1 avec un membre iSCSI

Système de fichiers ext4.

$ mkdir /mnt/lvol0/etu-files/benchmark

$ cd /mnt/lvol0/etu-files/benchmark
$ sysbench fileio prepare
$ sysbench fileio --file-test-mode=rndrw run
sysbench 1.0.20 (using system LuaJIT 2.1.0-beta3)

Running the test with following options:
Number of threads: 1
Initializing random number generator from current time


Extra file open flags: (none)
128 files, 16MiB each
2GiB total file size
Block size 16KiB
Number of IO requests: 0
Read/Write ratio for combined random IO test: 1.50
Periodic FSYNC enabled, calling fsync() each 100 requests.
Calling fsync() at the end of test, Enabled.
Using synchronous I/O mode
Doing random r/w test
Initializing worker threads...

Threads started!

File operations:
    reads/s:                      1309.93
    writes/s:                     873.29
    fsyncs/s:                     2799.10

Throughput:
    read, MiB/s:                  20.47
    written, MiB/s:               13.65

General statistics:
    total time:                          10.0295s
    total number of events:              49850

Latency (ms):
         min:                                    0.00
         avg:                                    0.20
         max:                                   31.26
         95th percentile:                        0.59
         sum:                                 9978.89

Threads fairness:
    events (avg/stddev):           49850.0000/0.00
    execution time (avg/stddev):   9.9789/0.00