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
Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...

Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Getting your iPhone to Sync with Exchange 2003

Follow these steps to use an iPhone with Exchange. ...


Windows OSs Whitepapers Protecting Microsoft SharePoint

Related Events VirtualizationPro 2010 Summit & Expo

SQL Server Virtualization for Performance and Security

Reduce Fax Costs by Virtualization

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.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement