Re: Force update_process_title=on in crash recovery?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Force update_process_title=on in crash recovery?
Дата
Msg-id 1443723.1600235012@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Force update_process_title=on in crash recovery?  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: Force update_process_title=on in crash recovery?
Список pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> On Wed, Sep 16, 2020 at 2:30 PM Michael Paquier <michael@paquier.xyz> wrote:
>> Another thing to be careful here is WIN32, see 0921554.  And slowing
>> down recovery is never a good idea.

> Right, that commit makes a lot of sense because it suppresses many
> system calls that happen for each query.  The same problem existed on
> older FreeBSD versions and I saw that costing ~10% of TPS on read-only
> pgbench.  In other commits I've been removing system calls that happen
> for every WAL record.  But in this thread I'm talking about an update
> per 16MB WAL file, which seems like an acceptable ratio to me.

Hmm ... the thread leading up to 0921554 indicates that the performance
penalty of update_process_title=on is just ridiculously large on Windows.
Maybe those numbers are not relevant to crash recovery WAL-application,
but it might be smart to actually measure that not just assume it.

In any case, I'd recommend setting up any patch you create for this
to be easily "ifndef WIN32"'d in case we change our minds on the
point later.

            regards, tom lane



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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: Force update_process_title=on in crash recovery?
Следующее
От: Paul Guo
Дата:
Сообщение: Re: Parallelize stream replication process