Skip to main content
AI
  • Get started with AI

    • Red Hat AI

      Accelerate the development and deployment of enterprise AI solutions.

    • AI learning hub

      Explore learning materials and tools, organized by task.

    • AI interactive demos

      Click through scenarios with Red Hat AI, including training LLMs and more.

    • AI/ML learning paths

      Expand your Red Hat OpenShift AI knowledge using these learning resources.

    • AI quickstarts

      Focused AI use cases designed for fast deployment on Red Hat AI platforms.

    • No-cost AI training

      Foundational Red Hat AI training.

  • Featured resources

    • Red Hat OpenShift AI
    • Open source AI for developers
    • AI product application development
    • Open source-powered AI/ML for hybrid cloud
    • AI and Node.js cheat sheet

Red Hat AI Factory with NVIDIA

Red Hat AI Factory with NVIDIA is a co-engineered, enterprise-grade AI solution for building, deploying, and managing AI at scale across hybrid cloud environments.

Learn
  • Self-guided

    • Documentation

      Find answers, get step-by-step guidance, and learn how to use Red Hat products.

    • Learning paths

      Explore curated walkthroughs for common development tasks.

    • Guided learning

      Receive custom learning paths powered by our AI assistant.

    • See all learning
  • Hands-on

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

    • Interactive labs

      Learn by doing in these hands-on, browser-based experiences.

    • Interactive demos

      Click through product features in these guided tours.

  • Browse by topic

    • AI/ML
    • Automation
    • Java
    • Kubernetes
    • Linux
    • See all topics
  • Training & certifications

    • Courses and exams
    • Certifications
    • Skills assessments
    • Red Hat Academy
    • Learning subscription
    • Explore training
Build
  • Get started

    • Red Hat build of Podman Desktop

      A downloadable, local development hub to experiment with our products and builds.

    • Developer Sandbox

      Spin up Red Hat's products and technologies without setup or configuration.

  • Download products

    • Red Hat Enterprise Linux
    • Red Hat AI
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products
  • Featured

    • Red Hat build of OpenJDK
    • Red Hat JBoss Enterprise Application Platform
    • Red Hat OpenShift Dev Spaces
    • Red Hat Developer Toolset
  • References

    • E-books
    • Documentation
    • Cheat sheets
    • Architecture center
Community
  • Get involved

    • Events
    • Live AI events
    • Red Hat Summit
    • Red Hat Accelerators
    • Community discussions
  • Follow along

    • Articles & blogs
    • Developer newsletter
    • Videos
    • Github
  • Get help

    • Customer service
    • Customer support
    • Regional contacts
    • Find a partner

Join the Red Hat Developer program

Download Red Hat products and project builds, access support documentation, learning content, and more.

ConsoleDocsSupport Search
New For you

Recommended

We'll recommend resources you may like as you browse. Try these suggestions for now.

  • Product downloads
  • Cheat sheets
  • Red Hat Developer learning portal
  • Developer blog
  • E-books
  • Developer Sandbox
Log in

Get more with a Red Hat Developer account

  • Product downloads
  • Console access
  • Event registration
  • Training & trials
Explore more account benefitsLog in or register

A subscription may be required for some services.

Contact us

Feature Introduction: Multiple IOthreads for OpenShift Virtualization

