pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@2ndquadrant.com>
To: Nicola Contu <nicola.contu@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Centos 6.9 and centos 7
Date: Mon, 4 Dec 2017 16:01:36 +0100
Message-ID: <4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com> (raw)
In-Reply-To: <CAMTZZh0qVJ6fe7CV_Pxw8Yg4BhWycv-1EvWLuHQTNG47T9Rotw@mail.gmail.com>
References: <CAMTZZh0qVJ6fe7CV_Pxw8Yg4BhWycv-1EvWLuHQTNG47T9Rotw@mail.gmail.com>


On 12/04/2017 02:19 PM, Nicola Contu wrote:
...>
> centos 7 : 
> 
> dbname=# \timing Timing is on. cmdv3=# SELECT id FROM
> client_billing_account WHERE name = 'name'; id ------- ***** (1 row)
> Time: 3.884 ms
> 
> centos 6.9
> 
> dbname=# SELECT id FROM client_billing_account WHERE name = 'name'; id
> ------- ***** (1 row) Time: 1.620 ms
> 

We need to see EXPLAIN (ANALYZE,BUFFERS) for the queries.

Are those VMs or bare metal? What CPUs and RAM are there? Have you
checked that power management is disabled / cpufreq uses the same
policy? That typically affects short CPU-bound queries.

Other than that, I recommend performing basic system benchmarks (CPU,
memory, ...) and only if those machines perform equally should you look
for issues in PostgreSQL. Chances are the root cause is in hw or OS, in
which case you need to address that first.

regards

-- 
Tomas Vondra                  http://www.2ndQuadrant.com
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services




view thread (9+ messages)  latest in thread

Message-ID: <4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com>
Permalink:  ../4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com/
Also on:    postgresql.org/message-id/4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com

 · 

reply

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: tomas.vondra@2ndquadrant.com, nicola.contu@gmail.com
  Subject: Re: Centos 6.9 and centos 7
  In-Reply-To: <4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com>
  References: <CAMTZZh0qVJ6fe7CV_Pxw8Yg4BhWycv-1EvWLuHQTNG47T9Rotw@mail.gmail.com> <4663621c-d667-dcb1-8652-afdb5a6b1718@2ndquadrant.com>

* 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