X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 12789D1C7F4 for ; Thu, 31 Jul 2003 14:15:23 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 50907-10 for ; Thu, 31 Jul 2003 11:14:21 -0300 (ADT) Received: from yertle.kcilink.com (yertle.kcilink.com [216.194.193.105]) by svr1.postgresql.org (Postfix) with ESMTP id D4D33D1C7F1 for ; Thu, 31 Jul 2003 11:15:20 -0300 (ADT) Received: by yertle.kcilink.com (Postfix, from userid 100) id 918A22178C; Thu, 31 Jul 2003 10:15:04 -0400 (EDT) From: Vivek Khera MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16169.9320.444739.336507@yertle.int.kciLink.com> Date: Thu, 31 Jul 2003 10:15:04 -0400 To: pgsql-performance@postgresql.org Subject: Re: Mapping a database completly into Memory In-Reply-To: <200307302210.h6UMAOp15472@candle.pha.pa.us> References: <200307302210.h6UMAOp15472@candle.pha.pa.us> X-Mailer: VM 7.14 under 21.4 (patch 12) "Portable Code" XEmacs Lucid X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/497 X-Sequence-Number: 2790 >>>>> "BM" == Bruce Momjian writes: BM> I think it all depends on your working set. Having shared memory be BM> smaller than you working set causes pages to have to be copied in from BM> the kernel buffers (not a huge problem, but a small penalty), while BM> having shared memory larger than the working set causes overhead of BM> searching through all those buffers. i.e., It is a black art, and no single piece of advice can be taken in isolation ;-(