Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 550492E0043 for ; Mon, 19 May 2008 14:09:03 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 39220-09 for ; Mon, 19 May 2008 14:08:29 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from 30.mail-out.ovh.net (30.mail-out.ovh.net [213.186.62.213]) by developer.postgresql.org (Postfix) with SMTP id 6A5BA2E003B for ; Mon, 19 May 2008 14:08:18 -0300 (ADT) Received: (qmail 14293 invoked by uid 503); 19 May 2008 17:08:37 -0000 Received: from unknown (HELO mail243.ha.ovh.net) (213.186.33.59) by 30.mail-out.ovh.net with SMTP; 19 May 2008 17:08:37 -0000 Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 19 May 2008 17:08:11 -0000 Received: from par69-8-88-161-102-87.fbx.proxad.net (HELO apollo13.peufeu.com) (88.161.102.87) by ns0.ovh.net with SMTP; 19 May 2008 17:08:11 -0000 Date: Mon, 19 May 2008 19:14:48 +0200 To: "Greg Smith" , "Matthew Wakeling" Subject: Re: I/O on select count(*) From: PFC Cc: pgsql-performance@postgresql.org Content-Type: text/plain; format=flowed; delsp=yes; charset=utf-8 MIME-Version: 1.0 References: <920841.71690.qm@web44808.mail.sp1.yahoo.com> <482B1D5F.EE98.0025.0@wicourts.gov> <20080515020553.GN9838@alvh.no-ip.org> <20080515155232.GC8221@alvh.no-ip.org> <20080516201528.GJ13061@alvh.no-ip.org> <18382.1210992302@sss.pgh.pa.us> Content-Transfer-Encoding: 7bit Message-ID: In-Reply-To: User-Agent: Opera Mail/9.24 (Linux) X-Ovh-Tracer-Id: 12968959553003652708 X-Ovh-Remote: 88.161.102.87 (par69-8-88-161-102-87.fbx.proxad.net) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.500001/N X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.65 tagged_above=0 required=5 tests=AWL=0.650 X-Spam-Level: X-Archive-Number: 200805/270 X-Sequence-Number: 30238 > The real question in my mind is why this turns into a bottleneck before > the similar task of cleaning the 16MB XLOG segment does. I expected > that one would need to be cracked before the CLOG switch time could > possibly be an issue, but reports from the field seem to suggest > otherwise. Hm, on current CPUs zeroing 8kB of RAM should take less than 2 us... now if it has to be written to disk, that's another story !