Skip to content

Instantly share code, notes, and snippets.

@eignatov
Created January 26, 2016 13:49
Show Gist options
  • Select an option

  • Save eignatov/2add8f1021e161ef9262 to your computer and use it in GitHub Desktop.

Select an option

Save eignatov/2add8f1021e161ef9262 to your computer and use it in GitHub Desktop.
Linux I/O Scheduler Test
#!/bin/sh
DISC="sda"; \
cat /sys/block/$DISC/queue/scheduler; \
for T in noop deadline cfq; do \
echo $T > /sys/block/$DISC/queue/scheduler; \
cat /sys/block/$DISC/queue/scheduler; \
sync && /sbin/hdparm -tT /dev/$DISC && echo "----"; \
sleep 15; \
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment