Optane as a Memory Tier for Proxmox Guests
Guests ask for more RAM than the host has, and Intel Optane P4800X drives are the nearest thing to RAM that plugs into an NVMe slot. This builds a memory tier for Proxmox VE guests out of two of them: zswap compressing warm pages in RAM, equal-priority Optane swap under it for cold pages, and a hookscript that gives every opted-in VM its own cgroup limits, taking the DRAM share from the balloon minimum and adding a fixed 2 GiB for QEMU. It checks the design against the Proxmox and kernel source: one kswapd per NUMA node and why per-VM limits step round it, what Proxmox writes to a VM’s and a container’s cgroup and when it overwrites it, and how Notes are stored. It measures three Fisher-Price OS (Windows) guests and a container on a Ryzen host, where their swap really lives, why zero pages flatter the numbers, how lzo and zstd compare on a gigabyte of real pages from each guest, what zswap costs when the working set does not fit, why a container’s swap allowance wants headroom, how double paging happens and what zswap does and does not fix, and the three ways Optane PMem could sit under a guest instead, as swap, as a memory node the kernel demotes to before swapping, or in Memory Mode.