VirtIO SCSI and IO threads for Proxmox VE disk performance

VirtIO SCSI and IO threads on Proxmox VE can change disk throughput and latency for KVM guests, but the gains depend on controller, cache, format and storage choices that must be benchmarked.

On this page

How VirtIO SCSI and IO threads shape Proxmox VE disk performance

When a VM's disk is slow or its latency swings under load, the usual question is whether the disk controller and its IO handling are the bottleneck. VirtIO SCSI single with IO threads gives each virtual disk its own SCSI controller and a dedicated IO thread on the host, so one busy disk does not queue behind the others on a shared controller. It is worth changing when a VM has several busy disks, when a database or file server shows uneven latency across them, or when the current controller is an emulated type such as IDE or SATA. For a single lightly used disk, the gain is usually small, so the change should be justified by a measured problem rather than by habit. The Proxmox VE administration documentation describes these options, but the result depends on the underlying storage: a local NVMe pool, a ZFS mirror and an iSCSI LUN will respond differently, so every change has to be measured on the actual host.

Before editing anything, record a baseline from inside the guest and on the host. Use the same fio job, block size, queue depth and runtime for every run, and capture both throughput and latency percentiles, since averages hide the uneven behavior that prompted the review. Note the current controller, the disk's iothread and cache settings in the VM configuration, and the storage type. Then change one setting at a time, shut down the VM when the controller type changes, and rerun the same job. Confirm that the guest sees the disk through the VirtIO driver before testing, because a disk on a driver that is missing or outdated can produce misleading results. Windows guests need the VirtIO drivers installed first.

Plan for the trade-offs before the change goes into production. IO threads use host CPU, so consolidated hosts with many disks should watch CPU load after the change. A gain on one storage backend does not transfer to another, and a change that helps on local storage may do nothing on a shared SAN. Keep the before and after results with the change record, because auditors and internal reviewers often ask how a configuration was chosen. Ask any partner quoting this work to state which guests, storage backends and benchmark jobs the tuning will cover, and to deliver the measured results alongside the configuration.

Which disk settings fit which workload

This table compares the main Proxmox VE disk choices against the workloads they suit, the trade-offs in throughput, latency, data safety and space, and what to check on the storage backend. Read each row as a starting point, then confirm the behavior on your own hardware with a before and after benchmark.

SettingSuitsTrade-offVerify on the storage backend
VirtIO SCSI single with IO threadsBusy database or multi-disk guests where one disk should not queue behind anotherAdds host threads per disk, so CPU use rises under heavy I/O; gains depend on workload and backendHost CPU headroom during peak I/O and latency under the same benchmark before and after the change
VirtIO block (virtio-blk)Simple Linux guests with a few disks and a need for a lean, predictable data pathFewer features than SCSI for hot-plug and discard handling in some setups; one queue per diskGuest sees the expected device, discard reaches the backend, and throughput matches the baseline
Cache mode noneProduction VMs on a backend with its own write cache and power-loss protectionLowest host caching and usually good latency; depends on the backend honoring flushesPower-loss protection on the controller or SSDs and that the backend supports direct I/O
Cache mode writebackThroughput-focused workloads where the guest can tolerate losing recent writes after a host crashFastest on paper for some workloads, but the host cache can hide latency and loses unflushed data on failureWritten data policy, host RAM and UPS coverage, and whether your data safety requirements allow loss of recent writes
Cache mode writethroughWorkloads that need every write on stable storage before completion, with reads helped by host cacheSlower writes because each write waits for the backend; reads can benefit from host cachingWrite latency under load and that acknowledgments reflect durable storage
Cache mode directsyncDatabases and applications that demand synchronous writes with no host cachingTypically the highest write latency; safest for data but costs throughputSync write latency on the backend and whether the storage network can sustain the required IOPS
Discard and SSD emulationThin-provisioned or SSD-backed storage where freed guest blocks should be returnedDiscard generates extra backend work and can add load during deletes; SSD emulation changes how the guest schedules I/OThat the guest issues TRIM or UNMAP, the backend reclaims space, and the guest trim schedule is set
Raw formatPerformance-first VMs on LVM, ZFS zvols or Ceph where snapshots come from the storage layerNo native guest-level snapshot features in the image file; space use follows the volume sizeStorage snapshot support on the chosen backend and that volume sizing matches capacity plans
qcow2 formatDirectory-based storage where you need image-level snapshots, sparse allocation and easy file copiesMetadata overhead and fragmentation can reduce throughput on some workloads; more layers to tuneBenchmark against raw on the same backend and check snapshot performance and free space trends