June 23, 2025
Jenifer Abrams
Related topics:
Virtualization
Related products:
Red Hat OpenShift Virtualization

    Overview

    This new feature allows VM disk I/O to be spread among multiple submission threads, which are also mapped to multiple disk queues inside the VM. The combination of these two options allows VMs to more efficiently utilize both vcpus and host cpus for periods of highly threaded I/O load, which can lead to greatly improved performance in many cases. 

    For more background on how this feature is implemented in KVM, see this article on IOThread Virtqueue Mapping as well this companion article demonstrating performance improvements for Database workloads in VMs running in a RHEL environment. 

    Feature Details

    OpenShift Virtualization 4.19 exposes this feature to VMs by expanding the ioThreadsPolicy option to include a new supplementalPool policy. VM admins can also select the supplementalPoolThreadCount to determine how many host threads should be utilized for the VM’s I/O submission. These IOthreads use adaptive polling so they are not wasting cpu cycles when there is no I/O being performed, rather they allow VMs with many vcpus performing I/O to more efficiently utilize host resources instead of bottlenecking behind a single submission thread.

    How to Enable

    Example yaml definition with this tuning enabled, VM with 16 vcpus and 4 IOthreads:

       spec:
          domain:
            cpu:
              cores: 1
              sockets: 16
              threads: 1
            memory:
              guest: 16Gi
            ioThreadsPolicy: supplementalPool
            ioThreads:
              supplementalPoolThreadCount: 4
            devices:
              blockMultiQueue: true
              disks:
              - name: rootdisk
                disk:
                  bus: virtio

    The key tuning options shown above are:

    • ioThreadsPolicy
    • ioThreads.supplementalPoolThreadCount
    • blockMultiQueue

    Tuning Tips

    Using the tuning described here, we’ve measured VM storage performance improvements up to 2X+ in some microbenchmarks, depending on various I/O workload patterns and the total amount of workload threading. We recommend considering this tuning option for many demanding storage workloads. 

    1. Consider enabling this tuning for VMs with multiple vcpus (i.e. >4) where workload I/O is likely to be multi-threaded / multi-process (meaning multiple vcpus are performing I/O), especially when the workload drives a high iodepth.
    2. Keep in mind that the number of IOthreads may not need to be very high to handle the average workload, we’ve often seen that a ThreadCount of 4 can provide very significant performance improvements. In some cases up to 8 or 16 threads could provide slightly higher performance for some very fast storage environments.
    3. IOthreads can be overcommitted by default however configuring “full” cpu resources may significantly improve performance in some cases. See the CPU allocation ratio documentation for more information about configuring the default cluster behavior for automatic cpu request values. And see our Tuning and Scaling Guide for more information about explicitly tuning VM CPU resources.

    Deeper Dive

    Technical Notes

    • This new supplementalPool policy can serve as a replacement for the shared or auto policies, which control single thread dedicatedIOThread behavior per disk, when the workload environment calls for more threads
    • supplementalPool IOthreads are automatically shared across all VM disks, configure enough threads to handle multiple disks if all are very active
    • The requested supplementalPoolThreadCount value will be added to the total vcpu value, this influences how many cpu requests are automatically assigned to the VM (and virt-launcher pod) which is determined by the vmiCPUAllocationRatio
      • For example, for a VM with 16 vcpus and an IO ThreadCount of 4:
        • Default CPUAlloc Ratio of 10 will configure (16+4)*.10 = 2 cpu requests
        • A CPU Alloc Ratio set to “1” will configure (16+4)*1 = 20 cpu requests
        • Note that any explicit cpu request configured in the VM definition will not be overwritten by this default behavior
    • A few qualifying conditions for this feature:
      • bus: virtio
        • this is the default type for non-hotplugged disks
        • note: virtio-scsi support tracked in CNV-59316
      • blockMultiQueue: true
        • this allows the host-level IOthreads to be automatically mapped to multiple queues inside the guest, so work is properly spread among vcpus as well
        • note: queues are automatically set to the total number of vcpus
      • io: native
        • This IO mode is automatically configured for VM disks when using volumeMode: Block PVCs
        • If using Filesystem mode PVCs, this can be enabled by using preallocation

    Current known issues, pending bug fixes:

    • supplementalPool policy cannot be used in conjunction with dedicatedCpuPlacement or isolateEmulatorThread  (bug tracker: CNV-64201) - UPDATE: resolved in 4.22.11
    • VMs with supplementalPool policy cannot use storage live migration (bug tracker: CNV-64650) - UPDATE: resolved in 4.21+

    Low Level Feature Details

    To see the internals of how the threads are defined per VM disk, you can dump the Libvirt XML from the virt-launcher pod, for ex:

    # oc exec -it <-n namespace> virt-launcher-xx-xx -- bash
    
    bash-5.1$ virsh dumpxml 1

    For disks that qualify, you should see both queues defined in the driver section and multiple iothreads listed below the drive. For example, for 4 threads:

    <driver name='qemu' type='raw' cache='none' error_policy='stop' io='native' discard='unmap' queues='$vcpus'>
      <iothreads>
          	<iothread id='1'/>
          	<iothread id='2'/>
          	<iothread id='3'/>
          	<iothread id='4'/>
      </iothreads>
    </driver>

    You can also check the actual utilization of the iothreads during periods of multi-threaded I/O by viewing pidstat output of the VM’s qemu-kvm pid from the host worker node, for ex:

    oc debug node/<host_node>
    ## note: don’t chroot /host
    pidstat -t -p <qemu-kvm pid> 5

    Example output with 4 iothreads ~70% utilized:

    pidstat qemu thread view showing multiple iothreads utilized

    Conclusion

    As you can see, enabling this feature for OpenShift VMs can significantly improve storage performance for multi-threaded workloads. Consider the guidelines mentioned above and evaluate if this tuning option may give your VM storage performance a big boost! 

    To see example workload improvements when utilizing this feature, check out this blog from my colleague Robert Krawitz and keep an eye out for more examples in future Performance and Scale Engineering Blogs! 

    Last updated: October 28, 2026
    Disclaimer: Please note the content in this blog post has not been thoroughly reviewed by the Red Hat Developer editorial team. Any opinions expressed in this post are the author's own and do not necessarily reflect the policies or positions of Red Hat.

    Related Posts

  • Scaling virtio-blk disk I/O with IOThread Virtqueue Mapping

  • Virtualized database I/O performance improvements in RHEL 9.4

  • Scalable Database Performance with OpenShift Virtualization, Out-of-the-Box

  • Evaluating memory overcommitment in OpenShift Virtualization

  • Boost OpenShift database VM density with memory overcommit

  • Recent Posts

    • A day in the life of an NVIDIA H100 on Red Hat OpenShift 5

    • Migrate BuildConfigs to builds for Red Hat OpenShift with one plug-in install

    • Run Red Hat Enterprise Linux CoreOS on NVIDIA BlueField DPUs

    • Agent harness engineering: Separating model capabilities from enforcement

    • What's new for developers in Red Hat Enterprise Linux 10.3 and 9.9

    Red Hat Developers logo

    Platforms

    • Red Hat AI
    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform
    • See all products

    Build

    • Developer Sandbox
    • Developer tools
    • Interactive tutorials
    • API catalog

    Quicklinks

    • Learning resources
    • E-books
    • Cheat sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site status dashboard
    • Report a security problem

    Red Hat Developer

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit
    © 2026 Red Hat

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility
    Ask AI