X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9317DD8D8A for ; Tue, 13 Sep 2005 14:46:31 -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 27552-04 for ; Tue, 13 Sep 2005 17:46:25 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id E1FACD8D88 for ; Tue, 13 Sep 2005 14:46:25 -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 j8DHkNE0025351; Tue, 13 Sep 2005 13:46:23 -0400 (EDT) To: revoohc@gmail.com Cc: pgsql-admin@postgresql.org Subject: Re: Question on vacuuming In-reply-to: <1d219a6f050913084934b5abf@mail.gmail.com> References: <1d219a6f050913084934b5abf@mail.gmail.com> Comments: In-reply-to Chris Hoover message dated "Tue, 13 Sep 2005 11:49:02 -0400" Date: Tue, 13 Sep 2005 13:46:22 -0400 Message-ID: <25350.1126633582@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.006 required=5 tests=[AWL=0.006] X-Spam-Level: X-Archive-Number: 200509/147 X-Sequence-Number: 18884 Chris Hoover writes: > there is 1 exception. Everytime there is work to do, it seems to spike our > load from < 1 to a load of 3+ for a short time. This tends to cause > significant slowdowns for our customer if they happen to do anything that is > causing the database to access the drives. It does not seem to matter how > much work there is to do. Cleaning up 1 page/tuple or 15000 page/tuples > tends to cause this spike. No surprise, because vacuum has to read every page of the table to see if there is anything there to clean up. > We are running 7.3.4 on Dell 2650 connected to a Dell powervault running > raid5. If you were running something a little newer (8.0) you could use the vacuum_cost_delay knobs to reduce vacuum's impact on I/O load. regards, tom lane