Re: [HACKERS] Checksums by default? - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: [HACKERS] Checksums by default?
Date
Msg-id CAA4eK1KMASdWM_RW6wkE85a4+sxXf=x8BRkbGiAsPcVK3z=DyQ@mail.gmail.com
Whole thread Raw
In response to Re: [HACKERS] Checksums by default?  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
Responses Re: [HACKERS] Checksums by default?  (Tomas Vondra <tomas.vondra@2ndquadrant.com>)
List pgsql-hackers
On Mon, Jan 23, 2017 at 1:18 PM, Tomas Vondra
<tomas.vondra@2ndquadrant.com> wrote:
> On 01/23/2017 08:30 AM, Amit Kapila wrote:
>>
>>
>> I think if we can get data for pgbench read-write workload when data
>> doesn't fit in shared buffers but fit in RAM, that can give us some
>> indication.  We can try by varying the ratio of shared buffers w.r.t
>> data.  This should exercise the checksum code both when buffers are
>> evicted and at next read.  I think it also makes sense to check the
>> WAL data size for each of those runs.
>>
>
> Yes, I'm thinking that's pretty much the worst case for OLTP-like workload,
> because it has to evict buffers from shared buffers, generating a continuous
> stream of writes. Doing that on good storage (e.g. PCI-e SSD or possibly
> tmpfs) will further limit the storage overhead, making the time spent
> computing checksums much more significant. Makes sense?
>

Yeah, I think that can be helpful with respect to WAL, but for data,
if we are considering the case where everything fits in RAM, then
faster storage might or might not help.

-- 
With Regards,
Amit Kapila.
EnterpriseDB: http://www.enterprisedb.com



pgsql-hackers by date:

Previous
From: Haribabu Kommi
Date:
Subject: Re: [HACKERS] Parallel bitmap heap scan
Next
From: Kuntal Ghosh
Date:
Subject: Re: [HACKERS] Passing query string to workers