В linux: echo 134217728 >/proc/sys/kernel/shmall echo 134217728 >/proc/sys/kernel/shmmax В конфиге ядра FreeBSD: options SYSVSHM options SHMMAXPGS=4096 options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)" options SHMMIN=2 options SHMMNI=256 options SHMSEG=256 options SYSVSEM options SEMMAP=512 options SEMMNI=512 options SEMMNS=1024 options SEMMNU=512 options SEMMSL=256 options SEMOPM=256 options SEMUME=64 options SYSVMSG options MSGMNB=8192 options MSGMNI=256 options MSGSEG=8192 options MSGSSZ=16 options MSGTQL=128 options NMBCLUSTERS=16786 options NBUF=2048 maxusers 512