Xen IntelliCache Test
IntelliCache is a XenServer feature that can be used in a XenDesktop deployment to cache temporary and non-persistent operating-system data on the local XenServer host. IntelliCache is available for Machine Creation Services (MCS)-based desktop workloads that use NFS storage.
In a typical XenDesktop configuration (without IntelliCache), desktop VMs read the operating-system data from a master image on a costly shared storage array. When IntelliCache is enabled, a portion of the virtual-machine runtime reads and writes occur on low-cost local storage: XenServer caches the operating-system files on its local hard drive in a Read Cache.
Likewise, when IntelliCache is enabled, each desktop VM writes to its own Write Cache on the local host, preventing writes to shared storage. The read and write caches, if adequately sized and effectively used, can thus go a long way in reducing the load on the remote storage and the amount of network traffic. But, how does an administrator determine whether these caches are sized and used right? This can be achieved using the Xen IntelliCache test. This test continuously tracks the usage of the read and write caches in each of the local storage repositories and reports whether/not the caches are able to service most of the I/O requests to the shared storage, without actually accessing the shared storage! This way, administrators will be able to figure out whether/not the caches effectively serve the purpose they were intended for. In addition, the test also checks and reports the current cache size, so that administrators can judge its adequacy and make changes, if required.
Note:
The performance metrics reported by this test are enabled by default in the XenServer 6.1.0 Performance and Monitoring Supplemental Pack. In XenServer 6.2.0 however, these metrics, though part of the core product, are disabled by default, owing to performance reasons related to XenCenter. This means that, when monitoring XenServer 6.2.0, this test will not report any metrics by default. In such cases, to make sure that the test reports metrics, do the following:
- Login to the XenServer host as root user.
-
Enable the metrics by issuing the following command from the CLI:
xe-enable-all-plugin-metrics true
Target of the test : A XenServer host
Agent deploying the test : An internal/remote agent
Outputs of the test : One set of results for each local SR on the monitored XenServer host
Configurable parameters for the test
Once this is done, you can configure the eG tests with the credentials of a xen user with Read-only privileges. |
Measurement | Description | Measurement Unit | Interpretation |
---|---|---|---|
IntelliCache hits |
Indicates the rate at which the caches on this SR serviced I/O requests. |
Hits/Sec |
A high value is desired for this measure. A low value is indicative of ineffective cache usage, which is typically caused if the cache is unable to serve most I/O requests. This in turn increases the load on the shared storage. |
IntelliCache misses |
Indicates the number of requests per second that the caches on this SR did not service. |
Misses/Sec |
A low value is desired for this measure. A high value is indicative of ineffective cache usage, which is typically caused if the cache is unable to serve most I/O requests. This in turn increases the load on the shared storage. |
IntelliCache hit ratio |
Indicates the percentage of I/O requests that were serviced by the caches on this SR. |
Percent |
A value over 80% for this measure is a sign of a healthy cache. A very low value indicates that the cache was unable to service most of the I/O requests to the SR. One of the common reasons for this is the lack of adequate space in the SR to store cached data. If the caches are not adequately sized, the read cache will not be able to hold frequently-referenced data and the write caches will not be able to accept data written to it. Check the value of the IntelliCache size measure to know how much space has been allocated to the caches on an SR. Should the local storage reach capacity, IntelliCache will transparently “fall back” to shared storage, increasing the processing overheads in the bargain. Forecasting your local disk space requirements helps prevent XenServer from having to fall back to shared storage to handle the IOPS demand. Depending on variables in your environment, like patterns of user activity, you may need to plan more space for your Read Cache size. In addition, your disk‐space requirements could increase any time multiple catalogs are present, such as during an upgrade rollout. For example, if virtual machines use multiple versions of the same catalog, Read Cache space usage will increase proportionately. From a planning perspective, you should assume all of the master image could potentially be stored in the Read Cache. Consequently, if you have multiple catalogs on a host, you should assume that each catalog’s master image could be stored in the Read Cache. For example, if you have two catalogs each with different versions of applications in them, both master images could potentially be stored. Likewise, if you are rolling out an operating system update, you may have two catalogs before users reboot and switch over to the new image. |
IntelliCache size |
Indicates the size of the caches on this SR. |
MB |
|