How much memory to configure

Memory is the most important consideration when you are configuring Adaptive Server. Memory is consumed by various configuration parameters, procedure caches, and data caches. Correctly setting the values of the configuration parameters and the caches is critical to good system performance.

The total memory allocated during start up is the sum of the memory required for all the configuration needs of Adaptive Server. You can obtain this value, which is accumulated by Adaptive Server from the read-only configuration parameter total logical memory. 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 boot-time, 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 is based on the value of max memory. This allows a system administrator to tell Adaptive Server to allocate, at boot-time, the maximum allowed, which may be considerably more than the value of total logical memory at that time.

The key points for memory configuration are:

The System Administration Guide provides a thorough discussion of:

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

Figure 5-1: How Adaptive Server uses memory

Image shows a stack consisting of physical memory and total logical memory. Physical memory consists of total physical memroy, data cache, data cache overhead, procedure cache, kernel and server structures, static overhead, Adaptive Server executable, and the OS. Total logical memory is made of all this except the OS.