Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 17DBA475E29 for ; Tue, 13 Aug 2002 11:56:16 -0400 (EDT) Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 166B6475E1C for ; Tue, 13 Aug 2002 11:56:15 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g7DFuH008873; Tue, 13 Aug 2002 11:56:17 -0400 (EDT) From: Bruce Momjian Message-Id: <200208131556.g7DFuH008873@candle.pha.pa.us> Subject: Re: performance tuning: shared_buffers, sort_mem; swap In-Reply-To: To: "Thomas O'Connell" Date: Tue, 13 Aug 2002 11:56:16 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/142 X-Sequence-Number: 5257 Thomas O'Connell wrote: > so a while back, i think i recall a post from Bruce Momjian describing > an optimum setup for shared_buffers at 25% of available physical memory > and sort_mem at 4% of available physical memory. Yes, that was the numebers to start with. > the caveat was to watch for swap activity when these values were being > set. so my question is, how much swapping is too much, and is there a > way to determine whether postgres is the process causing the swapping? Well, it doesn't really matter who is causing the swapping. If you have more of a load on your machine that RAM can hold, you are better off reducing your PostgreSQL shared buffers. -- 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