Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eBN3L-0007Qz-JT for pgsql-general@arkaria.postgresql.org; Sun, 05 Nov 2017 15:41:39 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eBN3K-00075K-Cu for pgsql-general@arkaria.postgresql.org; Sun, 05 Nov 2017 15:41:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eBN3I-00074G-CM for pgsql-general@postgresql.org; Sun, 05 Nov 2017 15:41:36 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eBN39-0003dz-KF for pgsql-general@postgresql.org; Sun, 05 Nov 2017 15:41:34 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id vA5FfOG9013786; Sun, 5 Nov 2017 10:41:24 -0500 From: Tom Lane To: Neto pr cc: pgsql-general@postgresql.org Subject: Re: Runtime analysis In-reply-to: References: Comments: In-reply-to Neto pr message dated "Sun, 05 Nov 2017 09:49:18 -0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13784.1509896484.1@sss.pgh.pa.us> Date: Sun, 05 Nov 2017 10:41:24 -0500 Message-ID: <13785.1509896484@sss.pgh.pa.us> List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org Neto pr 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