From: Tom Lane <tgl@sss.pgh.pa.us>
To: Neto pr <netoprbr9@gmail.com>
Cc: pgsql-general@postgresql.org
Subject: Re: Runtime analysis
Date: Sun, 05 Nov 2017 10:41:24 -0500
Message-ID: <13785.1509896484@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TZvY+PayZ3fCScKYw8=c6bx6MFpi6VZ3SJLfMFU8p7myOzxQ@mail.gmail.com>
References: <CA+TZvY+PayZ3fCScKYw8=c6bx6MFpi6VZ3SJLfMFU8p7myOzxQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>
Neto pr <netoprbr9@gmail.com> writes:
> I expected that the first run would always take longer than the others
> because of not having cached data, but look what happened:
> - in 6 cases the first execution was more faster than all executions.
> - in 2 cases only, the first exececution was more slower than all
> executions
> If anyone has any suspicion or explanation, why in some cases the first
> execution can be faster than the others, please reply to this email.
Your Xeon is probably a variable-speed chip; did you take measures to
freeze the CPU frequency? On my RHEL server, I generally can't get
very reproducible numbers from benchmarks unless I first do
"sudo cpupower frequency-set --governor performance"
because the default "ondemand" governor is too eager to ratchet down
the frequency. Things might be different on Debian though.
In multi-socket servers, NUMA effects across sockets can be a big
headache too.
regards, tom lane
--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, netoprbr9@gmail.com
Subject: Re: Runtime analysis
In-Reply-To: <13785.1509896484@sss.pgh.pa.us>
References: <CA+TZvY+PayZ3fCScKYw8=c6bx6MFpi6VZ3SJLfMFU8p7myOzxQ@mail.gmail.com> <13785.1509896484@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox