You must explicitly configure the size of the default data cache.
Use sp_helpcache to see the amount of memory remaining that can be used for the cache.
sp_helpcache
Cache Name Config Size Run Size Overhead ----------------------- ------------- ---------- ---------- default data cache 50.00 Mb 50.00 Mb 3.65 Mb pubs_cache 10.00 Mb 10.00 Mb 0.77 Mb Memory Available For Memory Configured Named Caches To Named Caches -------------------- ---------------- 91.26 Mb 91.25 Mb ------------------ Cache Binding Information: ------------------ Cache Name Entity Name Type Index Name Status ---------- ----------- ----- --------- ------
sp_cacheconfig "default data cache", "25M"
sp_cacheconfig
Cache Name Status Type Config Value Run Value ------------------------- --------- -------- ------------ ------------ default data cache Active Default 25.00 Mb 50.00 Mb pubs_cache Active Mixed 10.00 Mb 10.00 Mb ------------ ------------ Total 10.00 Mb 60.00 Mb ====================================================================== Cache: default data cache, Status: Active, Type: Default Config Size: 25.00 Mb, Run Size: 50.00 Mb Config Replacement: strict LRU, Run Replacement: strict LRU Config Partition: 1, Run Partition: 1 IO Size Wash Size Config Size Run Size APF Percent -------- --------- ------------ ------------ ----------- 2 Kb 10110 Kb 00.00 Mb 50.00 Mb 10 ====================================================================== Cache: pubs_cache, Status: Active, Type: Mixed Config Size: 10.00 Mb, Run Size: 10.00 Mb Config Replacement: strict LRU, Run Replacement: strict LRU Config Partition: 1, Run Partition: 1 IO Size Wash Size Config Size Run Size APF Percent -------- --------- ------------ ------------ ----------- 2 Kb 2048 Kb 0.00 Mb 10.00 Mb 10
Use sp_cacheconfig to change the size of any named cache. Any changes you make to the size of any data cache do not affect the size of any other cache. Similarly, once you specify the size of the default data cache, the configuration of other user-defined caches does not alter the size of the default data cache.
Explicitly configure the default data cache and all user-defined caches with an absolute value. In addition, many configuration parameters use memory. To maximize performance and avoid errors, set the value of max memory to a level high enough to accommodate all caches and all configuration parameters that use memory.
SAP ASE issues a warning message if you set max memory to a value less than total logical memory.