Re: Using of --data-checksums

Поиск
Список
Период
Сортировка
От Michael Paquier
Тема Re: Using of --data-checksums
Дата
Msg-id 20200408022930.GD1606@paquier.xyz
обсуждение исходный текст
Ответ на Using of --data-checksums  (BGoebel <b.goebel@prisma-computer.de>)
Список pgsql-general
On Tue, Apr 07, 2020 at 08:10:13AM -0700, BGoebel wrote:
> initdb --data-checksums "... help to detect corruption by the I/O system"
> There is an (negligible?) impact on performance, ok.
>
> Is there another reason NOT to use this feature ?
> Has anyone had good or bad experience with the use of  --data-checksums?

FWIW, I have a good experience with it.  Note that some performance
impact of up to ~1% may be noticeable if you have a large number of
buffer evictions from PostgreSQL shared buffer pool, but IMO the
insurance of knowing that Postgres is not the cause of an on-disk
corruption is largely worth it (in applications where I got that
enabled we did not notice any performance impact even in very heavy
production-like workloads, and this even if we had a rather low shared
buffer setting with a much larger set of hot pages, causing the OS
cache to be filled with most of the hot data).
--
Michael

Вложения

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

Предыдущее
От: Devrim Gündüz
Дата:
Сообщение: Announcing "common" YUM repository
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Mixed Locales and Upgrading