I suggesto to read the section called "The Role of Physical Memory" in file /usr/share/doc/mem_mgt.txt
Lockable Memory
---------------
Pages kept in memory for the lifetime of a process by means of a system
call (such as mlock, plock, or shmctl) are termed lockable memory.
Locked memory cannot be paged and processes with locked memory
cannot be deactivated. Typically, locked memory holds frequently
accessed programs or data structures, such as critical sections of
application code. Keeping them memory-resident improves application
performance.
The lockable_mem variable tracks how much memory can be locked.
Available memory is a portion of physical memory, minus the amount of
space required for the kernel and its data structures. The initial value of
lockable_mem is the available memory on the system after boot-up,
minus the value of the system parameter, unlockable_mem.
The value of lockable memory depends on several factors:
* The size of the kernel varies, depending on the number of interface
cards, users, and values of the tunable parameters.
* Available memory varies from system to system.
* The system parameter unlockable_mem is a kernel tunable
parameter. Changing the value of unlockable_mem alters the
default value of lockable_mem also.
HP-UX places no explicit limits on the amount of available memory you
may lock down; instead, HP-UX restricts how much memory cannot be
locked.
Other kernel resources that use memory (such as the dynamic buffer
cache) can cause changes.
* As memory is used, the amount of memory that can be locked
decreases.
* As memory is freed up, the amount of memory that can be locked
increases.
As the amount of memory that has been locked down increases, existing
processes compete for a smaller and smaller pool of usuable memory. If
the number of pages in this remaining pool of memory falls below the
paging threshold called lotsfree, the system will activates its paging
mechanism, by scheduling vhand in an attempt to keep a reasonable
amount of memory free for general system use.
Care must be taken to allow sufficient space for processes to make
forward progress; otherwise, the system is forced into paging and
deactivating processes constantly, to keep a reasonable amount of
memory free.