VIOMB(4)
π VIOMB(4) β the manual page for the VirtIO memory ballooning driver, bestie edition π
okay so this is the viomb page from the Kernel Interfaces Manual, and it's genuinely one of the cutest little drivers you'll ever meet. it's giving "I return memory to my host like a good little guest" energy and honestly? slay. π«Ά
β¨ SYNOPSIS β¨
virtio* at pci? dev ? function ?
viomb* at virtio?
there she is. that's the whole vibe. viomb rides on top of virtio, and virtio attaches to pci? dev ? function ?. nesting dolls but make it kernel. πͺ
πΈ DESCRIPTION πΈ
so virtio(4) is this iconic interface that defines efficient, standard, and extensible I/O between the hypervisor and the virtual machine. and the viomb driver? it's the one that specifically supports the virtio-compliant memory ballooning device. main character energy fr fr. π
memory ballooning works like this, step by step, no cap:
- the host operator requests a guest to return some amount of memory to the host β via e.g. the Qemu monitor balloon command, iykyk.
- the hypervisor sends the request via the VirtIO memory ballooning device.
- the guest
viombdriver then requests allocation of that amount of physical memory from the NetBSD memory management system. polite but firm. π - the
viombdevice tells the hypervisor the guest physical memory address of the allocated memory via the VirtIO memory ballooning device. full circle moment.
and for the girlies who like to check the receipts π:
- the sysctl node
hw.viomb.npagesshows the requested number of memory pages to return to the hypervisor. hw.viomb.actualshows the actual number of memory pages that are already returned to the hypervisor.
like, the requested vs. the real. the dream vs. the delivery. we love a transparent queen. β¨
π SEE ALSO π
go give these a little kiss, they're all in the family:
and the source material β Rusty Russell, IBM Corporation, Virtio PCI Card Specification, http://ozlabs.org/~rusty/virtio-spec/. the blueprint. the origin story. π
π¦ HISTORY π¦
the viomb device driver appeared in NetBSD 6.0. so she's been out here returning memory since way back. legacy icon behavior. π
π BUGS π
ngl the userland interface should be same as the Xen ballooning device. (yes, that's exactly how the original says it β grammatical quirk and all, preserving the vibe.) π
and that's the whole page bestie!! no notes. now go forth and balloon responsibly. ππ
π sign-off: this little treasure comes to us from the Debian source, version dated August 25, 2020, and it's the VIOMB(4) page from the Kernel Interfaces Manual. mwah. π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (C) 2011 Minoura Makoto
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms