X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 130BE5383D for ; Wed, 20 Apr 2005 17:51:18 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 39001-10 for ; Wed, 20 Apr 2005 20:51:09 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 1F23B53820 for ; Wed, 20 Apr 2005 17:51:08 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j3KKpAv1004575; Wed, 20 Apr 2005 16:51:10 -0400 (EDT) To: Richard Plotkin Cc: pgsql-performance@postgresql.org Subject: Re: Disk filling, CPU filling, renegade inserts and deletes? In-reply-to: <6f4567d4e64297b356e2d71ec392cdae@richardplotkin.com> References: <6f4567d4e64297b356e2d71ec392cdae@richardplotkin.com> Comments: In-reply-to Richard Plotkin message dated "Wed, 20 Apr 2005 12:28:45 -0700" Date: Wed, 20 Apr 2005 16:51:10 -0400 Message-ID: <4574.1114030270@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/536 X-Sequence-Number: 11933 Richard Plotkin writes: > I'm having a pretty serious problem with postgresql's performance. > Currently, I have a cron task that is set to restart and vacuumdb -faz > every six hours. If that doesn't happen, the disk goes from 10% full > to 95% full within 2 days (and it's a 90GB disk...with the database > being a 2MB download after dump), and the CPU goes from running at > around a 2% load to a 99+% load right away (the stats look like a > square wave). Q: what have you got the FSM parameters set to? Q: what exactly is bloating? Without knowing which tables or indexes are growing, it's hard to speculate about the exact causes. Use du and oid2name, or look at pg_class.relpages after a plain VACUUM. It's likely that the real answer is "you need to vacuum more often than every six hours", but I'm trying not to jump to conclusions. regards, tom lane