On Thu, 1 Dec 2005, Zoong PHAM wrote:
> Hi Sean,
>
> On Wednesday, 30 November 2005 at 7:34:59 -0800, Sean Comeau wrote:
> > > How can I fix that?
>
> My real question is "if I increased the number of semaphore, would it
> fix the problem ?"
> Remember the error message I have is:
> [Thu Dec 1 01:51:19 2005] [error] mod_ssl: Parent process could not
> create private SSLMutex semaphore (System error follows)
> [Thu Dec 1 01:51:19 2005] [error] System: No space left on device
> (errno: 28)
>
> If the fix is "increase number of metaphores", then which parameters
> below can I increase?
"Educated" guess:
intro(2): errno 28 == ENOSPC
semop(2): [ENOSPC] SEM_UNDO was requested, and there is not enough space
left in the kernel to store the undo information.
sysctl(3): KERN_SEMINFO_SEMMNU is used to set max number of undo structures.
So you should try kern.seminfo.semmnu.
-Otto
>
>
> > test:~# sysctl kern.seminfo
> > kern.seminfo.semmni=10 # max number of semaphore identifiers (i.e.,
> > sets)
> > kern.seminfo.semmns=60 # max number of semaphores system-wide
> > kern.seminfo.semmnu=30 # i'm not sure...
> > kern.seminfo.semmsl=60 # maximum number of semaphores per set
> > kern.seminfo.semopm=100 # not sure
> > kern.seminfo.semume=10 # never changed this one myself
> > kern.seminfo.semusz=100 # or this
> > kern.seminfo.semvmx=32767 # max value of semaphore, looks good probably
> > kern.seminfo.semaem=16384 # no idea
> >
> > test:~# sysctl kern.shminfo
> > kern.shminfo.shmmax=33554432 # max size of shared memory segment (bytes)
> > kern.shminfo.shmmin=1 # min size of shared memory segment (bytes)
> > kern.shminfo.shmmni=128 # max number of shared memory segments
> > system-wide
> > kern.shminfo.shmseg=128 # max number of shared memory segments per proc
> > kern.shminfo.shmall=8192 # total amount of shared memory available
> > (pages)
> >
> > OK, I assume you know how to use /etc/sysctl.conf to increase these values
>
> I know how to use sysctl(8).
>
> Thanks,
> Zoong