From owner-freebsd-questions Thu Dec 13 7:38:21 2001 Delivered-To: freebsd-questions@freebsd.org Received: from pcwin002.win.tue.nl (pcwin002.win.tue.nl [131.155.71.72]) by hub.freebsd.org (Postfix) with ESMTP id 33C5537B41B for ; Thu, 13 Dec 2001 07:38:18 -0800 (PST) Received: (from stijn@localhost) by pcwin002.win.tue.nl (8.11.6/8.11.4) id fBDFcD977381; Thu, 13 Dec 2001 16:38:13 +0100 (CET) (envelope-from stijn) Date: Thu, 13 Dec 2001 16:38:13 +0100 From: Stijn Hoop To: Joe Koenig Cc: Michael Imamura , freebsd-questions@freebsd.org Subject: Re: shmmax? Message-ID: <20011213163813.D68324@pcwin002.win.tue.nl> References: <3C18C3EC.581AD09A@jwebmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3C18C3EC.581AD09A@jwebmedia.com>; from joe@jwebmedia.com on Thu, Dec 13, 2001 at 09:06:19AM -0600 X-Bright-Idea: Let's abolish HTML mail! Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Dec 13, 2001 at 09:06:19AM -0600, Joe Koenig wrote: > I checked my LINT file and I've got the same SHMALL=1025. Doesn't that > seem awefully small? My system as 1G of RAM and the article on > optimizing postgresql recommended 128M for a system with 512M total. Any > idea on a reasonable setting for SHMMAXPGS. Also, does the kernel need > to be re-built and installed after changing this file, or will a reboot > do the trick? I was reading about creating a custom kernel and in there > is the option to use or not use shared memory, but nothing about the > LINT file was ever mentioned. I didn't know if those values got built > into the kernel on a make, or if they were read in at reboot. Any > information is appreciated. Thanks! You can check on your defaults with sysctl: [stijn@pcwin002] <~> sysctl -a | grep shm kern.ipc.shmmax: 33554432 kern.ipc.shmmin: 1 kern.ipc.shmmni: 192 kern.ipc.shmseg: 128 kern.ipc.shmall: 8192 kern.ipc.shm_use_phys: 0 You can change them at runtime using sysctl -w: [stijn@pcwin002] <~> sudo sysctl -w kern.ipc.shmmin=1 kern.ipc.shmmin: 1 -> 1 I'm not sure if all these values can be tuned however. Put changes in /etc/sysctl.conf to keep them permanent. HTH, --Stijn -- "Linux has many different distributions, meaning that you can probably find one that is exactly what you want (I even found one that looked like a Unix system)." -- Mike Meyer, freebsd-questions@freebsd.org, in message <15252.28617.61423.224978@guru.mired.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message