VMware Cloud Community
LM_Chris
Contributor
Contributor

Transparent Page Sharing and Logging

Is it possible to "write an event" to a log file each time the ESX server does anything with Transparent Page Sharing?

0 Kudos
4 Replies
AndreTheGiant
Immortal
Immortal

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

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
MKguy
Virtuoso
Virtuoso

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?

-- http://alpacapowered.wordpress.com
AndreTheGiant
Immortal
Immortal

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

Andrew | http://about.me/amauro | http://vinfrastructure.it/ | @Andrea_Mauro
0 Kudos
depping
Leadership
Leadership

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

-


Blogging:

Twitter:

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos