Re: Quantify small changes to predicate evaluation

From: Marti Raudsepp <marti(at)juffo(dot)org>
To: Dennis Butterstein <soullinuxer(at)web(dot)de>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Quantify small changes to predicate evaluation
Date: 2014-06-25 10:42:15
Message-ID: CABRT9RBWxksLd=MLWqpiGfpgEcniZnok7k8wDWRwkZnfYuqLLw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Jun 17, 2014 at 5:23 PM, Dennis Butterstein <soullinuxer(at)web(dot)de> wrote:
> I tried the proposed tweaks and
> see some differences regarding the measurements.
> Unfortunately the variance between the runs seems to remain high.

Using these techniques I managed to get standard deviation below 1.5%
in my read-only tests (and most below 1%). Not all workloads may be
able to achieve that, but your should be able to do better than your
results.

Maybe your cooling is not sufficient? It seems your 2nd run is always
slower than the first one, maybe the CPU is doing thermal throttling?
Lowering the max frequency might be something to try to resolve that,
like "cpupower frequency-set --max 2GHz"

How do you run your benchmark, are you using pgbench? Single threaded?
Is the client locked to the same CPU core?

Regards,
Marti

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2014-06-25 10:51:10 Re: Allowing NOT IN to use ANTI joins
Previous Message Samrat Revagade 2014-06-25 10:32:39 Re: psql: show only failed queries