Skip to main content.

2003-Nov-14

I read that ogle may fail with:
*ctrl: get_buffer, shmget failed: Cannot allocate memory

The suggested fix is to build new kernel with: options SHMMAXPGS=32768

options(4) says: "Sets the maximum number of AT&T System V UNIX style shared memory pages that are available through the shmget(2) system call."

"ipcs -M" reports:

shminfo:
shmmax: 8388608 (max shared memory segment size)
...
This 8388608 is the default SHMMAXPGS times 4096 bytes per page. The default SHMMAXPGS is in /usr/include/machine/vmparam.h and the bytes per page can be displayed with "vmstat -s".

No sysctl to change SHMMAXPGS.