How to change a VM disk and verify the result

This sequence takes one VM disk from its current configuration to a new controller, IO thread, cache and discard setup, and shows at each step how to confirm the change took effect. Running the same benchmark before and after each change keeps the results attributable to a single variable.

  1. Record the current disk and guest baseline

    Before touching anything, the VM owner exports the current hardware configuration of the VM, including the disk line, controller type, cache mode, discard setting and format of the backing storage. Inside the guest, record the device name, the kernel or Windows driver versions in use, and the output of a fixed benchmark run at a quiet time on the host. Save the output with the VM ID and date. The step is done when you have a configuration file copy and at least one benchmark result you can reproduce, so later differences can be attributed to a specific change.

  2. Choose the storage and disk format

    Decide which storage backend the disk will live on and whether the image format should be raw or qcow2. The choice depends on what the storage supports (LVM, ZFS, directory, Ceph RBD or NFS), on whether you need qcow2 features such as internal snapshots on directory storage, and on the snapshot and replication behavior your cluster relies on. Confirm the options against the Proxmox VE storage documentation for your release rather than assuming. The step is done when the target storage and format are written down with the reason for each.

  3. Switch the controller and enable IO threads

    Move the disk to a VirtIO SCSI single controller, which gives each disk its own controller and allows IO threads to be enabled per disk, then turn on the IO thread option for that disk. This is done in the VM hardware settings or with the qm command on the node, and the VM must be stopped or the change applied at the next start, depending on the item. Check the resulting configuration line: the disk should appear under the virtio-scsi-single controller with the iothread flag set. The step is done when the configuration shows the expected controller and the guest boots with the disk visible.

  4. Set cache and discard options

    Set the cache mode and discard option to match what the storage and the workload need. Choosing a cache mode trades host memory use against crash consistency, and discard only has an effect when the guest issues trim commands and the storage can act on them. Verify the change in the configuration line and note any setting that the storage type does not support. Test the choice with the same benchmark in the next step, because cache behavior depends on both the host and the guest. The step is done when the configuration holds the chosen values and you have written down why each value was selected.

  5. Install or confirm VirtIO drivers in the guest

    Inside the guest, confirm that the VirtIO SCSI driver is active. On Linux, check that the disk appears as a SCSI device bound to the virtio driver, and on Windows, confirm in Device Manager that the disk uses the VirtIO SCSI controller with the Red Hat VirtIO driver package installed. Install the Windows VirtIO drivers and guest tools from the matching release if they are missing. For discard, check on Linux that the device reports discard support (for example with lsblk --discard), and on Windows that the storage optimization path is available. The step is done when the guest reports the expected driver and discard capability.

  6. Run the same benchmark after each change

    Run the identical benchmark you recorded in the first step, using the same test file size, block size, queue depth, duration and host load conditions. Repeat it after each change that affects the disk, not only at the end, so each difference can be linked to one setting. Record the throughput, IOPS and latency figures alongside the configuration used. Repeat runs help separate real differences from noise, and you should confirm how many repeats your team needs. The step is done when every configuration you tested has a comparable result set on file.

  7. Confirm the result and keep the record

    Compare the benchmark results with the baseline and decide which settings to keep, based on the workload that the VM actually runs rather than on synthetic peaks alone. Confirm that the guest boots cleanly, that trim runs without errors when enabled, and that backups and snapshots still complete. Save the final hardware configuration and the benchmark records in your change log, and note the settings to reuse for similar VMs. The step is done when the change is accepted or reverted with a written record of the evidence.

How to benchmark before and after a disk change

Start by fixing the test before you touch the configuration. A fair benchmark runs the same guest workload on the same VM, on a host carrying the same background load, before and after each change. Run each profile several times and compare the spread of results, not a single best number. Measure IOPS, throughput and latency as separate figures, because a change that raises throughput can still make latency worse. Cover both sequential I/O and random 4K patterns, since a controller or IO thread change often helps one and barely touches the other. Use a tool such as fio inside the guest with a fixed job file, and record the guest kernel, VirtIO driver version and the exact qm config output alongside the results so the comparison can be repeated.

