Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Feb 2005 10:30:26 GMT
From:      "Devon H. O'Dell" <dodell@sitetronics.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/77353: grow SysV IPC kernel limits
Message-ID:  <200502111030.j1BAUQRl087015@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/77353; it has been noted by GNATS.

From: "Devon H. O'Dell" <dodell@sitetronics.com>
To: Robert Millan <rmh@debian.org>
Cc: FreeBSD-gnats-submit@FreeBSD.org
Subject: Re: kern/77353: grow SysV IPC kernel limits
Date: Fri, 11 Feb 2005 11:21:54 +0100

 On Thu, 2005-02-10 at 18:43 +0100, Robert Millan wrote:
 > >Number:         77353
 > >Category:       kern
 > >Synopsis:       grow SysV IPC kernel limits
 > >Confidential:   no
 > >Severity:       non-critical
 > >Priority:       medium
 > >Responsible:    freebsd-bugs
 > >State:          open
 > >Quarter:        
 > >Keywords:       
 > >Date-Required:
 > >Class:          sw-bug
 > >Submitter-Id:   current-users
 > >Arrival-Date:   Thu Feb 10 17:50:14 GMT 2005
 > >Closed-Date:
 > >Last-Modified:
 > >Originator:     Robert Millan
 > >Release:        GNU/kFreeBSD 5.3-3 i686
 > >Organization:
 > Debian
 > >Environment:
 > System: GNU/kFreeBSD aragorn 5.3-3 #0: Thu Feb 10 15:39:57 CET 2005 i686 GNU/KFreeBSD
 > 
 > postgresql documentation encourages to grow SysV IPC limits on *BSD systems.
 > 
 > I have verified that the GENERIC limits on SysV IPC are too low to be able to
 > run postgresql.  Please adjust them as the documentation recommends:
 > 
 > <quote>
 >     The options SYSVSHM and SYSVSEM need to be enabled when the kernel is compil
 > ed. (They are by default.) The maximum size of shared memory is determined by th
 > e option SHMMAXPGS (in pages). The following shows an example of how to set the
 > various parameters:
 > 
 > options         SYSVSHM
 > options         SHMMAXPGS=4096
 > options         SHMSEG=256
 > 
 > options         SYSVSEM
 > options         SEMMNI=256
 > options         SEMMNS=512
 > options         SEMMNU=256
 > options         SEMMAP=256
 > 
 >     (On NetBSD and OpenBSD the key word is actually option singular.)
 > 
 >     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. 
 > </quote>
 > 
 > 	
 > >Description:
 > 	
 > >How-To-Repeat:
 > 	
 > >Fix:
 > 
 > --- src/sys/i386/conf/GENERIC~  2005-02-01 21:44:25.000000000 +0100
 > +++ src/sys/i386/conf/GENERIC   2005-02-01 21:47:12.000000000 +0100
 > @@ -49,8 +49,14 @@
 >  options        SCSI_DELAY=15000        # Delay (in ms) before probing SCSI
 >  options        KTRACE                  # ktrace(1) support
 >  options        SYSVSHM                 # SYSV-style shared memory
 > +options         SHMMAXPGS=4096
 > +options         SHMSEG=256
 >  options        SYSVMSG                 # SYSV-style message queues
 >  options        SYSVSEM                 # SYSV-style semaphores
 > +options         SEMMNI=256
 > +options         SEMMNS=512
 > +options         SEMMNU=256
 > +options         SEMMAP=256
 >  options        _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extension
 > s
 >  options        KBD_INSTALL_CDEV        # install a CDEV entry in /dev
 >  options        AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
 > >Release-Note:
 > >Audit-Trail:
 > >Unformatted:
 > _______________________________________________
 > freebsd-bugs@freebsd.org mailing list
 > http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 > To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 
 If I'm not mistaken, these can be set as sysctls. Take a look at the
 kern.ipc MIB.
 
 --Devon
 



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