Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Sep 2008 11:06:35 +0300
From:      "Artis Caune" <artis.caune@gmail.com>
To:        jordi@cdmon.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: semget: no space left on freebsd 6.2
Message-ID:  <9e20d71e0809230106y30bd4ba0o51b814cae07f4955@mail.gmail.com>
In-Reply-To: <48D89A12.1010608@cdmon.com>
References:  <48D89A12.1010608@cdmon.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Sep 23, 2008 at 10:26 AM, Jordi Moles Blanco <jordi@cdmon.com> wrote:
> Also try adding this options on FreeBSD kernel config:
> options         SEMMNI=20
> options         SEMMNS=120
>
> And set the kern.maxfiles sysctl option higher than 1000.
>
> *********************
>
> it didn't work either.

Hi,

you don't have to recompile the kernel to change those, just add them
in /boot/loader.conf:
    kern.ipc.semmni="256"
    kern.ipc.semmns="512"
    kern.ipc.semmnu="256"

You should also add these lines to /etc/sysctl.conf:
    kern.ipc.shmmax=536870912
and/or also:
    kern.ipc.semmap=256
    kern.ipc.shm_use_phys=1
    kern.ipc.shmall=131072
depending on how much memory you have and how mush shared memory modules need.





-- 
regards,
Artis Caune

<----. CCNA
<----|====================
<----' didii FreeBSD



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9e20d71e0809230106y30bd4ba0o51b814cae07f4955>