Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 88DA92E3AC9 for ; Thu, 13 Dec 2007 15:22:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 44762-02 for ; Thu, 13 Dec 2007 15:22:35 -0400 (AST) Received: from outmail136085.authsmtp.co.uk (outmail136085.authsmtp.co.uk [62.13.136.85]) by postgresql.org (Postfix) with ESMTP id 1C5E42E0205 for ; Thu, 13 Dec 2007 15:20:27 -0400 (AST) Received: from outmail128177.authsmtp.com (outmail128177.authsmtp.com [62.13.128.177]) by punt2.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id lBDJKKbO046035; Thu, 13 Dec 2007 19:20:20 GMT Received: from [192.168.0.3] (85-211-24-246.dyn.gotadsl.co.uk [85.211.24.246]) (authenticated bits=0) by mail.authsmtp.com (8.13.8/8.13.8/Kp) with ESMTP id lBDJKJFL055983; Thu, 13 Dec 2007 19:20:19 GMT Subject: Re: Heavy write activity on first vacuum of fresh TOAST data From: Simon Riggs To: Tom Lane Cc: Alvaro Herrera , Kevin Grittner , pgsql-performance@postgresql.org In-Reply-To: <17873.1197571942@sss.pgh.pa.us> 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> <20071213172656.GL6262@alvh.no-ip.org> <17873.1197571942@sss.pgh.pa.us> Content-Type: text/plain Date: Thu, 13 Dec 2007 19:20:43 +0000 Message-Id: <1197573643.4255.1877.camel@ebony.site> Mime-Version: 1.0 X-Mailer: Evolution 2.8.2 Content-Transfer-Encoding: 7bit X-Server-Quench: 71c97c9d-a9b0-11dc-814e-001185d377ca X-AuthRoute: OCdxZQATClZOTQEd DAteCiNZVAwpPBRK HVkIKg5MJUcNSQVJ NksachtFaQZbaVxS HGQLW1NEUVR7W2N/ aQofZQBDYEtPQQdu TkpNRE1QERpoT0Bz cmRlKG8OdwBDcXZz K0drWnMVW0UpfEEu SxpJRGRUZXphaTRM TUhZc1ZJcANLfxdA PlN4UyBcLwdSbGoL JyIJERcLGAAXCClc XBBFMkgTXUtDFzUg Rg4DASRnGktNSSQp NABuNFcXAVsUekI8 eVU7VEkYeyM1IzZi fSBBCTNQT2wg X-Authentic-SMTP: 61633235383639.squirrel.dmpriest.net.uk:787/Kp X-Report-SPAM: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/197 X-Sequence-Number: 28013 On Thu, 2007-12-13 at 13:52 -0500, Tom Lane wrote: > Alvaro Herrera writes: > > Simon Riggs wrote: > >> We might be able to have bgwriter set hint bits on dirty blocks, > > > 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. > > Another issue is that this'd require bgwriter to access the clog SLRU > area. I seem to remember worrying that that could lead to low-level > deadlocks, though I cannot recall the exact case at the moment. > Even without that, it would increase contention for SLRU, which we > probably don't want. I was trying to highlight the problems, not advocate that as an approach, sorry if I wasn't clear enough. Even if you solved the problems both of you have mentioned I don't think the dynamic behaviour will be useful enough to merit the effort of trying. I'm definitely not going to be spending any time on this. Fish are frying elsewhere. -- Simon Riggs 2ndQuadrant http://www.2ndQuadrant.com