From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | "Simon Riggs" <simon(at)2ndquadrant(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: Configuring BLCKSZ and XLOGSEGSZ (in 8.3) |
Date: | 2006-11-27 21:08:10 |
Message-ID: | 200611272208.11158.peter_e@gmx.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Simon Riggs wrote:
> Increasing XLOGSEGSZ improves performance with write intensive
> workloads, where WAL is sufficiently active that switching WAL files
> and fsyncing causes all commits to freeze momentarily.
> http://blogs.sun.com/jkshah/category/Databases?page=1
He increased the WAL segment size from 16 MB to 256 MB. Without any
further information about the system configuration, that seems to be
mostly equivalent to increasing the number of checkpoint segments.
> Increasing BLCKSZ has been claimed to help by
[snip]
> Discussion on that does seem somewhat inconclusive, but that maybe
> just that test results are rather thin on the ground because of lack
> of ability to test this without recompilation.
I don't doubt that there may be a positive effect from increasing the
block size. But we haven't seen any analysis of why that might be. If
it's just to use the disk system bandwith better, maybe we should
combine page writes instead or something.
> Increasing BLCKSZ would also allow increasing the size of GIST
> indexes (IIRC?). It would certainly allow larger TOAST_TARGETs to
> allow more data to be held in a single longer tuple than is currently
> possible, which would allow many text-based applications to avoid
> various overheads.
Have there ever been demands for reconfiguring the TOASTing behavior?
The TOAST system seems to think that values larger than about 2 kB will
rarely or never be used in computations, only for retrieval. What was
the reason for choosing this particular limit? It seems to me that the
maximum size of useful lookup keys is mostly influenced by human
intelligence, not by the available computing hardware, so 2 kB seems to
be just fine.
--
Peter Eisentraut
http://developer.postgresql.org/~petere/
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2006-11-27 21:20:40 | Re: [CORE] RC1 blocker issues |
Previous Message | Neil Conway | 2006-11-27 20:28:10 | Re: Storing a dynahash for an entire connection or |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2006-11-27 21:47:57 | Re: Configuring BLCKSZ and XLOGSEGSZ (in 8.3) |
Previous Message | Tom Lane | 2006-11-27 18:51:10 | Re: Configuring BLCKSZ and XLOGSEGSZ (in 8.3) |