Is it possible to "write an event" to a log file each time the ESX server does anything with Transparent Page Sharing?
Maybe with SDK.
Bit using VC or standard CLI I think is not possible.
Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers
Why the heck would you do (need) that?! And no, this is not possible.
Using esxtop you can only see some basic TPS metrics, such as the amount of shared and saved memory.
ESX is constantly scanning for shared pages through your VMs (configured by an advanced parameter called Mem.ShareScanGHz). Depending on the activity on your system and how much detail you need, if you really would log all TPS "events", it would instantly grow to a huge size.
Note that page sharing only affects normal small 4KB pages, and not 64KB large pages in 64bit OSes. If you want to disable TPS completely for the host, set Mem.ShareScanGHz to 0.
But I still have no idea why you would need that anyways. Can you give us a reason that made you consider doing something like that?
You can also use performance Tab.
Maybe there are some data also in a table of VC DB. But I do not know where.
Andre
**if you found this or any other answer useful please consider allocating points for helpful or correct answers
Large Pages are 2MB bythe way and not 64KB... And you are correct. TPS doesn't touch Large pages, unless the memory is overcommitted. If this is the case the large pages will be broken into small pages and deduped by tps again.
Duncan
VMware Communities User Moderator | VCP | VCDX
-
If you find this information useful, please award points for "correct" or "helpful".