tech:test_perf_io_disque
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| tech:test_perf_io_disque [2025/03/24 15:06] – créée - modification externe 127.0.0.1 | tech:test_perf_io_disque [2025/03/28 13:44] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | {{tag> | + | < |
| + | {{tag> | ||
| - | = Test de perf IO disque | + | # Test de perf IO disque |
| Ligne 20: | Ligne 21: | ||
| * iozone3 | * iozone3 | ||
| - | < | + | ~~~bash |
| stress-ng --all 0 --maximize --aggressive | stress-ng --all 0 --maximize --aggressive | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| iostat -hx 5 | iostat -hx 5 | ||
| iostat -xmt 1 | iostat -xmt 1 | ||
| - | </ | + | ~~~ |
| Linux : tester les performances I/O | Linux : tester les performances I/O | ||
| - | < | + | ~~~bash |
| hdparm -t -T /dev/sda | hdparm -t -T /dev/sda | ||
| - | dd bs=1M count=512 if=/ | + | dd bs=8192 count=$((4096 * 128)) if=/ |
| bonnie++ -d /mnt -r 8000 -u toto | bonnie++ -d /mnt -r 8000 -u toto | ||
| - | </ | + | ~~~ |
| ---------- | ---------- | ||
| - | < | + | ~~~bash |
| - | #time dd if=/ | + | #time -p dd if=/ |
| - | time dd if=/ | + | #time -p dd if=/ |
| - | </code> | + | time -p dd if=/dev/zero of=/ |
| + | ~~~ | ||
| - | <code -> | ||
| - | 1+0 records in | ||
| - | 1+0 records out | ||
| - | 524288000 bytes (524 MB) copied, 361.24 s, 1.5 MB/s | ||
| - | real 6m1.452s | ||
| - | user 0m0.000s | ||
| - | sys | ||
| - | </ | ||
| - | On my laptop : | + | ~~~bash |
| - | + | ||
| - | <code -> | + | |
| - | real 0m13.662s | + | |
| - | user 0m0.000s | + | |
| - | sys | + | |
| - | </ | + | |
| - | + | ||
| - | < | + | |
| sudo apt-get install sysbench | sudo apt-get install sysbench | ||
| # --file-test-mode=STRING | # --file-test-mode=STRING | ||
| Ligne 71: | Ligne 57: | ||
| sysbench --test=fileio --file-total-size=4G --file-test-mode=rndwr --max-time=5 run | sysbench --test=fileio --file-total-size=4G --file-test-mode=rndwr --max-time=5 run | ||
| sysbench --test=fileio --file-total-size=4G cleanup | sysbench --test=fileio --file-total-size=4G cleanup | ||
| - | </ | + | ~~~ |
| - | === Disk Read-Ahead | + | ### Disk Read-Ahead |
| - | < | + | ~~~bash |
| blockdev --report | blockdev --report | ||
| blockdev --getra /dev/sda | blockdev --getra /dev/sda | ||
| blockdev --setra 256 /dev/sdc | blockdev --setra 256 /dev/sdc | ||
| cat / | cat / | ||
| - | </ | + | ~~~ |
| - | === fio | + | |
| + | ### fio | ||
| Source https:// | Source https:// | ||
| - | < | + | ~~~bash |
| apt-get install fio | apt-get install fio | ||
| - | </ | + | ~~~ |
| - | < | + | ~~~bash |
| cat > plop.fio << EOF | cat > plop.fio << EOF | ||
| Ligne 108: | Ligne 95: | ||
| fio plop.fio | fio plop.fio | ||
| - | </ | + | ~~~ |
| - | == Linux IO scheduler | + | ## Linux IO scheduler |
| - | <code -> | + | ~~~ |
| # cat / | # cat / | ||
| noop deadline [cfq] | noop deadline [cfq] | ||
| - | </ | + | ~~~ |
| - | <code bash / | + | '' |
| + | ~~~bash | ||
| # GRUB_CMDLINE_LINUX_DEFAULT=" | # GRUB_CMDLINE_LINUX_DEFAULT=" | ||
| GRUB_CMDLINE_LINUX_DEFAULT=" | GRUB_CMDLINE_LINUX_DEFAULT=" | ||
| - | </code> | + | ~~~ |
| + | |||
| + | |||
| + | |||
| + | ## IOWAIT | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
tech/test_perf_io_disque.1742825205.txt.gz · Dernière modification : de 127.0.0.1
