Search

20.44. Disk I/O Throttling

download PDF
The virsh blkdeviotune command sets disk I/O throttling for a specified guest virtual machine. This can prevent a guest virtual machine from over utilizing shared resources and thus impacting the performance of other guest virtual machines. The following format should be used:
#virsh blkdeviotune domain <device> [[--config] [--live] | [--current]] [[total-bytes-sec] | [read-bytes-sec] [write-bytes-sec]] [[total-iops-sec] [read-iops-sec] [write-iops-sec]]
The only required parameter is the domain name of the guest virtual machine. To list the domain name, run the virsh domblklist command. The --config, --live, and --current arguments function the same as in Section 20.43, “Setting Schedule Parameters”. If no limit is specified, it will query current I/O limits setting. Otherwise, alter the limits with the following flags:
  • --total-bytes-sec - specifies total throughput limit in bytes per second.
  • --read-bytes-sec - specifies read throughput limit in bytes per second.
  • --write-bytes-sec - specifies write throughput limit in bytes per second.
  • --total-iops-sec - specifies total I/O operations limit per second.
  • --read-iops-sec - specifies read I/O operations limit per second.
  • --write-iops-sec - specifies write I/O operations limit per second.
For more information, see the blkdeviotune section of the virsh man page. For an example domain XML see Figure 23.27, “Devices - Hard drives, floppy disks, CD-ROMs Example”.
Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.