Host-side caching can make the numbers meaningless. The cache setting, the host page cache and the storage backend's own write cache can all absorb writes, so a short test may report memory speed rather than disk speed. Choose a cache mode deliberately, use a test file larger than the guest's RAM where practical, and use direct I/O or a flush option in the benchmark so that writes reach stable storage. Confirm with the storage administrator whether the backend acknowledges writes before they are durable, because that setting governs what the test is really measuring.

Test on the backend your VMs will use, not on a single disk. A ZFS pool, an LVM-thin volume, a Ceph RBD pool, and an NFS export behave differently under the same VM settings because each has its own cache, replication, network hop and locking behavior. Run the matrix on each backend that hosts production guests, and include a run while another VM is busy on the same storage, since shared contention is where many disk changes show their real cost. Keep the results in a table per backend, and treat any change that helps on one backend but hurts another as a decision to document, not a universal improvement.

Data safety and operational risks of cache and discard settings

Cache, discard and controller changes touch the data path under running guests, so a mistake can cost data rather than just speed. The cards below cover the risks that matter most on Proxmox VE and the control to put in place for each before you change a production disk.

Writeback cache and host crashes

With writeback cache, guest writes can be acknowledged before they reach stable storage on the host. If the host loses power or crashes, the most recent writes can be lost or leave the guest file system inconsistent. Before choosing writeback, confirm that the backing storage has power-loss protection or a battery-backed cache, and test a forced host reset on a non-production VM to see how the guest recovers.

Backup before controller or format changes

Moving a disk from one controller to another, or converting it from qcow2 to raw, changes how the guest sees its hardware and how the image is stored. Guest drivers may not load the disk at boot, and a failed conversion can leave the image unusable. Take a verified backup and note the current disk configuration in the VM options before each change so you can revert quickly.

Discard on thin storage and snapshots

Enabling discard lets the guest return freed blocks to the storage, which keeps thin pools and sparse images from growing. On storage that keeps snapshot chains, the space release behaves differently and can surprise capacity planning. Confirm how your LVM-thin, ZFS or Ceph backend handles discard and trim, then check free space on the pool after a large delete inside the guest.

Outdated VirtIO drivers in guests

VirtIO SCSI and cache settings depend on the guest driver version. A Windows guest with an old or missing VirtIO storage driver may fail to boot after the controller changes, and Linux guests with old kernels may expose a different device name. Keep the VirtIO driver package and guest agent current, and verify the disk is detected and that the guest tools installer reports a healthy state after each change.

Unverified changes on live guests

Changing cache, IO thread or discard options is often done on a VM that serves users, and the effect is not always visible until load arrives. Apply one change at a time, record the baseline benchmark and guest behavior, and keep the previous configuration noted so the change can be reverted. Schedule the change in a maintenance window that covers the rollback time you have agreed with the application owner.

Questions buyers ask about VM disk tuning on Proxmox VE

Is VirtIO SCSI single with IO threads always faster on Proxmox VE?

No. VirtIO SCSI single with IO threads usually gives each virtual disk its own I/O path, which helps when several disks in one VM are busy at once. A single busy disk, a storage backend that is already the bottleneck, or a cache mode that hides the difference can all leave results unchanged or even worse. The only reliable answer comes from benchmarking your workload on your hardware before and after the change, using the same guest, the same disk size and the same cache and discard settings. Treat the controller type, IO thread setting, cache mode and backend as one set of choices to test together, not as independent switches.

What does a disk tuning engagement cost, and what drives the effort?

The cost comes from the time an engineer spends profiling VMs, building repeatable benchmarks, testing configuration changes and documenting the results, plus any change windows needed to apply them. Effort rises with the number of VMs in scope, the number of storage backends (local ZFS, LVM-thin, Ceph, NFS or iSCSI each behave differently), the number of guest operating systems, and how much evidence you need for change approval. Ask for a written scope that lists the VMs, backends, workload profiles and deliverables, and a quote that separates one-time analysis from any recurring retest. DeployOpen does not publish prices, so the quote follows from that written scope.

How long does benchmarking take when many VMs and storage backends are involved?

