From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> |
Cc: | "Hackers" <pgsql-hackers(at)postgresql(dot)org>, pgsql-performance(at)postgresql(dot)org, "Advocacy" <pgsql-advocacy(at)postgresql(dot)org> |
Subject: | Re: [HACKERS] More benchmarking of wal_buffers |
Date: | 2003-02-14 02:29:17 |
Message-ID: | 3331.1045189757@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy pgsql-hackers pgsql-performance |
"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
> I've just spent the last day and a half trying to benchmark our new database
> installation to find a good value for wal_buffers. The quick answer - there
> isn't, just leave it on the default of 8.
I don't think this is based on a useful test for wal_buffers. The
wal_buffers setting only has to be large enough for the maximum amount
of WAL log data that your system emits between commits, because a commit
(from anyone) is going to flush the WAL data to disk (for everyone).
So a benchmark based on short transactions is just not going to show
any benefit to increasing the setting.
Benchmarking, say, the speed of massive COPY IN operations might show
some advantage to larger wal_buffers. Although I'm not real sure that
it'll make any difference for any single-backend test. It's really just
the case where you have concurrent transactions that all make lots of
updates before committing that's likely to show a win.
> One proof that has come out of this is that wal_buffers does not affect
> SELECT only performance in any way.
Coulda told you that without testing ;-). Read-only transactions emit
no WAL entries.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Sailesh Krishnamurthy | 2003-02-14 02:31:18 | Re: set_ps_display on solaris x86 |
Previous Message | Tom Lane | 2003-02-14 02:18:18 | Re: PostgreSQL Tuning Results |
From | Date | Subject | |
---|---|---|---|
Next Message | Sailesh Krishnamurthy | 2003-02-14 02:31:18 | Re: set_ps_display on solaris x86 |
Previous Message | Kevin Brown | 2003-02-14 02:20:05 | Re: location of the configuration files |
From | Date | Subject | |
---|---|---|---|
Next Message | Christopher Kings-Lynne | 2003-02-14 03:04:20 | Re: [HACKERS] More benchmarking of wal_buffers |
Previous Message | Nick Pavlica | 2003-02-13 23:19:12 | Re: JBoss CMP Performance Problems with PostgreSQL 7.2.3 |