Re: WAL CPU overhead/optimization (was Master-slave visibility order)

Поиск
Список
Период
Сортировка
От Ants Aasma
Тема Re: WAL CPU overhead/optimization (was Master-slave visibility order)
Дата
Msg-id CA+CSw_vsaZrkWn1n79pOdcxog3UnYg51VBBn1B4CGuA5vLt=HA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WAL CPU overhead/optimization (was Master-slave visibility order)  (Andres Freund <andres@2ndquadrant.com>)
Ответы Re: WAL CPU overhead/optimization (was Master-slave visibility order)  ("ktm@rice.edu" <ktm@rice.edu>)
Re: WAL CPU overhead/optimization (was Master-slave visibility order)  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Fri, Aug 30, 2013 at 3:02 AM, Andres Freund <andres@2ndquadrant.com> wrote:
> I am not sure "hot cache large buffer performance" is really the
> interesting case. Most of the XLogInsert()s are pretty small in the
> common workloads. I vaguely recall trying 8 and getting worse
> performance on many workloads, but that might have been a problem of my
> implementation.

Slice-by-8 doesn't have any overhead for small buffers besides the
lookup tables, so it most likely the cache misses that were the issue.
Murmur3, CityHash and SpookyHash don't have any lookup tables and are
excellent with small keys. Especially CityHash, 64 byte hash is quoted
at 9ns.

> The reason I'd like to go for a faster CRC32 implementation as a first
> step is that it's easy. Easy to verify, easy to analyze, easy to
> backout. I personally don't have enough interest/time in the 9.4 cycle
> to purse conversion to a different algorithm (I find the idea of using
> different ones on 32/64bit pretty bad), but I obviously won't stop
> somebody else ;)

I might give it a shot later this cycle as I have familiarized my self
with the problem domain anyway. I understand the appeal of staying
with what we have, but this would cap the speedup at 4x and has large
caveats with the extra lookup tables. A 28x speedup might be worth the
extra effort.

Regards,
Ants Aasma



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: dynamic shared memory
Следующее
От: Robert Haas
Дата:
Сообщение: Re: ALTER SYSTEM SET command to change postgresql.conf parameters (RE: Proposal for Allow postgresql.conf values to be changed via SQL [review])