Date: Thu, 13 Dec 2001 09:06:19 -0600 From: Joe Koenig <joe@jwebmedia.com> To: Michael Imamura <gte255n@prism.gatech.edu> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: shmmax? Message-ID: <3C18C3EC.581AD09A@jwebmedia.com> References: <Pine.SOL.4.21.0112131443180.9407-100000@acmex.gatech.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Mike, Thanks for the info. 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! Joe Michael Imamura wrote: > > On Thu, 13 Dec 2001, Joe Koenig wrote: > > I was reading over an article about optimizing PostgreSQL. The article > > is specific to RedHat Linux 7.1, and refers to the amount of shmmax (max > > shared memory). Is there a similiar setting for FreeBSD? Thanks, > > This can be adjusted in the kernel config; here are the appropriate lines > out of LINT: > > options SYSVSHM # include support for shared memory > options SHMMAXPGS=1025 # max amount of shared memory pages (4k on i386) > options SHMALL=1025 # max amount of shared memory (bytes) > options SHMMAX="(SHMMAXPGS*PAGE_SIZE+1)" > # max shared memory segment size (bytes) > options SHMMIN=2 # min shared memory segment size (bytes) > options SHMMNI=33 # max number of shared memory identifiers > options SHMSEG=9 # max shared memory segments per process > > Adjusting SHMMAXPGS and SHMALL seem to be the way to go; I've avoided > touching the other settings. > > - Michael Imamura zoogie@lugatgt.org > LUG@GT Web Guy http://www.lugatgt.org/ 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?3C18C3EC.581AD09A>