Question

I have ubuntu and installed on it several qemu-kvm guests, running also ubuntu.

I'm using libvirt to change the guests' memory allocation. But always encounter a constant difference between the requested memory allocation and the actual memory allocation I query from the Total field in the top command inside the guests.

The difference is the same in all the guests, and consistent. In one machine I installed it is 134MB (allocated is less then requested), In another one it is 348MB.

I can live with it, I just don't know the reason. Does someone encounter this kind of problem? Maybe solved it?

Thanks

Was it helpful?

Solution

This constant difference is likely the space reserved by the kernel. Note that this amount of space will increase (at least in Linux) as you have more physical memory available in the system. The change you're seeing is probably due to kvm giving that particular guest more or less memory to work with than it was before.

If you're interested, here is a quick article on memory ballooning, as implemented by VMWare ESX Server.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top