Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Sep 2000 09:48:48 -0500 (CDT)
From:      Guy Helmer <ghelmer@cs.iastate.edu>
To:        "Paul J. Dolan" <pdolan@metalab.unc.edu>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Increasing Shared Memory in 4.1 kernel
Message-ID:  <Pine.HPX.4.05.10009060945230.28496-100000@popeye.cs.iastate.edu>
In-Reply-To: <Pine.GSO.4.21.0009051757160.12715-100000@titan.oit.unc.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 5 Sep 2000, Paul J. Dolan wrote:

> Hi Guy,
> 
> Thanks for the quick response.  Unfortunately,
> I don't see 
>   kern.ipc.shmmax
>   kern.ipc.shmall
> as valid parameters in `man sysctl`
> 
> If they do not show up as available in 
> my sysctl manual are they actually available?

Yes, if "sysctl -w kern.ipc.shmmax=XXX" works, the parameters are
available.  These parameters are apparently just undocumented in the
sysctl man pages.

> Setting these parameters and rebooting produced
> no positive results.

Set the parameters with sysctl but don't reboot.  Or, create an
/etc/sysctl.conf file with the lines I mentioned below, and then reboot.

Hope this helps,
Guy

> On Tue, 5 Sep 2000, Guy Helmer wrote:
> 
> > On Tue, 5 Sep 2000, Paul J. Dolan wrote:
> > 
> > > Hi, 
> > > 
> > > I'm trying to increase the default Shared Memory
> > > Max Segment Size in the 4.1 kernel.  
> > > 
> > > Right now the limit seems to be 4 MB.
> > > Does anyone have notes on how to rebuild
> > > the kernel to allow for up to 64 MB segments?
> > 
> > I've made similar changes without having to rebuild the kernel by changing
> > the sysctl parameters via /etc/sysctl.conf:
> > 
> > kern.ipc.shmmax=67108864
> > kern.ipc.shmall=32768
> > 
> > These particular values for these parameters allow for about 50 megabytes,
> > according to a program that searches for the largest block of shared
> > memory that it can allocate.  Try increasing these values a bit so you can
> > obtain 64MB segments...

Guy Helmer, Ph.D. Candidate, Iowa State University Dept. of Computer Science 
Research Assistant, Dept. of Computer Science   ---   ghelmer@cs.iastate.edu
http://www.cs.iastate.edu/~ghelmer




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




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