[Fwd: Re: [DOCS] Instructions for FreeBSD ipc config showing age]
[Fwd: Re: [DOCS] Instructions for FreeBSD ipc config showing age]
От:
Mark Kirkwood <markir@coretech.co.nz>
Дата:
As discussed on -docs.
(Not really sure if I need to explicitly forward here....)
regards
Mark
Tom Lane wrote:
>
>
> This seems a bit awkwardly phrased:
>
>
>>+
>>+ Versions before 4.0 will require a kernel rebuild, see the
>>+ NetBSD</> and >+ class="osname">OpenBSD</> instructions above, however the key word is
>>+ options (plural) in this case.
>>
>
>
> Perhaps
>
> FreeBSD versions before 4.0 work like NetBSD and OpenBSD (see above),
> except that the configuration file uses the key word "options"
> instead of "option".
>
Yeah - much nicer.
> Also, alphabetization would suggest putting the FreeBSD entry before the
> other two, not after, so maybe that should be "see below".
Thanks - had not considered that!
Amended patch attached.
regards
Mark
--- runtime.sgml.orig Sat Jan 29 18:30:50 2005
+++ runtime.sgml Tue Feb 1 14:25:53 2005
@@ -4351,9 +4351,51 @@
FreeBSD</>
+ FreeBSD</>IPC configuration</></>
+
+
+ The default settings are only suitable for small installations
+ (default SHMMAX is 32 MB). Changes can be made via
+ the sysctl or loader interfaces.
+ Firstly the ones that are settable using sysctl:
+
+$ systcl -w kern.ipc.shmall=32768
+$ systcl -w kern.ipc.shmmax=134217728
+$ systcl -w kern.ipc.semmap=256
+
+ These to be saved between reboots in /etc/sysctl.conf.
+
+
+ The remaining sempahore settings are read only as far as
+ sysctl is concerned, but can be changed before boot
+ using the loader prompt:
+
+(loader) set kern.ipc.semmni=256
+(loader) set kern.ipc.semmns=512
+(loader) set kern.ipc.semmnu=256
+
+ Similarly these can be saved between reboots in
+ /boot/loader.conf.
+
+
+ You might also want to configure your kernel to lock shared
+ memory into RAM and prevent it from being paged out to swap.
+ Use the sysctl</> setting
+ kern.ipc.shm_use_phys</>.
+
+
+ FreeBSD</> versions before 4.0 work like
+ NetBSD</> and
+ OpenBSD</> (see below), except that the configuration file uses the
+ key word "options" instead of "option".
+
+
+
+
+
+
NetBSD</>
OpenBSD</>
- FreeBSD</>IPC configuration</></>
NetBSD</>IPC configuration</></>
OpenBSD</>IPC configuration</></>
@@ -4364,19 +4406,16 @@
the option SHMMAXPGS</> (in pages). The following
shows an example of how to set the various parameters:
-options SYSVSHM
-options SHMMAXPGS=4096
-options SHMSEG=256
+option SYSVSHM
+option SHMMAXPGS=4096
+option SHMSEG=256
-options SYSVSEM
-options SEMMNI=256
-options SEMMNS=512
-options SEMMNU=256
-options SEMMAP=256
+option SYSVSEM
+option SEMMNI=256
+option SEMMNS=512
+option SEMMNU=256
+option SEMMAP=256
- (On NetBSD</> and OpenBSD</> the key word is actually
- option singular.)
You might also want to configure your kernel to lock shared
---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings
Re: [Fwd: Re: [DOCS] Instructions for FreeBSD ipc config
От:
Neil Conway <neilc@samurai.com>
Дата:
Applied, thanks. On Wed, 2005-02-02 at 17:33 +1300, Mark Kirkwood wrote: > As discussed on -docs. > (Not really sure if I need to explicitly forward here....) Yeah, forwarding (or CC'ing) to -patches is helpful. -Neil
Re: [Fwd: Re: [DOCS] Instructions for FreeBSD ipc config showing
От:
Bruce Momjian <pgman@candle.pha.pa.us>
Дата:
Applied by Neil. Thanks. --------------------------------------------------------------------------- Mark Kirkwood wrote: > As discussed on -docs. > (Not really sure if I need to explicitly forward here....) > > regards > > Mark > -- Start of included mail From: Mark Kirkwood > Date: Tue, 01 Feb 2005 14:29:39 +1300 > To: Tom Lane > cc: pgsql-docs@postgresql.org > Subject: Re: [DOCS] Instructions for FreeBSD ipc config showing age > Tom Lane wrote: > > > > > > This seems a bit awkwardly phrased: > > > > > >>+ > >>+ Versions before 4.0 will require a kernel rebuild, see the > >>+ NetBSD</> and >>+ class="osname">OpenBSD</> instructions above, however the key word is > >>+ options (plural) in this case. > >> > > > > > > Perhaps > > > > FreeBSD versions before 4.0 work like NetBSD and OpenBSD (see above), > > except that the configuration file uses the key word "options" > > instead of "option". > > > Yeah - much nicer. > > Also, alphabetization would suggest putting the FreeBSD entry before the > > other two, not after, so maybe that should be "see below". > Thanks - had not considered that! > > Amended patch attached. > > regards > > Mark > > --- runtime.sgml.orig Sat Jan 29 18:30:50 2005 > +++ runtime.sgml Tue Feb 1 14:25:53 2005 > @@ -4351,9 +4351,51 @@ > > > FreeBSD</> > + FreeBSD</>IPC configuration</></> > + > + > + The default settings are only suitable for small installations > + (default SHMMAX is 32 MB). Changes can be made via > + the sysctl or loader interfaces. > + Firstly the ones that are settable using sysctl: > + > +$ systcl -w kern.ipc.shmall=32768 > +$ systcl -w kern.ipc.shmmax=134217728 > +$ systcl -w kern.ipc.semmap=256 > + > + These to be saved between reboots in /etc/sysctl.conf. > + > + > + The remaining sempahore settings are read only as far as > + sysctl is concerned, but can be changed before boot > + using the loader prompt: > + > +(loader) set kern.ipc.semmni=256 > +(loader) set kern.ipc.semmns=512 > +(loader) set kern.ipc.semmnu=256 > + > + Similarly these can be saved between reboots in > + /boot/loader.conf. > + > + > + You might also want to configure your kernel to lock shared > + memory into RAM and prevent it from being paged out to swap. > + Use the sysctl</> setting > + kern.ipc.shm_use_phys</>. > + > + > + FreeBSD</> versions before 4.0 work like > + NetBSD</> and > + OpenBSD</> (see below), except that the configuration file uses the > + key word "options" instead of "option". > + > + > + > + > + > + > NetBSD</> > OpenBSD</> > - FreeBSD</>IPC configuration</></> > NetBSD</>IPC configuration</></> > OpenBSD</>IPC configuration</></> > > @@ -4364,19 +4406,16 @@ > the option SHMMAXPGS</> (in pages). The following > shows an example of how to set the various parameters: > > -options SYSVSHM > -options SHMMAXPGS=4096 > -options SHMSEG=256 > +option SYSVSHM > +option SHMMAXPGS=4096 > +option SHMSEG=256 > > -options SYSVSEM > -options SEMMNI=256 > -options SEMMNS=512 > -options SEMMNU=256 > -options SEMMAP=256 > +option SYSVSEM > +option SEMMNI=256 > +option SEMMNS=512 > +option SEMMNU=256 > +option SEMMAP=256 > > - (On NetBSD</> and - class="osname">OpenBSD</> the key word is actually > - option singular.) > > > You might also want to configure your kernel to lock shared > > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings -- End of included mail. > > ---------------------------(end of broadcast)--------------------------- > TIP 9: the planner will ignore your desire to choose an index scan if your > joining column's datatypes do not match -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073