Performance & tuning

Proxmox VE Performance Settings: Fixing Disk I/O, CPU Type and Network Latency

Real configuration settings that fix the slow disks, high CPU steal and ZFS RAM consumption that VDS customers on Proxmox VE complain about.

Why do default Proxmox VM settings stay slow?

A newly installed Proxmox VE node may have a powerful AMD EPYC or Xeon processor and enterprise NVMe drives. Even so, if customers write in saying "the database is slow" or "Windows takes ages to boot", the problem usually lies not in the hardware but in the virtual machine's default template parameters. Proxmox starts with the most conservative settings to preserve compatibility; in production, you need to correct these settings by hand.

1. CPU type: x86-64-v2-AES or host instead of kvm64

When creating a new VM, Proxmox may still leave the CPU type at x86-64-v2-AES, or at kvm64 in older templates. On a machine with kvm64 selected, the AES-NI, AVX and modern SSE instruction sets are not passed through to the guest operating system. TLS encryption, OpenSSL, MongoDB 5+, PostgreSQL compression and backup jobs burn CPU unnecessarily.

  • Single node, or a cluster with identical CPUs: Choose host directly. All of the physical processor's instruction sets pass through to the VM with no additional loss.
  • A cluster with Intel/AMD nodes of different generations (if you use live migration): Choose the highest level that all nodes support in common, for example x86-64-v3. Otherwise you will get a CPU flag mismatch error during live migration.
qm set 105 --cpu host

2. Disk controller: VirtIO SCSI Single and IOThread

This is the change that improves a virtual machine's disk performance the fastest. IDE or SATA emulation performs heavy hardware imitation on every read/write request. Instead, select the VirtIO SCSI single controller and enable iothread=1 on the disk, plus discard=on (TRIM) if you are using SSD/NVMe.

qm set 105 --scsihw virtio-scsi-single
qm set 105 --scsi0 local-lvm:vm-105-disk-0,iothread=1,discard=on,ssd=1,cache=none

cache=writeback shows high numbers in synthetic benchmarks, but it increases the risk of data inconsistency in a power cut or if the host locks up. If you have a hardware RAID card with battery-backed cache (BBU/CacheVault) or enterprise NVMe with PLP support, cache=none is both safe and stable. For choosing a storage architecture, see our comparison of ZFS, LVM-Thin and Ceph.

3. Do not forget to limit ZFS ARC memory

One of the biggest headaches on Proxmox servers that use ZFS is when the node appears to have no free RAM left and, under a sudden load, the Linux OOM Killer shuts down a running customer's VM. By default, ZFS reserves up to half of the system memory for its read cache (ARC). On a VDS host with 128 GB of RAM, ZFS holding on to 64 GB of memory breaks your capacity plan.

Set a clear upper limit in the /etc/modprobe.d/zfs.conf file (for example, for a node with 128 GB of RAM, 12–16 GB is enough for most VDS workloads):

options zfs zfs_arc_max=17179869184

After the change, refresh the initramfs (update-initramfs -u -k all) and reboot the node during a maintenance window. Even if you do not use ZFS, apply the measurement method from the KSM memory optimisation guide for memory sharing.

4. NUMA and memory access on dual-socket servers

If you create a large 16 vCPU VDS on a server with two physical processors (dual Xeon or dual EPYC) and leave NUMA disabled, the cores reach across QPI/UPI or Infinity Fabric to the RAM bank attached to the other socket. Latency goes up. On machines with 8 or more vCPUs, enabling numa=1 preserves memory locality:

qm set 105 --numa 1

5. Network card: VirtIO + Multiqueue

E1000 or Realtek network card emulation pushes a single CPU core to 100% as traffic approaches 1 Gbps. Use the virtio network card in all Linux and current Windows templates. On VDSs with high packets-per-second (PPS) traffic, setting the queues value to the VM's vCPU count (usually capped at 4 or 8) spreads the interrupt load across the cores:

qm set 105 --net0 virtio,bridge=vmbr0,queues=4,firewall=1

Build the settings into the template instead of applying them on every order

If you try to enter all of these settings by hand on every new machine, they will be forgotten on the first busy day. The right approach is to prepare your operating system templates (Ubuntu, Debian, AlmaLinux, Windows Server) from the start with virtio-scsi-single, iothread=1, discard=on, a virtio NIC and the correct CPU type, and then register them with the automation panel. Because the VMRobot Proxmox automation panel clones these verified templates for new orders, all the performance settings reach every customer in the same standard form. If this is your first installation, you can continue with the What is Proxmox VE? and Proxmox installation guides.