Received: from localhost (unknown [200.46.204.184]) by developer.postgresql.org (Postfix) with ESMTP id 6FC5C2E0041 for ; Fri, 18 Apr 2008 14:35:02 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 95872-02 for ; Fri, 18 Apr 2008 14:34:57 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.177]) by developer.postgresql.org (Postfix) with ESMTP id 0C6142E0032 for ; Fri, 18 Apr 2008 14:34:58 -0300 (ADT) Received: by el-out-1112.google.com with SMTP id j27so300711elf.23 for ; Fri, 18 Apr 2008 10:34:58 -0700 (PDT) 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=eeRMLXWVd2N9NwbWhnGpqwuR+Zrhz6fvBX70Drnspxs=; b=Y0agmSJRYLp8NSf6b5askyg1nA3meLFkp3ItOoqpSZgnDG5LlSMvnQFgFflw0DQjtnWiuW0aDQuca6H/k2GZK5PRMngSIpOIxCp+WTScaWzVaS8b1V+YZG4h/isCWJ6rnv8YprfDKQBKMEoQ41tLbEaI/+bON5ysllpta9kMfks= 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=tM4DfXqqRPwjOuTYbg1PkaAC2HRzF+OhsMeorpaOvfkRy4EBYbMcwgPmE8+qPs3KuukwVOKQUwc1GtsCuHgcQD+3UD+ru2HPhP0RojT+bHaQxfr/ynK1qmNekZ+2XuqZuhaoB7+CdXEGG9ggdoS2jbHVzcKVpboVobOA79otvo4= Received: by 10.142.127.10 with SMTP id z10mr724150wfc.122.1208540097975; Fri, 18 Apr 2008 10:34:57 -0700 (PDT) Received: by 10.142.185.20 with HTTP; Fri, 18 Apr 2008 10:34:57 -0700 (PDT) Message-ID: Date: Fri, 18 Apr 2008 10:34:57 -0700 From: "Jeffrey Baker" To: "Tom Lane" Subject: Re: 3-days-long vacuum of 20GB table Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3630.1208538238@sss.pgh.pa.us> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200804/273 X-Sequence-Number: 29766 On Fri, Apr 18, 2008 at 10:32 AM, Jeffrey Baker wrote: > > On Fri, Apr 18, 2008 at 10:03 AM, Tom Lane wrote: > > "Jeffrey Baker" writes: > > > This autovacuum has been hammering my server with purely random i/o > > > for half a week. The table is only 20GB and the i/o subsystem is good > > > for 250MB/s sequential and a solid 5kiops. When should I expect it to > > > end (if ever)? > > > > What have you got maintenance_work_mem set to? Which PG version > > exactly? > > This is 8.1.9 on Linux x86_64, > > # show maintenance_work_mem ; > maintenance_work_mem > ---------------------- > 16384 That appears to be the default. I will try increasing this. Can I increase it globally from a single backend, so that all other backends pick up the change, or do I have to restart the instance? -jwb