Re: Questions about checksum feature in 9.3

From: David Johnston <polobo(at)yahoo(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Questions about checksum feature in 9.3
Date: 2013-09-16 15:14:39
Message-ID: 1379344479935-5771100.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Ants Aasma-2 wrote
>> So, has anyone compiled checksum vectorized on OS X? Are there any
>> performance data that would indicate whether or not I should worry with
>> this in the first place?
>
> Even without vectorization the worst case performance hit is about
> 20%. This is for a workload that is fully bottlenecked on swapping
> pages in between shared buffers and OS cache. In real world cases it's
> hard to imagine it having any measurable effect. A single core can
> checksum several gigabytes per second of I/O without vectorization,
> and about 30GB/s with vectorization.

Thoughts on how/where to provide guidance as to this kind of concern. The
single paragraph in the initdb documentation seems to be lacking. Would a
destination page on the wiki, linked to from the documentation, where
"current knowledge" regarding benchmarks and caveats can be stored, be
appropriate.

To that end, Ants, do you actually have some resources and/or benchmarks
which support your claim and that you can provide links to?

The "single" core aspect is interesting. Does the implementation have a
dedicated core to perform these calculations or must the same thread that
handles the relevant query perform this work as well? How much additional
impact/overhead does having to multitask have on the maximum throughput of a
single core in processing checksums?

This whole vectorization angle also doesn't seem to be in the
documentation...though I didn't look super hard.

David J.

--
View this message in context: http://postgresql.1045698.n5.nabble.com/Questions-about-checksum-feature-in-9-3-tp5770936p5771100.html
Sent from the PostgreSQL - hackers mailing list archive at Nabble.com.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Kevin Grittner 2013-09-16 15:28:18 Re: record identical operator
Previous Message Ants Aasma 2013-09-16 14:45:16 Re: Questions about checksum feature in 9.3