Configuring memory for caches

Memory is the most important consideration when you are configuring Adaptive Server. Memory is consumed by various configuration parameters, the procedure cache, statement cache, and data caches. Setting the values of the various configuration parameters and the caches correctly is critical for good system performance.

The total memory allocated during system start-up is the sum of memory required for all the configuration needs of Adaptive Server. This value can be obtained from the read-only configuration parameter total logical memory. This value is calculated by Adaptive Server. The configuration parameter max memory must be greater than or equal to total logical memory. max memory indicates the amount of memory you will allow for Adaptive Server needs.

During server start-up, by default, Adaptive Server allocates memory based on the value of total logical memory. However, if the configuration parameter allocate max shared memory has been set, then the memory allocated will be based on the value of max memory. The configuration parameter allocate max shared memory enables a system administrator to allocate the maximum memory that is allowed to be used by Adaptive Server, during server start-up.

The key points for memory configuration are:

What remains after all other memory needs have been met is available for the procedure and statement cache, and the data cache. Figure 3-5 shows how memory is divided.

Figure 3-5: How ASE Replicator uses memory

Image shows a vertical view of how ASE Replicator uses memory. Starting from the bottom the levels are: Total physical memory, data cache, data cache overhead, procedures cache, statement cache, Kernel and server structures, static overhead, Adaptive Server executable, and OS and other programs.