Information
This article provides information about write cache in Provisioning Services (PVS) server.
In PVS, the term “write cache” is used to describe all the cache modes. The write cache includes data written by
the target device. If data is written to the PVS server vDisk in a caching mode, the data is not written back to the
base vDisk. Instead, it is written to a write cache file in one of the following locations:
When the target device is booted, write cache information is checked to determine the presence of the cache
file. If the cache file is not present, the data is then read from the original vDisk file.
All current versions of PVS have the option for distributing write cache. It is called Multiple Write Cache
Paths. The multiple write cache paths (for a store) option provides the capability of distributing the write cache
files across multiple physical media. This feature helps to improve I/O throughput for heavily loaded servers.
When a target device starts the server chooses one of the write cache paths from the list based on the MAC
address of the client. The goal of selecting a path based on the MAC address is to get an even distribution of the
clients across the available paths. The algorithm selects the same path for a given client each time that client is
booted.
This functionality is needed to ensure that during a High Availability (HA) failover the new server would
choose the same write cache for the client (otherwise it would not be able to find the write cache file and the
client would hang). If the defined write cache path is not available to a server, the server falls back to the
standard vDisk path.
It is not recommended for the Cache on the server to be used in production environments.
Requirements
Requirement
The cache is stored in client RAM (memory). The maximum size of the cache is fixed by a setting in vDisk
properties. All written data can be read from local RAM instead of going back to the server. RAM cache is
faster than cache on server and works in a HA environment.
Note: If more different sectors are written than the size of the cache, the device stops.
Requirement
When RAM is zero, the target device write cache is only written to the local disk. When RAM is not zero, the
target device write cache is written to RAM first. When RAM is full, the least recently used block of data is
written to the local Write Cache disk to accommodate newer data on RAM. The amount of RAM specified is
the non-paged kernel memory that the target device consumes.
Cache on Server
Requirements
Server cache is stored in a file on the server, or on a share, SAN, or other location. The file size grows, as
needed, but never gets larger than the original vDisk, and frequently not larger than the free space on the
original vDisk. It is slower than RAM cache because all reads/writes have to go to the server and be read from a
file. The cache gets deleted when the device reboots, that is, on every boot the device reverts to the base image.
Changes remain only during a single boot session. Server cache works in a HA environment if all server cache
locations to resolve to the same physical storage location. This case type is not recommended for a production
environment.
Additional Resources
Turbo Charging your IOPS with the new PVS Cache in RAM with Disk Overflow Feature