From: | Vivek Khera <khera(at)kcilink(dot)com> |
---|---|
To: | pgsql-performance(at)postgresql(dot)org |
Subject: | Re: FreeBSD page size |
Date: | 2003-09-04 16:09:40 |
Message-ID: | x7he3silh7.fsf@yertle.int.kciLink.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
>>>>> "MGF" == Marc G Fournier <scrappy(at)hub(dot)org> writes:
MGF> Just curious, but Bruce(?) mentioned that apparently a 32k block size was
MGF> found to show a 15% improvement ... care to run one more test? :)
Well, it is hard to tell based on my quick and dirty test:
16k page size:
restore time: 11322 seconds
vacuum analyze time: 1663 seconds (27 minutes)
select count(*) from user_list where owner_id=315; 56666.64 ms
32k page size:
restore time: 11430 seconds
vacuum analyze time: 1346 seconds
select count(*) from user_list where owner_id=315; 63275.73 ms
one anomaly I note is that if I re-run the select count(*) query
above, the large the page size, the longer the query takes. In the
standard 8k page size, it was on the order of 306ms, with 16k page
size it was over 1400, and with 32k page size nearly 3000ms.
Another anomaly I note is that for the larger indexes, the relpages
doesn't scale as expected. ie, I'd expect roughly half the relpages
per index for 32k page size as for 16k page size, but this is not
always the case... some are about the same size and some are about 2/3
and some are about 1/2. The smaller indexes are often the same number
of pages (when under 20 pages).
I think I'm going to write a synthetic load generator that does a
bunch of inserts to some linked tables with several indexes, then goes
thru and pounds on it (update/select) from multiple children with
occasional vacuum's thrown in. That's the only way to get 'real'
numbers, it seems.
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D. Khera Communications, Inc.
Internet: khera(at)kciLink(dot)com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/
From | Date | Subject | |
---|---|---|---|
Next Message | Hannu Krosing | 2003-09-04 16:30:09 | Re: SELECT's take a long time compared to other DBMS |
Previous Message | Relaxin | 2003-09-04 15:05:15 | Re: SELECT's take a long time compared to other DBMS |