tech:test_perf_io_disque
Ceci est une ancienne révision du document !
Table des matières
Test de perf IO disque
Voir :
Voir :
- atop
- stress-ng
- iozone3
stress-ng --all 0 --maximize --aggressive
iostat -hx 5 iostat -xmt 1
Linux : tester les performances I/O
hdparm -t -T /dev/sda dd bs=1M count=512 if=/dev/zero of=test conv=fdatasync bonnie++ -d /mnt -r 8000 -u toto
#time dd if=/dev/zero of=/tmp/test1.img bs=1M count=500 oflag=dsync time dd if=/dev/zero of=/tmp/test1.img bs=500M count=1 oflag=dsync
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 0m3.536s
On my laptop :
real 0m13.662s user 0m0.000s sys 0m1.936s
sudo apt-get install sysbench # --file-test-mode=STRING test mode {seqwr, seqrewr, seqrd, rndrd, rndwr, rndrw} sysbench --test=fileio --file-test-mode=seqwr run sysbench --test=fileio --file-total-size=4G prepare sysbench --test=fileio --file-total-size=4G --file-test-mode=rndrd --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
Disk Read-Ahead
blockdev --report blockdev --getra /dev/sda blockdev --setra 256 /dev/sdc cat /sys/block/sda/queue/read_ahead_kb
fio
Source https://www.geekarea.fr/wordpress/?p=769
apt-get install fio
cat > plop.fio << EOF [global] bs=64k direct=1 rw=randrw ioengine=libaio iodepth=2 zonesize=256m zoneskip=2g write_bw_log=str [/dev/vdb] EOF fio plop.fio
Linux IO scheduler
# cat /sys/block/sda/queue/scheduler noop deadline [cfq]
- /etc/default/grub
# GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" GRUB_CMDLINE_LINUX_DEFAULT="quiet splash elevator=noop"
IOWAIT
tech/test_perf_io_disque.1743086227.txt.gz · Dernière modification : de Jean-Baptiste
