Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jul 2002 15:31:19 +0400 (MSD)
From:      Igor Sysoev <is@rambler-co.ru>
To:        Vince Vielhaber <vev@michvhf.com>
Cc:        stable@FreeBSD.ORG
Subject:   Re: [GENERAL] was there a change in FreeBSD SHM implementation from 4.4 to 4.6? (postgres trouble)
Message-ID:  <Pine.BSF.4.21.0207111520431.69242-100000@is>
In-Reply-To: <Pine.BSF.4.40.0207110644130.2134-100000@paprika.michvhf.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 11 Jul 2002, Vince Vielhaber wrote:

> On Thu, 11 Jul 2002, Igor Sysoev wrote:

> > > > > Have you looked at the FreeBSD section here:
> > > > >
> > > > >    http://www.postgresql.org/idocs/index.php?kernel-resources.html
> > > > >
> > > > > Most notably, I had to increase SHMMAXPGS on one of my FreeBSD machines.
> > > > > There doesn't appear to be a sysctl variable for it.
> > > >
> > > > SHMMAXPGS is sysctl kern.ipc.shmmax.
> > >
> > > The kernel config has SHMMAX and SHMMAXPGS.
> >
> > Sorry, I'd meant "SHMMAXPGS is sysctl kern.ipc.shmall".
> 
> Ok, but the kernel config has SHMALL as well.  Is one (or more)
> of the kernel options unused?

The most priority has setting of kern.ipc.shmall.
Next is 'options SHMALL' and next is 'options SHMMAXPGS'.
If you do not define SHMALL then it will be equal to SHMMAXPGS.

And as far as I know you need to set kern.ipc.shmall before any
use of shared memory. You can not change it after use.
The best place for kern.ipc.shmall setting is /etc/sysctl.conf.
Setting in /boot/loader.conf is helpless.

Igor Sysoev
http://sysoev.ru


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0207111520431.69242-100000>