4 ms·
"Memory ballooning to dynamically in- or decrease the amount of RAM used by a VM (64-bit hosts only) (see the manual for more information)" Awesome. I'm defini
by timmorgan 16y ago
"Memory ballooning to dynamically in- or decrease the amount of RAM used by a VM (64-bit hosts only) (see the manual for more information)"
Awesome. I'm definitely not a VM expert, but I think that means I can fire up my VM, and if not much is running in it, it won't consume as much memory on the host. Is that correct?
- mtw 16y agoI think it means you can increase the RAM of a VM without shutting it down. With Xen, the VM needs to be rebuilt (a couple of minutes off)
- blacklife 16y agoMemory ballooning is basically a mechanism for hypervisor to steal pages from the guest and yes, so it allows for over-commitment. Memory balloon driver is present inside the guest and hypervisor communicates how many pages it needs back to the driver. The driver allocates pages and sends it back to the hypervisor.
- cmelbye 16y agoI believe it's just memory overcommitment, so you can assign more memory than you actually have available on the host and it will dynamically handle it for you. Crazy stuff, though.
- azim 16y agoThe balloon driver, as others have pointed out, is used in an overcommit scenario as a way for the hypervisor to reclaim memory from a guest OS. There's a balloon driver loaded in to the guest which can communicate with the hypervisor. When the hypervisor needs more physical memory, it can ask a guest's balloon driver to inflate and start allocating physical memory pages. That will cause the guest to start reclaiming unused memory using it's native techniques; a Linux guest, for example, might destroy unused file buffer caches. The balloon driver can then release all the memory it's allocated and the guest won't bother reclaiming anything until it needs it.