X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 077F9D707D for ; Tue, 30 Aug 2005 18:25:54 -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 72055-03 for ; Tue, 30 Aug 2005 21:25:51 +0000 (GMT) Received: from linux.finestmedia.tv (linux.finestmedia.tv [213.180.31.12]) by svr1.postgresql.org (Postfix) with ESMTP id AFAF0D706F for ; Tue, 30 Aug 2005 18:25:49 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by linux.finestmedia.tv (Postfix) with ESMTP id 4FC6718E71B for ; Wed, 31 Aug 2005 00:25:49 +0300 (EEST) Received: from linux.finestmedia.tv ([127.0.0.1]) by localhost (linux.finestmedia.tv [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29451-04 for ; Wed, 31 Aug 2005 00:25:46 +0300 (EEST) Received: from err (err.fm.sise [192.168.2.19]) by linux.finestmedia.tv (Postfix) with ESMTP id 5472718E718 for ; Wed, 31 Aug 2005 00:25:45 +0300 (EEST) From: "Rigmor Ukuhe" To: Subject: Re: When to do a vacuum for highly active table Date: Wed, 31 Aug 2005 00:25:44 +0300 Organization: Finestmedia MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 Thread-Index: AcWtqCLO1Qji3rAwRQSxeM5zsbuD4QAAJ1CA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 In-Reply-To: <20050830211356.48138.qmail@web31606.mail.mud.yahoo.com> Message-Id: <20050830212545.5472718E718@linux.finestmedia.tv> X-Virus-Scanned: by amavisd-new at finestmedia.ee X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.026 required=5 tests=[AWL=0.026] X-Spam-Level: X-Archive-Number: 200509/80 X-Sequence-Number: 14388 > -----Original Message----- > From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance- > owner@postgresql.org] On Behalf Of Markus Benne > Sent: Wednesday, August 31, 2005 12:14 AM > To: pgsql-performance@postgresql.org > Subject: [PERFORM] When to do a vacuum for highly active table > > We have a highly active table that has virtually all > entries updated every 5 minutes. Typical size of the > table is 50,000 entries, and entries have grown fat. > > We are currently vaccuming hourly, and towards the end > of the hour we are seeing degradation, when compared > to the top of the hour. > > Vaccum is slowly killing our system, as it is starting > to take up to 10 minutes, and load at the time of > vacuum is 6+ on a Linux box. During the vacuum, > overall system is goin unresponsive, then comes back > once vacuum completes. Play with vacuum_cost_delay option. In our case it made BIG difference (going from very heavy hitting to almost unnoticed vacuuming.) Hope it helps. Rigmor Ukuhe > > If we run vacuum less frequently, degradation > continues to the point that we can't keep up with the > throughput, plus vacuum takes longer anyway. > > Becoming quite a pickle:-) > > We are thinking of splitting the table in two: the > part the updates often, and the part the updates > infrequently as we suspect that record size impacts > vacuum. > > Any ideas? > > > Thanks, > Mark > > ----------------- > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster