Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


August 03, 2009

Q. How long does it take for VMware Transparent Page Sharing (TPS) to find all duplicate pages of memory for a virtual machine (VM)?

RSS
Subscribe to Windows IT Pro | See More Performance Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

A. TPS, used by VMware, works by creating a hash table that has a hash value for each page (4KB) of memory. If identical hashes are found, a bit for bit comparison is performed to ensure they really are identical. More on this process is available in a previous FAQ. Obviously, these comparisons take CPU and resources, so by default the duplicate detection is performed over a period of 60 minutes, as you can see below. The first image is for an ESX server with only a single VM running. As discussed in the linked FAQ, TPS still saves memory for a single VM, because even with shared libraries it's very common for the same DLL and other components to be loaded multiple times. As you can see, over one hour the duplicate memory is found and the system saves about 21MB of memory for an empty Windows 2008 64-bit VM.

Click to expand.

In the next picture, I start a second VM running the same version (and architecture) of the OS. Once again, you can see the duplicate memory is found over the period of an hour, and now you see much bigger memory savings, nearly 200MB out of a total memory footprint of about 450MB for a each VM.

Click to expand.

Once all the memory has been checked over the course of an hour, the cycle of checking for duplicate memory begins again. You can modify how long ESX takes to scan the entire memory of a VM, maximum number of scanned pages, and other settings through ESX's Advanced memory settings (Select the Server - Configuration tab - Advanced Settings under Software) as shown below. The default time for a scan is 60 minutes, and you shouldn't change these settings without extensive testing to make sure there's no negative impact on performance.

Click to expand.

Related Reading:

Check out hundreds more useful Q&As like this in John Savill's FAQ for Windows. Also, watch instructional videos made by John at ITTV.net.

End of Article



Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...

Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...


Virtualization Whitepapers A Business Case for Backup & Recovery for The Virtualized Environment

Related Events VirtualizationPro 2010 Summit & Expo

Deep Dive into VMware vSphere

RUUP4IT? R2 Takes You Vertical and Virtual

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement