5 ms·
VMs suffer from memory use overhead. Would be cool if the guest kernel would cooperate with the host on that.
by eptcyka 1y ago
VMs suffer from memory use overhead. Would be cool if the guest kernel would cooperate with the host on that.
- traverseda 1y agoIt will! For Linux hosts and Linux guests, if you use virtio and memory ballooning.
- shortrounddev2 1y agoThis was an issue for me a few years ago running docker on macOS. macOS required you to allocate memory to docker ahead of time, whereas Windows/Hyper-V was able to use memory ballooning in WSL2
- api 1y agoIt's possible to address this to some extent with ballooning memory drivers, etc.
- jeroenhd 1y agoThere's KSM that should help: https://pve.proxmox.com/wiki/Kernel_Samepage_Merging_(KSM) https://pve.proxmox.com/wiki/Kernel_Samepage_Merging_(KSM) Probably works best running VMs with the same kernel and software version.
- infogulch 1y agoBut that just seems to reintroduce the same problem again: > However, while KSM can reduce memory usage, it also comes with some security risks, as it can expose VMs to side-channel attacks. ...