pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jesper Krogh <jesper@krogh.cc>
To: Scott Carey <scott@richrelevance.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Mladen Gogala <mladen.gogala@vmsinfo.com>
Cc: david@lang.hm <david@lang.hm>
Cc: Craig Ringer <craig@postnewspapers.com.au>
Cc: Vitalii Tymchyshyn <tivv00@gmail.com>
Cc: pgsql-performance@postgresql.org <pgsql-performance@postgresql.org>
Subject: Re: Slow count(*) again...
Date: Thu, 21 Oct 2010 20:13:24 +0200
Message-ID: <4CC082C4.4070704@krogh.cc> (raw)
In-Reply-To: <B54FDA83-1DBD-4313-AF44-EF53F3EB85D4@richrelevance.com>
References: <201010091626.18636.neil.whelchel@gmail.com>
	<AANLkTimayTM__hHu9RoiLaNhzfpNY6Vo5y4OkbX_sV=o@mail.gmail.com>
	<4CB34D69.6060108@emolecules.com>
	<4CB4149D.8030803@gmail.com>
	<4CB41902.1020503@postnewspapers.com.au>
	<alpine.DEB.2.00.1010120118030.21889@asgard.lang.hm>
	<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>
	<B54FDA83-1DBD-4313-AF44-EF53F3EB85D4@richrelevance.com>

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

view thread (246+ messages)  latest in thread

Message-ID: <4CC082C4.4070704@krogh.cc>
Permalink:  ../4CC082C4.4070704@krogh.cc/
Also on:    postgresql.org/message-id/4CC082C4.4070704@krogh.cc

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: jesper@krogh.cc, scott@richrelevance.com, tgl@sss.pgh.pa.us, mladen.gogala@vmsinfo.com, david@lang.hm, craig@postnewspapers.com.au, tivv00@gmail.com
  Subject: Re: Slow count(*) again...
  In-Reply-To: <4CC082C4.4070704@krogh.cc>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox