10.0 interaction with vmware
Patrick Bihan-Faou
patrick.bihan-faou at teambox.fr
Tue Aug 26 13:39:25 UTC 2014
Hi,
From what I understand of the VMWare tools is that it adds a kernel
module that comunicates with the host. When the host is under memory
pressure it claims some of the memory used by each VM by asking the
kernel module to grab RAM. This active RAM is "reserved" by the kernel
module and can then be used by the host for another VM.
This mechanism will increase the memory pressure inside your VM, which
can lead to some swapping or freeing of otherwise less used memory pages
in the OS.
This cooperative mode of sharing the memory pressure experienced by the
hypervisor is called "ballooning" in VMWare terms. The kernel module
responsible to implement the VM side of this si called vmmemctl.ko.
If the memory requirements cannot be met using this "ballooning"
technique (or if none of the VM have the vmware tools enabled), you will
start to see swapping at the host level, which will be much worse than
swapping at the VM level.
This is the main reason why you should run the vmware tools.
Regards,
Patrick.
On 26/08/2014 09:16, Paul Koch wrote:
> Curious if anyone has an understanding of what actually goes on
> with VMWare memory control of a FreeBSD 10 guest when open-vm-tools
> is installed and how it could affect performance.
>
> Our typical customer environment is a largish VMWare server with
> an appropriate amount of RAM allocated to the guest, which currently
> runs FreeBSD 10.0p7 + our software, UFS root, and data stored on a
> ZFS partition. Our software mmaps large database files, does rather
> largish data collection (ping, snmp, netflow, syslog, etc) and
> mostly cruises along, but performance drops off a cliff in low
> memory situations.
>
> We don't install open-vm-tools at the moment, therefore we have a known
> amount of memory to work with (ie. what the customer initially
> configured the guest for), but our customers (or in particular, their
> VM guys) would really like vmware tools or open-vm-tools by default.
>
> From what we gather, many sites choose to "over provision" the memory
> in the VM setups, and when memory gets low, the host takes back
> some of the RAM allocated to the guest.
>
> How does this work actually work ? Does it only take back what
> FreeBSD considers to be "free" memory or can the host start taking
> back "inactive", "wired", "zfs arc" memory ? We tend to rely on
> stuff being in inactive and zfs arc. If we start swapping, we
> are dead.
>
> Also, is there much of a performance hit if the host steals back
> free memory, and then gives it back ? We'd assume all memory
> the host gives to the guest is pre-bzero'ed so the FreeBSD wouldn't
> need to also bzero it.
>
> Paul.
More information about the freebsd-stable
mailing list