Managing the cache size and cache storage

Resolver cache information is maintained in 64-bit private storage in the resolver address space, which is also referred to as the storage above the 2 GB bar. This means that caching does not impact common storage.

The default maximum size of the cache is 200 megabytes. The size is allocated incrementally, as the cache increases. For planning purposes, assume that 1 megabyte of storage holds between 400 and 450 cache entries. The actual number of cache entries depends on the amount of storage used for cache infrastructure control blocks, which varies depending on the number of name servers and the number of entries. If you want to control the maximum size of the cache instead of using the 200 megabyte default, you can use the CACHESIZE resolver setup statement. The CACHESIZE statement specifies the maximum amount of storage, in megabytes, that can be allocated by the resolver to manage cached records. The CACHESIZE statement is also used to determine the upper limit of storage that can be used for negative cache entries. If you use the default CACHESIZE value of 200M, then no more than 40 megabytes of that storage will be used for negative cache entries.

The resolver does not automatically delete expired records (those records whose TTL value has been exceeded). Regardless of the amount of cache storage that is in use, the resolver deletes expired records if a new request is received for the expired resource. The resolver also deletes expired records when your cache storage usage has reached the following levels, and takes additional actions to reduce your storage usage.