Re: ZFS and Postgresql - WASRe: Best OS for Postgres 8.2 - Mailing list pgsql-performance

From david@lang.hm
Subject Re: ZFS and Postgresql - WASRe: Best OS for Postgres 8.2
Date
Msg-id Pine.LNX.4.64.0705091054060.4467@asgard.lang.hm
Whole thread Raw
In response to Re: ZFS and Postgresql - WASRe: Best OS for Postgres 8.2  (Jignesh Shah <J.K.Shah@Sun.COM>)
List pgsql-performance
On Wed, 9 May 2007, Jignesh Shah wrote:

> But we still pay the penalty on WAL while writing them in the first place I
> guess .. Is there an option to disable it.. I can test how much is the impact
> I guess couple of %s but good to verify :-) )

on modern CPU's where the CPU is significantly faster then RAM,
calculating a checksum is free if the CPU has to touch the data anyway
(cycles where it would be waiting for a cache miss are spent doing the
calculations)

if you don't believe me, hack the source to remove the checksum and see if
you can measure any difference.

David Lang

  >
> Regards,
> Jignesh
>
>
> Alvaro Herrera wrote:
>>  Jignesh Shah escribió:
>>
>>
>> >  Now comes the thing that I am still exploring
>> >  * Do we do checksum in WAL ? I guess we do .. Which means that we are
>> >  now doing double checksumming on the data. One in ZFS and one in
>> >  postgresql. ZFS does allow checksumming to be turned off (but on new
>> >  blocks allocated). But of course the philosophy is where should it be
>> >  done (ZFS or PostgreSQL).
>> >
>>
>>  Checksums on WAL are not optional in Postgres, because AFAIR they are
>>  used to determine when it should stop recovering.
>>
>>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: Don't 'kill -9' the postmaster
>
>

pgsql-performance by date:

Previous
From: Jignesh Shah
Date:
Subject: Re: ZFS and Postgresql - WASRe: Best OS for Postgres 8.2
Next
From: "Valentine Gogichashvili"
Date:
Subject: Re: Cannot make GIN intarray index be used by the planner