Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 99B6B1337B6E for ; Thu, 21 Oct 2010 15:14:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 31528-02 for ; Thu, 21 Oct 2010 18:14:15 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from shrek.krogh.cc (2605ds1-ynoe.0.fullrate.dk [90.184.12.24]) by mail.postgresql.org (Postfix) with ESMTP id 625B71337BC5 for ; Thu, 21 Oct 2010 15:14:01 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by shrek.krogh.cc (Postfix) with ESMTP id C931ED9441; Thu, 21 Oct 2010 20:13:44 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at shrek.krogh.cc Received: from shrek.krogh.cc ([127.0.0.1]) by localhost (shrek.krogh.cc [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jfPhV9YAlq0o; Thu, 21 Oct 2010 20:13:30 +0200 (CEST) Received: from [90.184.13.151] (2605ds1-ynoe.2.fullrate.dk [90.184.13.151]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jesper@krogh.cc) by shrek.krogh.cc (Postfix) with ESMTPSA id 41FC0D9372; Thu, 21 Oct 2010 20:13:30 +0200 (CEST) Message-ID: <4CC082C4.4070704@krogh.cc> Date: Thu, 21 Oct 2010 20:13:24 +0200 From: Jesper Krogh User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8 MIME-Version: 1.0 To: Scott Carey CC: Tom Lane , Mladen Gogala , "david@lang.hm" , Craig Ringer , Vitalii Tymchyshyn , "pgsql-performance@postgresql.org" Subject: Re: Slow count(*) again... References: <201010091626.18636.neil.whelchel@gmail.com> <4CB34D69.6060108@emolecules.com> <4CB4149D.8030803@gmail.com> <4CB41902.1020503@postnewspapers.com.au> <4CB4542E.5010406@vmsinfo.com> <23516.1286891790@sss.pgh.pa.us> <4CB46AE2.7030006@vmsinfo.com> <27107.1286903278@sss.pgh.pa.us> <4CB4A749.3080705@krogh.cc> <4292.1286909893@sss.pgh.pa.us> In-Reply-To: Content-Type: multipart/alternative; boundary="------------060108050208060304080802" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-10 required=5 tests=BAYES_00=-1.9, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 201010/362 X-Sequence-Number: 40780 This is a multi-part message in MIME format. --------------060108050208060304080802 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 2010-10-21 06:47, Scott Carey wrote: > On a wimpy disk, I/O bound for sure. But my disks go 1000MB/sec. > No query can go fast enough for them. The best I've gotten is > 800MB/sec, on a wide row (average 800 bytes). Most tables go > 300MB/sec or so. And with 72GB of RAM, many scans are in-memory > anyway. Is it cpu or io bound while doing it? Can you scan it faster using time cat relation-oid.* > /dev/null > A single SSD with supercapacitor will go about 500MB/sec by itself > next spring. I will easily be able to build a system with 2GB/sec > I/O for under $10k. What filesystem are you using? Readahead? Can you try to check the filesystemfragmentation of the table using filefrag? -- Jesper --------------060108050208060304080802 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 2010-10-21 06:47, Scott Carey wrote:
> On a wimpy disk, I/O bound for sure.   But my disks go 1000MB/sec.
> No query can go fast enough for them.  The best I've gotten is
> 800MB/sec, on a wide row (average 800 bytes).  Most tables go
> 300MB/sec or so.  And with 72GB of RAM, many scans are in-memory
> anyway.

Is it cpu or io bound while doing it?
Can you scan it faster using time cat relation-oid.* > /dev/null

> A single SSD with supercapacitor will go about 500MB/sec by itself
> next spring.   I will easily be able to build a system with 2GB/sec
> I/O for under $10k.

What filesystem are you using? Readahead?
Can you try to check the filesystemfragmentation of the table using filefrag?

-- 
Jesper



--------------060108050208060304080802--