Received: from ecint.ecinet.com (smtp.eldocomp.com [205.159.99.3]) by postgresql.org (Postfix) with ESMTP id B39544758F2 for ; Tue, 23 Jul 2002 14:08:05 -0400 (EDT) Received: from NWALKER ([172.20.144.110]) by ecint.ecinet.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id P386DTXV; Tue, 23 Jul 2002 11:08:05 -0700 Message-Id: <4.2.2.20020723110231.01daf8c0@ecint.ecinet.com> X-Sender: nwalke@ecint.ecinet.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Tue, 23 Jul 2002 11:08:30 -0700 To: "Robert M. Meyer" , pgsql-admin@postgresql.org From: Naomi Walker Subject: Re: Postgres performance slowly gets worse over a month In-Reply-To: <1027447198.25568.11.camel@skymaster> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200207/320 X-Sequence-Number: 5004 >Nightly, we're doing a 'vacuumdb -a -z' after stopping and restarting >the database. The performance will get so bad after a month that we >start to see load spikes in excess of 30. Normally, we don't see load >over 2.5 during the heaviest activity and generally less than 1.0 most >of the time. Typically, performance is linked to your I/O, but my first guess in this case has to do with your indices. As a test, next time performance gets really rotten, drop your indicies and rebuild them. It cannot hurt, and might just help. The trick here is to see what is happening while it is tanking. What does your disk configuration look like? Is it a raid or stripe where reads are spread out among more than one controller? Do sar reports point to anything in particular? ---------------------------------------------------------------------------- ---------------------------------- Naomi Walker Eldorado Computing, Inc Chief Information Officer nwalker@eldocomp.com 602-604-3100 x242