pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: Andreas Joseph Krogh <andreas@visena.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Sv: Re: Sv: Re: Sv: Re: Sv: Re: data-checksums
Date: Tue, 9 Jan 2018 17:55:25 -0800
Message-ID: <20180110015525.orxpcm7qlo7nt7ro@alap3.anarazel.de> (raw)
In-Reply-To: <VisenaEmail.10c.cb44223257f6bfb.160dd7911a2@tc7-visena>
References: <20180110000126.wfq3dwpwjt2kpgsz@alap3.anarazel.de>
	<VisenaEmail.10c.cb44223257f6bfb.160dd7911a2@tc7-visena>

On 2018-01-10 01:31:58 +0100, Andreas Joseph Krogh wrote:
> På onsdag 10. januar 2018 kl. 01:01:26, skrev Andres Freund <andres@anarazel.de 
> <mailto:andres@anarazel.de>>:
> On 2018-01-10 00:25:08 +0100, Andreas Joseph Krogh wrote:
>  > But SIMD-instructions are also HW-accellerated by modern CPUs IIUC?
> 
>  Sure. Still measurable, but even if weren't, it's irrelevant given my
>  primary point:
> 
>  >  The checksum computations have some impact, but if there's bigger impact
>  >  it's much more likely to be related to the fact that some hint bit
>  >  writes to a page now needs to be WAL logged.
> 
>  which isn't mitigated by SIMD / hardware CRC / whatnot.
>  
> Aha, so enabling CRC causes hint-bits to be written causing extra WAL-logging, 
> which woudn't be the case without CRC enabled?
> Thanks for pointing that out.

Well, enabling checksums enables that. CRCs don't play a role for data
checksums. CRCs are a specific class of checksums, a specific one of
those is used in our WAL logging, but the data checksum algorithm isn't
in that class.

Greetings,

Andres Freund




view thread (7+ messages)  latest in thread

Message-ID: <20180110015525.orxpcm7qlo7nt7ro@alap3.anarazel.de>
Permalink:  ../20180110015525.orxpcm7qlo7nt7ro@alap3.anarazel.de/
Also on:    postgresql.org/message-id/20180110015525.orxpcm7qlo7nt7ro@alap3.anarazel.de

 · 

reply

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: andres@anarazel.de, andreas@visena.com
  Subject: Re: data-checksums
  In-Reply-To: <20180110015525.orxpcm7qlo7nt7ro@alap3.anarazel.de>
  References: <20180110000126.wfq3dwpwjt2kpgsz@alap3.anarazel.de> <VisenaEmail.10c.cb44223257f6bfb.160dd7911a2@tc7-visena> <20180110015525.orxpcm7qlo7nt7ro@alap3.anarazel.de>

* 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