Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 8C11D47546C for ; Thu, 8 Aug 2002 16:01:08 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 0400A475452 for ; Thu, 8 Aug 2002 16:01:08 -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 g78K16Vk022616; Thu, 8 Aug 2002 16:01:06 -0400 (EDT) To: "Robert M. Meyer" Cc: pgsql-admin@postgresql.org Subject: Re: Postgres performance slowly gets worse over a month In-reply-to: <1028830018.13363.42.camel@skymaster> References: <1028830018.13363.42.camel@skymaster> Comments: In-reply-to "Robert M. Meyer" message dated "08 Aug 2002 14:06:57 -0400" Date: Thu, 08 Aug 2002 16:01:06 -0400 Message-ID: <22615.1028836866@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/83 X-Sequence-Number: 5198 "Robert M. Meyer" writes: > 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... Given that you've increased the FSM size *and* are doing a full vacuum every night (I hope with analyze option as well!), it seems unlikely that your tables are physically growing --- I suspect there may be an index growth problem instead. But you should try to check that. Try doing select relkind,sum(relpages) from pg_class group by relkind; every so often (preferably just after a vacuum run) to see how the space totals change over time. > 1. shut down postgres > 2. run 'postgres -O -P' to start a single user instantiation of the > engine > 3. type 'reindex' to get it to do it > 4. exit postgres and restart the DB with pg_ctl IIRC, that only rebuilds indexes on the system tables. You mentioned that you'd rebuilt user indexes too --- how did you go about that exactly? > 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. The load must be all disk I/O then. Do you have adequate RAM in this thing? What have you set shared_buffers to? More generally, what's your typical query mix? Have you checked for inefficient plans on the most common queries? regards, tom lane