1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

Multi-Queue Block Layer Is Merged For Linux 3.13

Linux Kernel

Published on 14 November 2013 09:53 AM EST
Written by Michael Larabel in Linux Kernel
2 Comments

The multi-queue block layer (blk-mq) has indeed made it for Linux 3.13 as one (of many other) exciting features. The multi-queue block layer can lead to better SSD performance through reducing latency by balancing I/O workload across multiple CPU cores and allowing for multiple hardware queues.

Since earlier this month we were expecting Linux 3.13 To Receive Multi-Queue Block Layer. The block layer pull request was submitted with this support and it didn't receive any objections from Linus Torvalds or any other kernel developers, so it's now in.

While this is a big win, not all drivers have been converted yet to the new interface but more work will happen for Linux 3.14. More details can be found via the Git pull message for this blk-mq support.
This is a new and more scalable queueing model that marries the best part of the request based interface we currently have (which is fully featured, but scales poorly) and the bio based "interface" which the new drivers for high IOPS devices end up using because it's much faster than the request based one.

The bio interface has no block layer support, since it taps into the stack much earlier. This means that drivers end up having to implement a lot of functionality on their own, like tagging, timeout handling, requeue, etc. The blk-mq interface provides all these. Some drivers even provide a switch to select bio or rq and has code to handle both, since things like merging only works in the rq model and hence is faster for some workloads. This is a huge mess. Conversion of these drivers nets us a substantial code reduction. Initial results on converting SCSI to this model even shows an 8x improvement on single queue devices. So while the model was intended to work on the newer multiqueue devices, it has substantial improvements for "classic" hardware as well. This code has gone through extensive testing and development, it's now ready to go. A pull request is coming to convert virtio-blk to this model will be will be coming as well, with more drivers scheduled for 3.14 conversion.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Articles & Reviews
  1. Intel Broadwell HD Graphics 5500: Windows 8.1 vs. Linux
  2. Linux Benchmarks Of NVIDIA's Early 2015 GeForce Line-Up
  3. NVIDIA GeForce GTX 960: A Great $200 GPU For Linux Gamers
  4. Disk Encryption Tests On Fedora 21
  5. Xonotic 0.8 Performance With The Open-Source AMD/NVIDIA Gallium3D Drivers
  6. Many Linux Desktop 2D Benchmarks Of NVIDIA vs. AMD Drivers
Latest Linux News
  1. How To Use GCC 5's OpenMP & OpenACC Offloading Support
  2. Linux Users Upset By Chromium's Busted HiDPI Support
  3. BPF Backend Merged Into LLVM To Make Use Of New Kernel Functionality
  4. Dying Light Is Headed To Linux, SteamOS
  5. Wayland 1.6.1 & Weston 1.6.1 Released
  6. Mesa 10.4.3 Brings A Bunch Of Fixes For The Direct3D "Nine" Support
  7. Intel Has A Few More Graphics Changes For The Linux 3.20 Kernel
  8. Gummiboot Gains PE File Searching Support To Find Linux Kernels
  9. Wine 1.7.35 Starts Working On OpenGL Core Context Support
  10. X.Org Server 1.17 Pre-Release "TimTam" Is Out
Most Viewed News This Week
  1. Windows 10 To Be A Free Upgrade: What Linux Users Need To Know
  2. CoreOS Moves From Btrfs To EXT4 + OverlayFS
  3. Google Admin Encourages Trying Btrfs, Not ZFS On Linux
  4. TraceFS: The Newest Linux File-System
  5. Mozilla's Servo Still On Track For 2015 Alpha Release
  6. Fedora 23 Likely To Pursue Wayland By Default
  7. My Initial Intel Broadwell Linux Experience With The ThinkPad X1 Carbon
  8. Keith Packard Leaves Intel's Linux Graphics Work