Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id D221B64FD25 for ; Sun, 14 Dec 2008 14:32:19 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50443-03 for ; Sun, 14 Dec 2008 14:32:17 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.181]) by mail.postgresql.org (Postfix) with ESMTP id 1527A64FCCF for ; Sun, 14 Dec 2008 14:32:16 -0400 (AST) Received: by wa-out-1112.google.com with SMTP id j4so1099872wah.19 for ; Sun, 14 Dec 2008 10:32:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Bcp9jrIXzTTRES69k4lpJlOW857u4BCKOQ2oEEE+FDc=; b=Dao6DUqtb1PwI0LoLj4Lu7GVn/D9Mx65b7TuszV5waUOSuZaIvZy+Sj/KxWGQFz++W /IYLQNwoO7+NEjE65fxYM87tUXxirjZKxxmAzuCmmvHhBu4VPJs0ZJ9cQmpa23C4C/gg z6BW/wYrpOkPmG8N/5G1HMfHLGpLcLGxJfBwI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=hXHz7cdvtvXklqR9lJ6XRjhvD9RVeAtissRgrwbDUw1nueMAch7i1vg/E2yBgV/Qiv /8OQalRBO7iTdF7bcDoN9AWlvDyuLxtfpxXGtUOxT6GH+tBlrkDkcatx8VWc1Y/qZMX1 AeVpzzqUPDJThqJWYN07QDl0VdwdrHJGoYer4= Received: by 10.114.131.1 with SMTP id e1mr4376123wad.14.1229279536129; Sun, 14 Dec 2008 10:32:16 -0800 (PST) Received: by 10.115.95.9 with HTTP; Sun, 14 Dec 2008 10:32:16 -0800 (PST) Message-ID: Date: Sun, 14 Dec 2008 11:32:16 -0700 From: "Scott Marlowe" To: "Michael Monnerie" Subject: Re: What is VACUUM waiting for? Cc: pgsql-admin@postgresql.org In-Reply-To: <200812141927.43106@zmi.at> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200812122355.25481@zmi.at> <4943C70C.9070307@zeut.net> <200812141927.43106@zmi.at> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/112 X-Sequence-Number: 30945 On Sun, Dec 14, 2008 at 11:27 AM, Michael Monnerie wrote: > On Samstag 13 Dezember 2008 Matthew T. O'Connor wrote: >> Do you have any vacuum delay setting turned on? Perhaps they are too >> high? > > Oh, I didn't remember there were some for normal vacuum, just the > auto_vaccuum. > > vacuum_cost_delay = 250 > vacuum_cost_page_hit = 1 > vacuum_cost_page_miss = 10 > vacuum_cost_page_dirty = 20 > vacuum_cost_limit = 1000 > > Are those values to high/low? What should one use? > > I think I will disable it at this one server, setting > vacuum_cost_delay = 0 > because it's only one DB here. Still, I'd like to understand what values > would be reasonable on a server with many DBs, as we have some. Yeah, any vacuum cost_delay over 20 or so is pretty high. I set it to 10 and vacuum doesn't get in the way but still runs reasonably fast.