LWN: Comments on "Two new block I/O schedulers for 4.12" https://lwn.net/Articles/720675/ This is a special feed containing comments posted to the individual LWN article titled "Two new block I/O schedulers for 4.12". en-us Mon, 15 Sep 2025 14:43:10 +0000 Mon, 15 Sep 2025 14:43:10 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Two new block I/O schedulers for 4.12 https://lwn.net/Articles/916981/ https://lwn.net/Articles/916981/ leodag <div class="FormattedComment"> You can also find these devices listed under /sys/class/block with their more familiar names:<br> <p> $ ls -l /sys/class/block<br> total 0<br> lrwxrwxrwx 1 root root 0 dez 5 11:22 dm-0 -&gt; ../../devices/virtual/block/dm-0/<br> lrwxrwxrwx 1 root root 0 dez 5 11:22 nvme0n1 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:02:00.0/nvme/nvme0/nvme0n1/<br> lrwxrwxrwx 1 root root 0 dez 5 11:22 nvme0n1p1 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:02:00.0/nvme/nvme0/nvme0n1/nvme0n1p1/<br> lrwxrwxrwx 1 root root 0 dez 5 11:22 nvme0n1p2 -&gt; ../../devices/pci0000:00/0000:00:01.2/0000:02:00.0/nvme/nvme0/nvme0n1/nvme0n1p2/<br> </div> Mon, 05 Dec 2022 14:30:40 +0000 Two new block I/O schedulers for 4.12 https://lwn.net/Articles/722411/ https://lwn.net/Articles/722411/ dtlin For reference, there is documentation at <a href="https://www.kernel.org/doc/Documentation/block/switching-sched.txt">/usr/src/linux/Documentation/block/switching-sched.txt</a>. Thu, 11 May 2017 06:37:30 +0000 Two new block I/O schedulers for 4.12 https://lwn.net/Articles/722394/ https://lwn.net/Articles/722394/ micka <div class="FormattedComment"> Thank you, this seems sensible. I could not find any hint about that in the article.<br> </div> Wed, 10 May 2017 21:58:11 +0000 Two new block I/O schedulers for 4.12 https://lwn.net/Articles/722125/ https://lwn.net/Articles/722125/ zdzichu <div class="FormattedComment"> Linux supports pluggable, per-device I/O schedulers; you can change them with `cat`:<br> <p> $ find /sys -name scheduler -exec grep . {} +<br> /sys/devices/pci0000:00/0000:00:0b.0/ata1/host0/target0:0:0/0:0:0:0/block/sda/queue/scheduler: noop [deadline] cfq <br> /sys/devices/pci0000:00/0000:00:09.0/virtio3/host8/target8:0:0/8:0:0:2/block/sdc/queue/scheduler: noop deadline [cfq] <br> /sys/devices/pci0000:00/0000:00:0c.0/virtio5/block/vda/queue/scheduler: mq-deadline kyber [bfq] none<br> <p> </div> Mon, 08 May 2017 10:32:40 +0000 Two new block I/O schedulers for 4.12 https://lwn.net/Articles/722120/ https://lwn.net/Articles/722120/ micka <div class="FormattedComment"> Do I understand correctly that you have only one such scheduler at any time? So if you have both slow and fast devices on a system, which one do you use?<br> </div> Mon, 08 May 2017 09:01:27 +0000 difference between deadline & kyber https://lwn.net/Articles/721360/ https://lwn.net/Articles/721360/ dud225 <div class="FormattedComment"> This new scheduler seems to have similarities with deadline. As far as I understand kyber is able to dynamically adapt the size of the queues to serve requests at low latencies whereas deadline will be doing as much as it can.<br> Is that correct ? Are there other differences ?<br> </div> Sat, 29 Apr 2017 03:58:53 +0000 Interaction with btrfs https://lwn.net/Articles/720972/ https://lwn.net/Articles/720972/ masoncl <div class="FormattedComment"> It should work pretty well, but we'll definitely look into any latency problems. For the most part we're able to tag latency sensitive IOs and get good results from the schedulers. On the btrfs side, we try to make sure the btrfs IO threads aren't creating priority inversions of their own.<br> </div> Wed, 26 Apr 2017 13:00:26 +0000 Interaction with btrfs https://lwn.net/Articles/720850/ https://lwn.net/Articles/720850/ DG <div class="FormattedComment"> Unscientific observation : It works well.<br> <p> I used to see spikes in latency from BTRFS on an internal backup server as it performed rsync --inplace based backups and deleted old snapshots ... which were bad enough to make me try BFQ.<br> <p> Random details: vanilla 4.9.x kernel + BFQ. Two WD 3TiB Red disks in a BTRFS raid 1 filesystem. 4 core i5 processor with 32gb of RAM. FS contains 150 readonly snapshots. Currently using about 1.79TiB.<br> </div> Tue, 25 Apr 2017 13:15:31 +0000 Interaction with btrfs https://lwn.net/Articles/720830/ https://lwn.net/Articles/720830/ zdzichu <div class="FormattedComment"> I wonder how those schedulers are going to interact with btrfs? Those schedulers try to ensure fairness between *processes*. But in my observations, when using btrfs most work seem to be dispatched from kworker, btrfs-worker, btrfs-cleaner, btrfs-transaction and other btrfs-* kernel threads, not from original processes.<br> This btrfs behaviour makes observing I/O traffic troublesome already. I fear it will wreak havoc with fairness.<br> </div> Tue, 25 Apr 2017 09:41:22 +0000 Two new block I/O schedulers for 4.12 https://lwn.net/Articles/720814/ https://lwn.net/Articles/720814/ liam <div class="FormattedComment"> <a href="http://marc.info/?l=linux-block&amp;m=148978871820916&amp;w=2">http://marc.info/?l=linux-block&amp;m=148978871820916&amp;...</a><br> <p> <p> Latency falls from 8ms to 1ms (the target set by kyber).<br> <p> <p> </div> Tue, 25 Apr 2017 00:38:18 +0000 Two new block I/O schedulers for 4.12 https://lwn.net/Articles/720803/ https://lwn.net/Articles/720803/ jhoblitt <div class="FormattedComment"> Are there benchmarks for kyber? A quick search didn't turn up anything relevant.<br> </div> Mon, 24 Apr 2017 19:49:17 +0000