VMware Cloud Community
AkimZ
Contributor
Contributor

Why My Redhat Linuxguest don't swap process

Hi,

We running ESX3.0.1 and we see very strange behaviour of Linux guest

We are running Redhat4 u4 32 Bits on most of our VM. We have seen strange behaviour with some of them.

Ex: We have reserved for one VM 2GB of Mem required by application.

First we saw that some application are using memory page from other VM "Balloon driver".So to avoid this, we set all VM to RES VM = LIMIT on ESX

The problem we have is that Lunix start OOM killer, to go to Panic state from to time to time.Also we saw that guest is not using swap device to free up some mem.

root@server]# free -mt

total used free shared buffers cached

Mem: 2027 2010 7 0 7 135

-/+ buffers/cache: 1497 529

Swap: 2000 0 2000[/b]

Total: 4027 1640 2387

We want to use swap device and avoid balloon driver taking memory from other VM so

Question:

1) We have seen that Balloon driver impact other server, when memory are requested from other VM. We have then decided to Disable Balloon driver, by setting RESV MEM=LIMIT MEM is that correct ?

It look like no, because we have seen vmmemctl driver taking a lot of CPU and have monitored using esxtop the MCTLSZ MCTLTGT MCTLMAX params:

MCTLSZ MCTLTGT MCTLMAX

1317.75 1317.75 1317.75

2) Why Swap device is not used

3) How to disable Balloon driver, without stopping VMTOOLS, because we need it for NTP sync ?

0 Kudos
3 Replies
dclark
Enthusiast
Enthusiast

Hello

We are seeing exaclty the same problem. Have moved a RedHat VM from ESX v2.5 where it was ok to ESX v3.0.1 where it doen not use swap. Did you find a fix?

Many thanks

0 Kudos
rgoto
Hot Shot
Hot Shot

During the installation of VMware Tools, are you given the option to do a "Custom" installation of VMware Tools? If so leave out the vmmemctl driver and then you will not have the Baloon Driver installed.

0 Kudos
RParker
Immortal
Immortal

This doesn't sound like a VM problem, it's sounds like the Linux isn't installed correctly. But as the previous posts suggest, uninstall the tools, and reinstall using custom so it doesn't utilize balooning.

After that the swap inside the guest is purely Linux, not VM. So if you are receiving OOM that's a swap file configuration. We hae a few Linux VM's and no one has complained OOM errors.

0 Kudos