Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 3EBCE475828 for ; Thu, 8 Aug 2002 15:09:14 -0400 (EDT) Received: from linuxmail.lgsinc.com (unknown [12.22.4.163]) by postgresql.org (Postfix) with ESMTP id 7382747546C for ; Thu, 8 Aug 2002 15:09:13 -0400 (EDT) Received: from timetop ([10.13.15.254]) by linuxmail.lgsinc.com (8.11.6/8.8.7) with SMTP id g78J9k314340; Thu, 8 Aug 2002 12:09:46 -0700 Date: Thu, 8 Aug 2002 12:09:13 -0700 From: Tim Ellis To: "Robert M. Meyer" Cc: pgsql-admin@postgresql.org Subject: Re: Postgres performance slowly gets worse over a month Message-Id: <20020808120913.753cff03.Tim.Ellis@gamet.com> In-Reply-To: <1028830018.13363.42.camel@skymaster> References: <1028830018.13363.42.camel@skymaster> Organization: Gamet X-Mailer: Sylpheed version 0.7.4 (GTK+ 1.2.10; i586-mandrake-linux-gnu) WerdupHomey: 3.14159265358979323 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/82 X-Sequence-Number: 5197 On 08 Aug 2002 14:06:57 -0400 "Robert M. Meyer" wrote: > Back on July 23, I posted on our performance problem. At that time, I > got several suggestions about what to do to try to fix it. Well, it's > happening again... > [snip] > Any other suggestions? We're looking to do something soon before the > load gets out of hand. With all due respect, the depth of your problem indicates to me you need a database administrator. Someone who understands the database and the hardware and performance/tuning principles. (in case you think I'm hinting about something, I'm not available for work right now -- you really do need to hire/contract a DBA sort) > One of the suggestions was > to use 'pgmonitor' to keep watch over what's happening but transaction > go through too quickly and nothing seems to tie the system up for any > period of time. We also notice that while the load keeps increasing, > the actual CPU time is very small. We'll see loads above 3 with each > CPU (we have two) sitting with 80%+ idle time. First guess: analyze your queries. It's gotten me through a number of problems that sound just like this. As the data set grows, a poorly formed query will chew more and more I/O time. -- Tim Ellis Senior Database Architect Gamet, Inc.