Re: hashagg slowdown due to spill changes

Поиск
Список
Период
Сортировка
Искать
От
Andres Freund
Тема
Re: hashagg slowdown due to spill changes
Дата
Msg-id
20200724235114.xy4a2egntf7y7djh@alap3.anarazel.de
Ответ на
Список
Дерево обсуждения
hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Re: hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Alvaro Herrera <alvherre@2ndquadrant.com>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Re: hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Re: hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Re: hashagg slowdown due to spill changes Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Re: hashagg slowdown due to spill changes Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Re: hashagg slowdown due to spill changes Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: hashagg slowdown due to spill changes Robert Haas <robertmhaas@gmail.com>
Re: hashagg slowdown due to spill changes Tom Lane <tgl@sss.pgh.pa.us>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Re: hashagg slowdown due to spill changes Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Melanie Plageman <melanieplageman@gmail.com>
Re: hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Melanie Plageman <melanieplageman@gmail.com>
Re: hashagg slowdown due to spill changes Tomas Vondra <tomas.vondra@2ndquadrant.com>
Re: hashagg slowdown due to spill changes Andres Freund <andres@anarazel.de>
Re: hashagg slowdown due to spill changes Peter Geoghegan <pg@bowt.ie>
Re: hashagg slowdown due to spill changes Peter Geoghegan <pg@bowt.ie>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Re: hashagg slowdown due to spill changes Peter Geoghegan <pg@bowt.ie>
Re: hashagg slowdown due to spill changes Jeff Davis <pgsql@j-davis.com>
Hi,

On 2020-06-12 14:37:15 -0700, Andres Freund wrote:
> On 2020-06-11 11:14:02 -0700, Jeff Davis wrote:
> > On Thu, 2020-06-11 at 10:45 -0700, Andres Freund wrote:
> > > Did you run any performance tests?
> >
> > Yes, I reproduced your ~12% regression from V12, and this patch nearly
> > eliminated it for me.
> 
> I spent a fair bit of time looking at the difference. Jeff had let me
> know on chat that he was still seeing some difference, but couldn't
> quite figure out where that was.
> 
> Trying it out myself, I observed that the patch helped, but not that
> much. After a bit I found one major reason for why:
> LookupTupleHashEntryHash() assigned the hash to pointer provided by the
> caller's before doing the insertion. That ended up causing a pipeline
> stall (I assume it's store forwarding, but not sure). Moving the
> assignment to the caller variable to after the insertion got rid of
> that.

This is still not resolved. We're right now slower than 12. It's
effectively not possible to do performance comparisons right now. This
was nearly two months ago.

Greetings,

Andres Freund


В списке pgsql-hackers по дате отправления
От: Tom Lane
Дата:
От: Andres Freund
Дата:
FAQ