Performance diagnosis

A slow VM is a symptom, not a cause.

Measure the complete path before changing it: accelerator, host scheduler, memory, storage, network, display and the guest workload itself.

Start the triage VMBook performance evidence

VMBook host health view showing processor memory storage and virtual machine usage
Real product capture: host and VM pressure must be read together; configured resources alone do not explain latency.
THE FIRST RULE

Do not tune from a screenshot taken after the problem disappeared. Record the exact workload, start time, duration, host, VM configuration, recent change and a comparable baseline while the slowdown is occurring.

Begin with the symptom

Different kinds of “slow” point to different layers.

A long boot, a delayed desktop, low file-copy throughput and an application pause are not interchangeable observations. Reproduce one bounded task and collect host and guest evidence over the same interval.

BOOT

Long before login

Check accelerator, firmware, storage controller, image chain, guest boot log and startup services.

CPU

Work completes slowly

Compare guest utilization with host scheduling pressure; more assigned vCPUs can increase contention.

MEMORY

Pauses and swapping

Observe host reserve, guest working set, ballooning, compression and swap—not configured totals alone.

STORAGE

Freezes during I/O

Measure latency and queueing on the actual host volume, then inspect image chains and competing jobs.

NETWORK

Throughput or latency

Separate guest driver, virtual path, host NIC, VPN, firewall, DNS and remote endpoint behavior.

DISPLAY

Choppy console

Compare the console transport and graphics path with application performance inside the guest.

Gate zero

Confirm how instructions are executing.

A matching host and guest architecture may use WHPX, KVM or HVF when the hardware, operating system and permissions expose it. Cross-architecture guests normally use QEMU translation. A booting guest is not proof that acceleration is active.

  1. Record host and guest architecture.
  2. Inspect the composed QEMU command.
  3. Confirm the intended accelerator in runtime output.
  4. Compare against a small repeatable CPU task.
VMBook host check showing virtualization capabilities and installed QEMU tools
Real product capture: capability discovery narrows the diagnosis; it does not replace a workload measurement.

Evidence before changes

Read the host and guest at the same time.

LayerHost evidenceGuest evidenceCommon false conclusion
CPULogical processor load, scheduler pressure, other VM and host processesPer-vCPU use, run queue and the application’s parallelism“Low guest CPU means the CPU cannot be the bottleneck.”
MemoryAvailable memory, reclaim, compression, swap and NUMA localityWorking set, paging and application allocation“Configured RAM is available physical RAM.”
StorageLatency, queue depth, volume free space, cache and competing I/OFilesystem latency, flush behavior and application I/O size“The image is on SSD, so storage is fast.”
NetworkPhysical utilization, drops, offloads, routes and tunnel overheadVirtual NIC driver, retransmits, DNS and endpoint latency“A successful ping proves application throughput.”
DisplayConsole encoding, transport and host graphics loadDesktop compositor and guest driver“A lagging console means the guest workload is slow.”

CPU and memory

Bigger VM settings can make a smaller workload slower.

A vCPU is scheduled time, not an owned physical core. Adding vCPUs widens the scheduling and NUMA problem when the application cannot use them. Likewise, allocating nearly all host RAM removes the reserve needed for the host, page cache, device models and other guests.

Change one dimension at a time. Keep the workload, guest state and measurement interval constant, then compare completion time and tail latency—not only average utilization.

Contention

Idle totals can hide a hot core or saturated device.

An aggregate CPU percentage can look moderate while one vCPU, interrupt path or storage queue is saturated. Averages also hide short stalls that dominate an interactive workload. Inspect per-processor and per-device data over an interval fine enough to include the pause.

On large hosts, NUMA placement and remote memory matter. Pinning and huge pages are specialized tools; apply them after evidence, because they also reduce scheduler flexibility.

VMBook virtual machine disk and controller settings
Real product capture: image location, format and controller are visible inputs; workload latency still has to be measured.

Storage path

A virtual disk filename is only the beginning.

Follow the write from the guest filesystem through its driver and virtual controller, the image format and backing chain, the host filesystem and cache, then the physical or network storage. Snapshots, backups, antivirus scans, compaction and another VM can contend with the same device.

Do not trade durability for a benchmark without understanding cache semantics. A mode that acknowledges a write before stable storage can look fast while changing the failure guarantee. Preserve the source before changing image chains or attempting repair.

Network and display

Test the path that carries the real workload.

Measure latency and throughput between the same endpoints and in the same direction as the application. Record the virtual NIC, guest driver, MTU, NAT or bridge path, VPN, firewall and host interface. DNS delay can resemble network delay; remote storage can turn a network problem into a disk symptom.

For interactive desktops, compare application completion inside the guest with the console experience. A remote console may be constrained by encoding, bandwidth or display acceleration even while the guest’s CPU and storage workload runs normally.

A controlled experiment

Change one layer, then try to disprove the improvement.

  1. Define

    One task, dataset, success measure and acceptable variance.

  2. Capture

    Host and guest evidence before making a change.

  3. Change

    One accelerator, resource or device variable.

  4. Repeat

    Run enough samples to expose warm-cache and transient effects.

  5. Revert

    Confirm performance returns, or investigate the hidden variable.

Where VMBook helps

Make the machine definition and host pressure inspectable.

VMBook shows host capability, processor and memory usage, storage volumes, virtual machine resources and the exact QEMU command it composes. Those facts make it easier to find software emulation, a wrong architecture, an unsuitable device or a busy host. They are observations—not a claim that VMBook automatically diagnoses every workload.

For Hyper-V, libvirt, Proxmox and ESXi-owned machines, use VMBook as shared context and collect provider-native counters where the platform remains authoritative. Record provider and version with every result; the same setting name can have different implementation and failure semantics.

Primary references

Use platform counters, not folklore.

Microsoft: troubleshoot Hyper-V VM performanceMicrosoft: detect virtualization bottlenecksQEMU: system emulation and acceleratorsRed Hat: optimize VM performance

Continue diagnosing

Follow the layer that produced evidence.

Hardware accelerationvCPU, memory and NUMAVirtual disk formats and chainsVirtual machine networking

Keep the baseline

A performance fix is credible when the same workload improves and the failure guarantee stays acceptable.

Preview VMBook