Re: increasing the default WAL segment size

Поиск
Список
Период
Сортировка
От Simon Riggs
Тема Re: increasing the default WAL segment size
Дата
Msg-id CANP8+jJFO37YiVEuxLUuZkCxqShgo5v58mCYHCT3oo=WhytANA@mail.gmail.com
обсуждение исходный текст
Ответ на increasing the default WAL segment size  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: increasing the default WAL segment size  (Claudio Freire <klaussfreire@gmail.com>)
Re: increasing the default WAL segment size  (Robert Haas <robertmhaas@gmail.com>)
Re: increasing the default WAL segment size  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-hackers
On 25 August 2016 at 02:31, Robert Haas <robertmhaas@gmail.com> wrote:

> Furthermore, there is an enforced, synchronous fsync at the end of
> every segment, which actually does hurt performance on write-heavy
> workloads.[2] Of course, if that were the only reason to consider
> increasing the segment size, it would probably make more sense to just
> try to push that extra fsync into the background, but that's not
> really the case.  From what I hear, the gigantic number of files is a
> bigger pain point.

I think we should fully describe the problem before finding a solution.

This is too big a change to just tweak a value without discussing the
actual issue.

And if the problem is as described, how can a change of x4 be enough
to make it worth the pain of change? I think you're already admitting
it can't be worth it by discussing initdb configuration.

If we do have the pain of change, should we also consider making WAL
files variable length? What do we gain by having the files all the
same size? ISTM better to have WAL files that vary in length up to 1GB
in size.

(This is all about XLOG_SEG_SIZE; I presume XLOG_BLCKSZ can stay as it
is, right?)

-- 
Simon Riggs                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services



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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: increasing the default WAL segment size
Следующее
От: Jakob Egger
Дата:
Сообщение: PG_DIAG_SEVERITY and a possible bug in pq_parse_errornotice()