Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 5 Sep 2000 16:06: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.10009051602010.10351-100000@popeye.cs.iastate.edu>
In-Reply-To: <Pine.GSO.4.21.0009051627260.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, 
> 
> 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...

Hope this helps,
Guy

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.10009051602010.10351-100000>