From: | Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com> |
---|---|
To: | Ip Wing Kin John <wkipjohn(at)gmail(dot)com> |
Cc: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: Bottleneck? |
Date: | 2009-08-06 04:19:38 |
Message-ID: | dcc563d10908052119y63eab7b3sb8e3f64b76f30f12@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Wed, Aug 5, 2009 at 8:50 PM, Ip Wing Kin John<wkipjohn(at)gmail(dot)com> wrote:
> I have a database (699221). It contains of 1.8GB data (707710). I am
> doing a complex query. Which required to load a 80MB index (732287).
>
> I restarted Postgresql so the cache is empty and it has to read the
> table and index from disk. Which I understand is an expensive process.
> But what I don't understand is even I split the index into a different
> tablespace located on a completely separate disk (mounted on /hdd2)
> there is still a very long I/O wait time. That index is only thing
> exist on that disk. Any idea why? Or any way I can find out what it is
> waiting for? Thanks.
OK before DTrace, did you run explain analyze on the query? I think
the output of that would be interesting.
Looking at the DTrace output it looks to me like you're reading at
least one > 1GB table. since you're accessing a file with a .1 on it.
From | Date | Subject | |
---|---|---|---|
Next Message | wkipjohn | 2009-08-06 04:30:45 | Re: Bottleneck? |
Previous Message | Ip Wing Kin John | 2009-08-06 02:50:51 | Bottleneck? |