NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: setting shmseg?
=> 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.
Gary Duzan
Home |
Main Index |
Thread Index |
Old Index