From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Vivek Khera <khera@kcilink.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Tunning FreeeBSD and PostgreSQL
Date: Mon, 21 Jul 2003 16:41:37 -0400 (EDT)
Message-ID: <200307212041.h6LKfbi14090@candle.pha.pa.us> (raw)
In-Reply-To: <x7d6gbyc22.fsf@yertle.int.kciLink.com>
Vivek Khera wrote:
> >>>>> "SH" == Stephen Howie <showie@centwire.com> writes:
>
> SH> Richard-
> SH> That was very helpfull Thanks!
> SH> I still would like some guidance on tunning FreeBSD (shmmax and shmmaxpgs).
> SH> Do I need to even touch these settings?
>
> Here's what I use on FreeBSD 4.7/4.8. The kernel settings don't hurt
> anything being too large for the SHM values, since they are limits,
> not anything pre-allocated (from my understanding). These settings
> allow for up to 100,000 shared buffers (I currently only use 30,000
> buffers)
I think the only downside to making them too big is that you allocate
page tables and prevent that address range from being used by other
processes. Of course, if you have much less than 4 gigs of RAM in the
machine, it probably isn't an issue.
--
Bruce Momjian | http://candle.pha.pa.us
pgman@candle.pha.pa.us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-performance@postgresql.org
Cc: pgman@candle.pha.pa.us, khera@kcilink.com
Subject: Re: Tunning FreeeBSD and PostgreSQL
In-Reply-To: <200307212041.h6LKfbi14090@candle.pha.pa.us>
References: <x7d6gbyc22.fsf@yertle.int.kciLink.com> <200307212041.h6LKfbi14090@candle.pha.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox