Files
reims-vgpu/docs
Anees Iqbal cbdac3b3e1 🐎 Back guest RAM with huge pages at every THP setting
The prealloc of reims-ctl's memfd gets transparent huge pages only where
shmem_enabled lets a fault take one: advise (CachyOS's), always or within_size.
At never, upstream's default and most distributions', the guest ran on 4 KiB
pages and KVM mapped it 4 KiB at a time.

Move vendor/qemu to 53e76630, which collapses a shared file-backed backend's
RAM into huge pages with MADV_COLLAPSE once its prealloc has run and before any
device is realized, 2 MiB at a time. For shmem the kernel takes MADV_COLLAPSE
at every shmem_enabled but deny (read in Linux 6.13 and 7.3); at deny, or before
Linux 6.1, it fails with EINVAL, QEMU logs it in its one line and the boot goes
on as before. docs/qemu.md says what the collapse does at each setting, with
the boots on um790 that measured it.
2026-11-23 12:20:48 -08:00
..