Received: from candle.pha.pa.us (candle.navpoint.com [162.33.245.46]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5EGaFE80685 for ; Thu, 14 Jun 2001 12:36:15 -0400 (EDT) (envelope-from pgman@candle.pha.pa.us) Received: (from pgman@localhost) by candle.pha.pa.us (8.10.1/8.10.1) id f5EGZVv07369; Thu, 14 Jun 2001 12:35:31 -0400 (EDT) From: Bruce Momjian Message-Id: <200106141635.f5EGZVv07369@candle.pha.pa.us> Subject: Re: performance issues In-Reply-To: <18087.992533895@sss.pgh.pa.us> "from Tom Lane at Jun 14, 2001 11:51:35 am" To: Tom Lane Date: Thu, 14 Jun 2001 12:35:31 -0400 (EDT) CC: DHSC Webmaster , pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL90 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200106/90 X-Sequence-Number: 1647 > 2. If you are on a platform where the kernel thinks it can swap out > parts of shared memory (which is most platforms, these days), it's > counterproductive to make your shared mem large enough that it's not > all being used heavily. If the kernel decides to swap out some buffer > space, you have a net loss in performance, because you just wasted > disk I/O (especially if the page in the buffer is dirty --- it'll > eventually have to be read in again, then written out again, to no > purpose). FYI, FreeBSD had the ability to disable shared memory swapping with a sysctl setting, while BSD/OS does not swap out shared memory. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026