Re: Seq scans status update

From: Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
To: CK Tan <cktan(at)greenplum(dot)com>
Cc: Luke Lonergan <llonergan(at)greenplum(dot)com>, John Eshleman <jeshleman(at)greenplum(dot)com>, Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Seq scans status update
Date: 2007-05-18 08:33:00
Message-ID: 464D64BC.8050401@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

CK Tan wrote:
> If it is convenient for you, could you run my patch against the same
> hardware and data to get some numbers on select for comparison? Although
> we don't address updates, copy, or inserts, we are definitely getting
> at least 20% improvement in scans here without poisoning the bufpool for
> large tables.

Sure, here you are:

copy-cktan-big | 00:10:08.843126
copy-cktan-big | 00:10:17.767606
copy-cktan-big | 00:09:37.797059
copy_nowal-cktan-big | 00:05:12.305025
copy_nowal-cktan-big | 00:05:10.518417
copy_nowal-cktan-big | 00:05:03.472939
select-cktan-big | 00:03:27.655982
select-cktan-big | 00:01:55.496408
select-cktan-big | 00:01:31.693856
select-cktan-big | 00:01:12.705268
select-cktan-big | 00:01:12.478247
select-cktan-big | 00:01:10.866484
vacuum_clean-cktan-big | 00:03:05.340875
vacuum_clean-cktan-big | 00:01:12.428317
vacuum_clean-cktan-big | 00:01:13.179957
vacuum_clean-cktan-big | 00:01:10.438888
vacuum_hintbits-cktan-big | 00:03:58.78208
vacuum_hintbits-cktan-big | 00:04:02.515778
vacuum_hintbits-cktan-big | 00:04:19.083402
vacuum_hintbits-cktan-big | 00:04:11.170831
copy-cktan-med | 00:02:19.413484
copy-cktan-med | 00:02:22.270497
copy-cktan-med | 00:02:22.297946
copy_nowal-cktan-med | 00:01:31.192601
copy_nowal-cktan-med | 00:01:17.736356
copy_nowal-cktan-med | 00:01:32.272778
select-cktan-med | 00:00:03.774974
select-cktan-med | 00:00:01.279276
select-cktan-med | 00:00:01.297703
select-cktan-med | 00:00:01.304129
select-cktan-med | 00:00:01.297048
select-cktan-med | 00:00:01.306073
vacuum_clean-cktan-med | 00:00:01.820733
vacuum_clean-cktan-med | 00:00:01.755684
vacuum_clean-cktan-med | 00:00:01.755659
vacuum_clean-cktan-med | 00:00:01.750972
vacuum_hintbits-cktan-med | 00:00:01.58744
vacuum_hintbits-cktan-med | 00:00:06.216038
vacuum_hintbits-cktan-med | 00:00:02.201789
vacuum_hintbits-cktan-med | 00:00:36.494427

Select performance looks the same as with Simon's/my patch.

That 20% gain must be hardware-dependent. My interpretation is that the
CPU savings from more efficient cache usage only matters when the I/O
bandwidth is high enough that CPU becomes the bottleneck.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message FAST PostgreSQL 2007-05-18 08:40:53 Re: Updateable cursors patch
Previous Message NikhilS 2007-05-18 07:26:06 Re: CREATE TABLE LIKE INCLUDING INDEXES support