Duration depends on how many workloads you need to represent and how long each test must run to produce stable numbers. A small set of VMs on one backend is much quicker to baseline than dozens of guests spread across local disks and shared storage, because each combination needs its own runs, repeats and comparison. Benchmarks also need quiet windows so other jobs, backups and replication do not distort results. Ask for the test matrix in the scope document (VMs, backends, block sizes, queue depths, repeats) and agree on how results will be compared before any configuration change is made.

What must our internal team provide before tuning work starts?

Your team needs to provide administrative access to the Proxmox VE cluster and the storage systems behind it, read access to guest configurations, and a clear list of workloads to represent, such as databases, file services or build agents. Workload profiles should describe the read and write mix, block sizes, peak hours and latency targets as the application owners understand them. You also need maintenance windows for applying changes and for any VM restarts, plus a named contact who can approve configuration changes and confirm that backups are current before testing begins.

Can our own team tune VM disks on Proxmox VE without a partner?

Yes, if your team has Linux and Proxmox VE operations experience and can run controlled benchmarks. The Proxmox VE documentation covers the disk controller, IO thread, cache, discard and image format options, and the tests themselves are standard tools run inside the guest and on the host. The harder parts are designing representative tests, isolating noise from backups and other tenants, and keeping the results and rollback steps for auditors or change boards. A partner is most useful when many VMs and mixed backends must be tuned together, or when you need an independent, documented before-and-after record.

Should we use raw images or qcow2 for VM disks on Proxmox VE?

The choice depends on the storage backend and on which features you need. Raw images carry less format overhead and are common on block storage such as LVM-thin or Ceph, while qcow2 offers features such as internal snapshots and thin provisioning on file-based storage. Performance differences show up under specific write patterns, so the answer should come from testing on your own backend. Confirm which snapshot, backup and migration features your chosen format supports on each storage type before standardizing, because those constraints often matter more than raw speed.

Does changing disk settings on a running VM create risk?

Some changes take effect only after a VM restart, and changing a controller type can alter how the guest detects its disks, which may affect boot or drive letters on Windows. Changes to cache or discard behavior affect data safety during a host failure, so they should be reviewed against your backup and recovery design. Always take a verified backup, record the original configuration, test on a non-production copy where possible and keep a rollback plan. Confirm each change with the guest operating system owner before applying it in production.

How guest disk requests reach the storage backend

The path starts in the guest, where the VirtIO SCSI driver submits requests to a virtual controller. Each virtual disk can be served by its own IO thread in QEMU, which then passes requests through the configured cache mode to the host storage underneath. That host storage is LVM-thin, ZFS, Ceph or NFS, and each choice adds its own layer. Check the controller type, IO thread setting, cache mode and discard option at each hand-off, then rerun the same benchmark after every change so the measured result decides whether the setting stays.

Request path from guest driver through QEMU to host storage, with benchmark feedback.

How DeployOpen scopes disk performance work

Disk performance work on Proxmox VE starts with a written scope, not with a configuration change. DeployOpen agrees the workloads that matter (database engines, file servers, build runners, or log-heavy services), the hosts and storage backends they run on, and the latency and throughput targets the client cares about. Before anything changes, the team records a baseline for each affected VM: the current disk controller, cache mode, discard setting, IO thread state, and benchmark results taken under realistic load. Without that baseline, a later comparison proves little, so the scope should name who runs the tests and which tools and job profiles are used.

Changes are then made inside the client's own Proxmox VE environment, on infrastructure they control, and in the order the written scope sets. Each change is limited to the VMs and storage named in the scope, with a rollback path noted for each VM before work begins. Where a change affects the guest, such as a controller type that needs VirtIO drivers installed first, the scope says who confirms that the guest is ready. Where the client's cluster uses shared storage or live migration, the scope should state how the change is verified on each node that may host the guest. Clients should ask for this sequence in the quote.

The engagement closes with a before and after report and a handover of the final configuration. The report lists each VM, the settings changed, the benchmark results against the recorded baseline, and any results that did not improve, which is a legitimate outcome that the client should expect to see documented. The handover covers the VM configuration files or commands used, the settings to keep under review, and the checks the client's own team can rerun later. Ask in advance what format the report and configuration handover will take, and whether any retest is included in the fixed scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.