Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 66B0E2E0042 for ; Thu, 13 Dec 2007 13:27:07 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 48621-02 for ; Thu, 13 Dec 2007 13:26:55 -0400 (AST) Received: from lists.commandprompt.com (host-159.commandprompt.net [207.173.203.159]) by postgresql.org (Postfix) with ESMTP id 881872E3A5C for ; Thu, 13 Dec 2007 13:27:01 -0400 (AST) Received: from perhan.alvh.no-ip.org (200-126-76-117.bk5-dsl.surnet.cl [200.126.76.117]) (authenticated bits=0) by lists.commandprompt.com (8.13.8/8.13.8) with ESMTP id lBDHQtJJ025303 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 13 Dec 2007 09:26:58 -0800 Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 9DB5E47C87; Thu, 13 Dec 2007 14:26:56 -0300 (CLST) Date: Thu, 13 Dec 2007 14:26:56 -0300 From: Alvaro Herrera To: Simon Riggs Cc: Kevin Grittner , Tom Lane , pgsql-performance@postgresql.org Subject: Re: Heavy write activity on first vacuum of fresh TOAST data Message-ID: <20071213172656.GL6262@alvh.no-ip.org> References: <4760FF69.EE98.0025.0@wicourts.gov> <1197562283.4255.1829.camel@ebony.site> <476108F2.EE98.0025.0@wicourts.gov> <476108F2.EE98.0025.0@wicourts.gov> <13267.1197563721@sss.pgh.pa.us> <47610BF3.EE98.0025.0@wicourts.gov> <1197565242.4255.1853.camel@ebony.site> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1197565242.4255.1853.camel@ebony.site> User-Agent: Mutt/1.5.17 (2007-11-01) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0 (lists.commandprompt.com [207.173.203.159]); Thu, 13 Dec 2007 09:26:58 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/192 X-Sequence-Number: 28008 Simon Riggs wrote: > We might be able to have bgwriter set hint bits on dirty blocks, but the > success of that would depend upon the transit time of blocks through the > cache, i.e. it might be totally ineffective. So might be just overhead > for the bgwriter and worse, could divert bgwriter attention away from > what its supposed to be doing. That's a lot of work to fiddle with the > knobs to improve things and there's higher things on the list AFAICS. I don't think that works, because the bgwriter has no access to the catalogs, therefore it cannot examine the page contents. To bgwriter, pages are opaque. -- Alvaro Herrera http://www.amazon.com/gp/registry/5ZYLFMCVHXC "There is evil in the world. There are dark, awful things. Occasionally, we get a glimpse of them. But there are dark corners; horrors almost impossible to imagine... even in our worst nightmares." (Van Helsing, Dracula A.D. 1972)