From: | Greg Smith <gsmith(at)gregsmith(dot)com> |
---|---|
To: | PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org> |
Subject: | Re: Maintaining cluster order on insert |
Date: | 2007-07-10 12:52:54 |
Message-ID: | Pine.GSO.4.64.0707100815400.22343@westnet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On Mon, 9 Jul 2007, Tom Lane wrote:
> The hardware is just a Dell x86_64 workstation with crappy IDE disk, so
> maybe things would look better elsewhere, but it's all I have to work
> with.
Do you have write-caching turned off on the drive so INSERTs are being
rate-limited by WAL syncs? Trying to characterize the class of setup
you're using.
The part that seemed curious to me about your results in the unpatched
version is why the first INSERT takes 2.4 seconds, while the second takes
12.2 then later ones settle from 17-23 s. I could understand the 12-23
variation, but that the first one fires off in 2.4 seems kind of fishy;
why so fast? Is there something that's just fitting in memory in that
case that's just missing in the patched version?
results-head:
...
executed DELETE in 14.770937 sec
executed VACUUM in 10.663301 sec
executed INSERT in 2.449248 sec (1st)
...
executed INSERT in 12.212027 sec (2nd)
results-patch:
...
executed DELETE in 18.062664 sec
executed VACUUM in 28.487570 sec
executed INSERT in 25.638022 sec (1st)
...
executed INSERT in 40.759404 sec (2nd)
--
* Greg Smith gsmith(at)gregsmith(dot)com http://www.gregsmith.com Baltimore, MD
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2007-07-10 13:14:59 | 2PC-induced lockup |
Previous Message | alexander lunyov | 2007-07-10 12:34:30 | Re: russian case-insensitive regexp search not working |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2007-07-10 13:41:01 | Re: Maintaining cluster order on insert |
Previous Message | Heikki Linnakangas | 2007-07-10 11:43:06 | Re: Maintaining cluster order on insert |