pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Sv: Re: Sv: Re: data-checksums
2+ messages / 2 participants
[nested] [flat]

* Sv: Re: Sv: Re: data-checksums
@ 2018-01-09 22:30 Andreas Joseph Krogh <andreas@visena.com>
  2018-01-09 22:42 ` Re: Sv: Re: Sv: Re: data-checksums Rob Sargent <robjsargent@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Andreas Joseph Krogh @ 2018-01-09 22:30 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org

På tirsdag 09. januar 2018 kl. 23:06:06, skrev Andres Freund <andres@anarazel.de
 <mailto:andres@anarazel.de>>:
Hi,

 On 2018-01-09 21:47:17 +0100, Andreas Joseph Krogh wrote:
 > Does PG use HW-accellerated crc if CPU supports it[1]?

 Yes we do, for WAL checksums. The page checksums are a different
 algorithm though, one which has the advantage of being SIMD compatible.

 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.
 
But SIMD-instructions are also HW-accellerated by modern CPUs IIUC?
 
So, if these CRCs all are HW-accelerated the penalty chould be next to 
neglishable?
 
-- Andreas Joseph Krogh
CTO / Partner - Visena AS
Mobile: +47 909 56 963
andreas@visena.com <mailto:andreas@visena.com>
www.visena.com <https://www.visena.com;
 <https://www.visena.com;


 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Sv: Re: Sv: Re: data-checksums
  2018-01-09 22:30 Sv: Re: Sv: Re: data-checksums Andreas Joseph Krogh <andreas@visena.com>
@ 2018-01-09 22:42 ` Rob Sargent <robjsargent@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Rob Sargent @ 2018-01-09 22:42 UTC (permalink / raw)
  To: pgsql-general@lists.postgresql.org



On 01/09/2018 03:30 PM, Andreas Joseph Krogh wrote:
> På tirsdag 09. januar 2018 kl. 23:06:06, skrev Andres Freund 
> <andres@anarazel.de <mailto:andres@anarazel.de>>:
>
>     Hi,
>
>     On 2018-01-09 21:47:17 +0100, Andreas Joseph Krogh wrote:
>     > Does PG use HW-accellerated crc if CPU supports it[1]?
>
>     Yes we do, for WAL checksums. The page checksums are a different
>     algorithm though, one which has the advantage of being SIMD
>     compatible.
>
>     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.
>
> But SIMD-instructions are also HW-accellerated by modern CPUs IIUC?
> So, if these CRCs all are HW-accelerated the penalty chould be next to 
> neglishable?
>
Leading directly back to JD's proposed documentation update.

^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-01-09 22:42 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-09 22:30 Sv: Re: Sv: Re: data-checksums Andreas Joseph Krogh <andreas@visena.com>
2018-01-09 22:42 ` Rob Sargent <robjsargent@gmail.com>

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