clip_image002

There has long been a debate about how to accurately view the size of your Citrix Provisioning Services ram cache size. SO much so that even Citrix clarified on how to view this detail using yet another tool

The thing is, this is all fine and well, but it’s a bit of a pig to actually get this data when you need it, or in an automated way. Wouldn’t it be better if we could have something easier?

Lately, Andrew Morgan and I decided to sit down and create an easy to use, Windows performance counter for the key metrics in a PVS cache and provide them to the community for use.

These counters turned out to be fascinating, as they really show how the cache works.

Our latest counters (which can be downloaded below) provide the following counters for easy access:

Performance Monitor

  • PVS Ram cache size (MB)
  • PVS metadata size (MB)
  • PVS Write Cache VHD disk size (MB)
  • PVS Ram Cache Percent used. *

  • * As there is no accurate way to detect how much ram is assigned to cache via Citrix Provisioning services, this value must be provided or this performance counter is missing.


    The end result, is a simple MSI. Install this MSI on your PVS target golden image and when the image is in “Cache in RAM, overflow to disk” the performance counters will appear in perfmon as below:

Performance Counters for Citrix PVS RAM Cache

The Service on start-up will check the cache type and if correct, the counters will be created an update every 500 MS. On service stop, the counters will be deleted. Simple stuff.

These counters are available in library form, should you wish to implement these counters in your own monitoring solution. Please reach out directly If you would like them.

In order for the “PVS RAM Cache Percent Used %” to appear. You must define the following registry value:

HKEY_LOCAL_MACHINE\SOFTWARE\PVSCOUNTER

HKEY_LOCAL_MACHINE\SOFTWARE\PVSCOUNTER
Type: REG_SZ
Name: CacheSizeMB

Value: e.g. 1024

Download:

You can find a download link here.