Interview Prep/Linux/Performance & the USE Method

What are disk I/O schedulers and which should you use?

AdvancedProductionPerformance & the USE Method
Answer

With blk-mq, the options are none, mq-deadline, bfq and kyber.

cat /sys/block/nvme0n1/queue/scheduler     # [none] mq-deadline
echo mq-deadline | sudo tee /sys/block/sda/queue/scheduler

NVMe and cloud virtual disks usually perform best with none (the device does its own scheduling). mq-deadline is a good default for SATA SSDs and HDDs. bfq targets interactive desktops. Persist with a udev rule.

All Linux questions Roadmap: Linux

More on Performance & the USE Method