7

Is it possible to detect from within a Linux VM that memory is being reclaimed by the memory balloon? I don't think any information about the host is propagated to the VM, so connecting to the host and asking is not an option. I would prefer not to rely on heuristic approach either.

Edit: The reason why I want to know about it from the VM is to raise an alert to the VM's admin, who may not have access to the host, but should nevertheless know about the potential performance degradation.

JohnEye
  • 429

3 Answers3

12

If you have VMware Tools installed inside the VM then you can find this out with

vmware-toolbox-cmd stat balloon

More info here

(And, well, you must have VMware Tools installed, otherwise ballooning won't work)

Sebas
  • 545
VFrontDe
  • 1,518
0

Can't you just see how much vmmemsty.sys is using?

Chopper3
  • 101,808
0

I'm not sure if it matters if a specific VM is ballooning if you're not willing to view it from the host/cluster/vCenter level. Otherwise, how would you "unballoon" the memory?

See: "Unballooning" RAM that's been ballooned by VMware

ewwhite
  • 201,205