NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: setting shmseg?



On 5/1/12 1:38 PM, gary%duzan.org@localhost wrote:
=>  I am writing an application which makes heavy use of threads and shared
=>  memory. It seems I am hitting the shmseg limit for max shared memory
=>  segments per process.
=>  `ipcs -T` tells me that this is currently set to
=>       shmseg:     128 (max shared memory segments per process)
=>  Is this changeable in some way or is it hardcoded in the kernel
=>  someplace (thus necessitating a kernel recompile :( ) ?
=>  If it is changeable than how?

    It is a sysctl. Try:

sysctl -w kern.ipc.shmseg=4096

    Larger values are possible; I haven't checked for a hard limit. You can
add it to /etc/sysctl.conf to have it set at boot time.

Awesome! That did the trick. Thanks for information!




Home | Main Index | Thread Index | Old Index