Created
January 23, 2021 10:43
-
-
Save kanyck/7f66fa3141c63c9924635d7bbb150e51 to your computer and use it in GitHub Desktop.
Test disk read throughput with different schedulers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| sudo clear | |
| DISC="sdb"; \ | |
| cat /sys/block/$DISC/queue/scheduler; \ | |
| for T in mq-deadline kyber bfq; do \ | |
| echo $T | tee /sys/block/$DISC/queue/scheduler; \ | |
| cat /sys/block/$DISC/queue/scheduler; \ | |
| sync; \ | |
| echo 3 | tee /proc/sys/vm/drop_caches; \ | |
| /sbin/hdparm -tT /dev/$DISC;\ | |
| echo "----"; \ | |
| sleep 10; \ | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment