Re: Tuplesort merge pre-reading

From: Heikki Linnakangas <hlinnaka(at)iki(dot)fi>
To: Claudio Freire <klaussfreire(at)gmail(dot)com>
Cc: Peter Geoghegan <pg(at)heroku(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Tuplesort merge pre-reading
Date: 2016-09-22 07:17:06
Message-ID: b353e579-a5d2-fff9-5c89-ef43244c7964@iki.fi
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 09/22/2016 03:40 AM, Claudio Freire wrote:
> On Tue, Sep 20, 2016 at 3:34 PM, Claudio Freire <klaussfreire(at)gmail(dot)com> wrote:
>> The results seem all over the map. Some regressions seem significant
>> (both in the amount of performance lost and their significance, since
>> all 4 runs show a similar regression). The worst being "CREATE INDEX
>> ix_lotsofitext_zz2ijw ON lotsofitext (z, z2, i, j, w);" with 4GB
>> work_mem, which should be an in-memory sort, which makes it odd.
>>
>> I will re-run it overnight just in case to confirm the outcome.
>
> A new run for "patched" gives better results, it seems it was some
> kind of glitch in the run (maybe some cron decided to do something
> while running those queries).
>
> Attached
>
> In essence, it doesn't look like it's harmfully affecting CPU
> efficiency. Results seem neutral on the CPU front.

Looking at the spreadsheet, there is a 40% slowdown in the "slow"
"CREATE INDEX ix_lotsofitext_zz2ijw ON lotsofitext (z, z2, i, j, w);"
test with 4GB of work_mem. I can't reproduce that on my laptop, though.
Got any clue what's going on there?

- Heikki

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Pavel Stehule 2016-09-22 07:28:21 Re: PL/Python adding support for multi-dimensional arrays
Previous Message Michael Paquier 2016-09-22 05:52:52 Re: Tracking wait event for latches