From owner-freebsd-questions Wed Sep 6 7:48:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from css-1.cs.iastate.edu (css-1.cs.iastate.edu [129.186.3.24]) by hub.freebsd.org (Postfix) with ESMTP id 17EF737B422 for ; Wed, 6 Sep 2000 07:48:51 -0700 (PDT) Received: from popeye.cs.iastate.edu (ghelmer@popeye.cs.iastate.edu [129.186.3.4]) by css-1.cs.iastate.edu (8.9.0/8.9.0) with ESMTP id JAA00393; Wed, 6 Sep 2000 09:48:50 -0500 (CDT) Received: from localhost (ghelmer@localhost) by popeye.cs.iastate.edu (8.9.0/8.9.0) with ESMTP id JAA12928; Wed, 6 Sep 2000 09:48:48 -0500 (CDT) X-Authentication-Warning: popeye.cs.iastate.edu: ghelmer owned process doing -bs Date: Wed, 6 Sep 2000 09:48:48 -0500 (CDT) From: Guy Helmer To: "Paul J. Dolan" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Increasing Shared Memory in 4.1 kernel In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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