Re: [HACKERS] More benchmarking of wal_buffers

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] More benchmarking of wal_buffers
Дата
Msg-id 3331.1045189757@sss.pgh.pa.us
обсуждение исходный текст
Ответ на More benchmarking of wal_buffers  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Ответы Re: [HACKERS] More benchmarking of wal_buffers  ("Christopher Kings-Lynne" <chriskl@familyhealth.com.au>)
Re: [PERFORM] [HACKERS] More benchmarking of wal_buffers  (Kevin Brown <kevin@sysexperts.com>)
Список pgsql-advocacy
"Christopher Kings-Lynne" <chriskl@familyhealth.com.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

В списке pgsql-advocacy по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Changing the default configuration
Следующее
От: "Christopher Kings-Lynne"
Дата:
Сообщение: Re: [HACKERS] More benchmarking of wal_buffers