Ticket #7097 (closed defect: fixed)
excessive memory allocated by VirtualBox on host
|Reported by:||costing||Owned by:|
Host: Ubuntu 10.04, VirtualBox 3.2.6, 16 cores, 32GB
13 guests: single cores, several Linux flavors (RHEL5 clones, Ubuntu, 32 and 64 bit), all running GA 3.2.6
The problem is that the processes on the host are allocating up to 2x more memory than what is specified in the configuration. There is no correlation between the guest OS or 32/64bit. But also it doesn't seem to grow to more than exactly twice the guest size.
Below is the "top" line for a machine that has 2GB allocated:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 8698 vms 20 0 4349m 4.0g 4.0g S 33 12.8 938:31.41 VBoxHeadless
I still have a couple of servers running VB 3.0 and by comparison their memory allocation is very close to what is defined in the guest configuration (RES part of course). And SHR is close to zero there.
The worst part is that while the sum of the guests' memory allocations is quite far from the server's physical memory, the processes allocate in fact so much more that they are killed by the kernel with out of memory messages in dmesg... There is nothing funny in the VB logs, but I can attach them if needed.
I first noticed this after upgrading to 3.2.6, previous 3.2.x didn't cause any noticeable problems, but I can't guarantee that the problem was not present even then.