shmmni

shmmni specifies system-wide maximum allowable number of shared memory segments (by limiting the number of segment identifiers).

Acceptable Values:

Minimum
3
Maximum
(memory limited)
Default
200 identifiers

Specify integer value. For more information, see Specifying Parameter Values.

Description

shmmni specifies the maximum number of shared memory segments allowed to exist simultaneously, system-wide. Any shmget() system call requesting a new segment when shmni segments already exist returns an error (see HP-UX Reference entry shmget(2)). This parameter defines the number of entries in the shared memory segment identifier list which is stored in non-swappable kernel space. Space allocated for identifiers is shmmni times 104 bytes.

Setting shmmni to an arbitrarily large number wastes memory and can degrade system performance. Setting the value too high on systems with small memory configuration may consume enough memory space that the system cannot boot. Select a value that is as close to actual system requirements as possible for optimum memory usage. A value not exceeding 1024 is recommended unless system requirements dictate otherwise.

Starbase graphics requires that shmmni be set to not less than 4.

Related Parameters

None.

Additional Information: