Re: CRC32C Parallel Computation Optimization on ARM

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: CRC32C Parallel Computation Optimization on ARM
Дата
Msg-id ZThCk2O8ST2zbKAE@paquier.xyz
обсуждение исходный текст
Ответ на Re: CRC32C Parallel Computation Optimization on ARM  (Heikki Linnakangas <hlinnaka@iki.fi>)
Ответы Re: CRC32C Parallel Computation Optimization on ARM  (Nathan Bossart <nathandbossart@gmail.com>)
Список pgsql-hackers
On Wed, Oct 25, 2023 at 12:37:45AM +0300, Heikki Linnakangas wrote:
> On 25/10/2023 00:18, Nathan Bossart wrote:
>> Actually, since the pg_waldump benchmark likely only involves very small
>> WAL records, it would make sense that there isn't much difference.
>> *facepalm*
>
> No need to guess, pg_waldump -z will tell you what the record size is. And
> you can vary it by changing the checkpoint interval and/or pgbench scale
> factor: if you checkpoint frequently or if the database is larger, you get
> more full-page images which makes the records larger on average, and vice
> versa.

If you are looking at computing the CRC of records with arbitrary
sizes, why not just generating a series with
pg_logical_emit_message() before doing a comparison with pg_waldump or
a custom replay loop to go through the records?  At least it would
make the results more predictible.
--
Michael

Вложения

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: CRC32C Parallel Computation Optimization on ARM
Следующее
От: Andres Freund
Дата:
Сообщение: walwriter interacts quite badly with synchronous_commit=off