Skip to content

Instantly share code, notes, and snippets.

@kanyck
Created January 23, 2021 10:43
Show Gist options
  • Select an option

  • Save kanyck/7f66fa3141c63c9924635d7bbb150e51 to your computer and use it in GitHub Desktop.

Select an option

Save kanyck/7f66fa3141c63c9924635d7bbb150e51 to your computer and use it in GitHub Desktop.
Test disk read throughput with different schedulers
#!/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