Remix.run Logo
eptcyka 6 days ago

VMs suffer from memory use overhead. Would be cool if the guest kernel would cooperate with the host on that.

jeroenhd 6 days ago | parent | next [-]

There's KSM that should help: https://pve.proxmox.com/wiki/Kernel_Samepage_Merging_(KSM)

Probably works best running VMs with the same kernel and software version.

infogulch 6 days ago | parent [-]

But 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. ...

traverseda 6 days ago | parent | prev | next [-]

It will! For Linux hosts and Linux guests, if you use virtio and memory ballooning.

shortrounddev2 6 days ago | parent [-]

This 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 6 days ago | parent | prev [-]

It's possible to address this to some extent with ballooning memory drivers, etc.