Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id B1C5E4754A8 for ; Tue, 13 Aug 2002 12:38:15 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 2F765475481 for ; Tue, 13 Aug 2002 12:38:15 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g7DGc3Vk026987; Tue, 13 Aug 2002 12:38:04 -0400 (EDT) To: Bruce Momjian Cc: "Thomas O'Connell" , pgsql-admin@postgresql.org Subject: Re: performance tuning: shared_buffers, sort_mem; swap In-reply-to: <200208131556.g7DFuH008873@candle.pha.pa.us> References: <200208131556.g7DFuH008873@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Tue, 13 Aug 2002 11:56:16 -0400" Date: Tue, 13 Aug 2002 12:38:03 -0400 Message-ID: <26986.1029256683@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/150 X-Sequence-Number: 5265 Bruce Momjian writes: > Thomas O'Connell wrote: >> 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. Right. Any swapping is too much, except maybe under absolute peak load conditions where you're prepared to accept performance degradation. If the machine is swapping, that probably means it's already been forced to skinny kernel disk cache down to the minimum (since kernel disk buffers normally are allowed to occupy whatever RAM is left over beyond the needs of active processes). You want a fat disk cache not a skinny one ... regards, tom lane