Caché Parameter File Reference
memlock
[Home] [Back] [Next]
InterSystems: The power behind what matters   
Class Reference   
Search:    

Enable/disable locking shared memory or the text segment into memory.
Synopsis
[config]    memlock=n
At startup, Caché allows a shared memory segment to use for control structure, global buffers, routine buffers, and generic memory heap. the memlock parameter offers detailed control over how that allocation occurs.
This flag controls how Caché allocates shares memory. This parameter is a set of bit flags that control the shared memory setting.
Description
When the value of this parameter is set to 0 (the default), Caché attempts to allocated shared memory from large pages on platforms that support large pages (Windows, Linux, and AIX). If large pages are not available, or are insufficient for the configured shared memory size, then shared memory is allocated in standard (small) pages. If memory can still not be allocated, startup repeatedly tries with standard pages, reducing the global buffer, routine buffers, and generic memory heap (sometimes referred to as shared memory heap), until it succeeds. When shared memory is allocated in standard pages, no attempt is made to lock those pages into physical memory. Large pages are automatically locked in physical memory at the operating system level.
The following bit flags modify behavior as described below:
Management Portal
On the page System Administration > Configuration > Additional Settings > Advanced Memory, in each of the following rows, select Edit and choose a value: