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

* Sv: Re: data-checksums
@ 2018-01-09 20:47  Andreas Joseph Krogh <andreas@visena.com>
  0 siblings, 1 reply; 2+ messages in thread

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

På tirsdag 09. januar 2018 kl. 21:37:16, skrev Joshua D. Drake <
jd@commandprompt.com <mailto:jd@commandprompt.com>>:
On 01/09/2018 12:22 PM, Andres Freund wrote:
 > On 2018-01-09 20:04:04 +0100, Rakesh Kumar wrote:
 >>>> I also would like to believe that the hit is small, but when PG
 >>>> official document writes "noticeable performance penalty", it becomes
 >>>> difficult to convince management that the hit is small :-)
 >>> Why believe, when you can measure?
 >> yup doing that.  But I still feel that PG documentation should stay
 >> away from such scare mongering.  Or did the lawyers write that :)
 > So we should rather lie about it having a potential for performance
 > impact? Who'd be helped by that?

 It isn't a lie, it depends on the workload and hardware. Adjusting the
 documentation to say something like the following probably isn't a bad idea:

 The use of the data checksum feature may incur a performance penalty.
 However, this does depend on your particular workload and provisioned
 hardware. It is wise to test the feature based on your specific
 requirements.
 
Does PG use HW-accellerated crc if CPU supports it[1]?
 
[1] https://en.wikipedia.org/wiki/SSE4
 
-- 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: data-checksums
@ 2018-01-09 22:06  Andres Freund <andres@anarazel.de>
  parent: Andreas Joseph Krogh <andreas@visena.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Andres Freund @ 2018-01-09 22:06 UTC (permalink / raw)
  To: Andreas Joseph Krogh <andreas@visena.com>; +Cc: pgsql-general@lists.postgresql.org

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.

Andres Freund




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


end of thread, other threads:[~2018-01-09 22:06 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 20:47 Sv: Re: data-checksums Andreas Joseph Krogh <andreas@visena.com>
2018-01-09 22:06 ` Andres Freund <andres@anarazel.de>

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