Re: Memory Alignment in Postgres

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: Memory Alignment in Postgres
Дата
Msg-id 20140911142717.GD17294@awork2.anarazel.de
обсуждение исходный текст
Ответ на Re: Memory Alignment in Postgres  (Arthur Silva <arthurprs@gmail.com>)
Ответы Re: Memory Alignment in Postgres  (Arthur Silva <arthurprs@gmail.com>)
Список pgsql-hackers
On 2014-09-11 10:32:24 -0300, Arthur Silva wrote:
> Unaligned memory access received a lot attention in Intel post-Nehalen era.
> So it may very well pay off on Intel servers. You might find this blog post
> and it's comments/external-links interesting
> http://lemire.me/blog/archives/2012/05/31/data-alignment-for-speed-myth-or-reality/

FWIW, the reported results of imo pretty meaningless for postgres. It's
sequential access over larger amount of memory. I.e. a perfectly
prefetchable workload where it doesn't matter if superflous cachelines
are fetched because they're going to be needed next round anyway.

In many production workloads one of the most busy accesses to individual
datums is the binary search on individual pages during index
lookups. That's pretty much exactly the contrary to the above.

Not saying that it's not going to be a benefit in many scenarios, but
it's far from being as simple as saying that unaligned accesses on their
own aren't penalized anymore.

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Fabien COELHO
Дата:
Сообщение: Re: pgbench throttling latency limit
Следующее
От: Костя Кузнецов
Дата:
Сообщение: gist vacuum seaq access