pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vivek Khera <khera@kcilink.com>
To: pgsql-performance@postgresql.org
Subject: Re: FreeBSD page size
Date: Thu, 04 Sep 2003 12:09:40 -0400
Message-ID: <x7he3silh7.fsf@yertle.int.kciLink.com> (raw)
References: <3F4C0DC4.8070105@potentialtech.com>
	<001201c36d24$3c572460$0500a8c0@MOBILE01>
	<m3u182gg08.fsf@chvatal.cbbrowne.com>
	<20030828161233.GB83759@perrin.nxad.com>
	<3F4E54FB.3020408@potentialtech.com>
	<20030828193123.GI83317@perrin.nxad.com>
	<x7u17t98l5.fsf_-_@yertle.int.kciLink.com>
	<x7n0dl8yy9.fsf@yertle.int.kciLink.com>
	<20030903173214.I803@ganymede.hub.org>

>>>>> "MGF" == Marc G Fournier <scrappy@hub.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@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/



view thread (13+ messages)  latest in thread

Message-ID: <x7he3silh7.fsf@yertle.int.kciLink.com>
Permalink:  ../x7he3silh7.fsf@yertle.int.kciLink.com/
Also on:    postgresql.org/message-id/x7he3silh7.fsf@yertle.int.kciLink.com

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-performance@postgresql.org
  Cc: khera@kcilink.com
  Subject: Re: FreeBSD page size
  In-Reply-To: <x7he3silh7.fsf@yertle.int.kciLink.com>
  References: <3F4C0DC4.8070105@potentialtech.com> <001201c36d24$3c572460$0500a8c0@MOBILE01> <m3u182gg08.fsf@chvatal.cbbrowne.com> <20030828161233.GB83759@perrin.nxad.com> <3F4E54FB.3020408@potentialtech.com> <20030828193123.GI83317@perrin.nxad.com> <x7u17t98l5.fsf_-_@yertle.int.kciLink.com> <x7n0dl8yy9.fsf@yertle.int.kciLink.com> <20030903173214.I803@ganymede.hub.org> <x7he3silh7.fsf@yertle.int.kciLink.com>

* 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