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.
More on Performance & the USE Method
What is the USE method?BeginnerMap the USE method to concrete Linux commands.IntermediateWhat is your "first 60 seconds" checklist on a slow server?IntermediateHow do you read vmstat output?IntermediateHow do you read `iostat -xz 1`?IntermediateWhat is sar and why install sysstat on every server?Beginner