From: Michael Paquier <michael@paquier.xyz>
To: BGoebel <b.goebel@prisma-computer.de>
Cc: pgsql-general@postgresql.org
Subject: Re: Using of --data-checksums
Date: Wed, 8 Apr 2020 11:29:30 +0900
Message-ID: <20200408022930.GD1606@paquier.xyz> (raw)
In-Reply-To: <1586272213908-0.post@n3.nabble.com>
References: <1586272213908-0.post@n3.nabble.com>
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
Attachments:
signature.asc (application/pgp-signature, 832B) download
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: michael@paquier.xyz, b.goebel@prisma-computer.de
Subject: Re: Using of --data-checksums
In-Reply-To: <20200408022930.GD1606@paquier.xyz>
References: <1586272213908-0.post@n3.nabble.com> <20200408022930.GD1606@paquier.xyz>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox