pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: bruno da silva <brunogiovs@gmail.com>
Cc: pgsql-performance@lists.postgresql.org
Subject: Re: PostgresSQL 9.5.21 very slow to connect and perform basic queries
Date: Thu, 21 Jul 2022 15:21:46 -0500
Message-ID: <20220721202146.GR12702@telsasoft.com> (raw)
In-Reply-To: <CAB+Nuk_-pQ28KmLkirgPuCLib97SFYM9e41HcEn1tDn+7Ks=9g@mail.gmail.com>

On Thu, Jul 21, 2022 at 03:59:30PM -0400, bruno da silva wrote:
>   OS/version: CentOS release 6.9 (Final)

How are these set ?

tail /sys/kernel/mm/ksm/run /sys/kernel/mm/transparent_hugepage/{defrag,enabled,khugepaged/defrag} /proc/sys/vm/zone_reclaim_mode

I suspect you may be suffering from issues with transparent huge pages.

I suggest to disable KSM and THP, or upgrade to a newer OS.

I've written before about these:
https://www.postgresql.org/message-id/20170524155855.GH31097@telsasoft.com
https://www.postgresql.org/message-id/20190625162338.GF18602@telsasoft.com
https://www.postgresql.org/message-id/20170718180152.GE17566@telsasoft.com
https://www.postgresql.org/message-id/20191004060300.GA11241@telsasoft.com
https://www.postgresql.org/message-id/20200413144254.GS2228@telsasoft.com
https://www.postgresql.org/message-id/20220329182453.GA28503@telsasoft.com

On Thu, Jul 21, 2022 at 04:01:10PM -0400, bruno da silva wrote:
> The issue started a month ago.

Ok .. but how long has the DB been running under this environment ?

-- 
Justin





view thread (17+ messages)  latest in thread

Message-ID: <20220721202146.GR12702@telsasoft.com>
Permalink:  ../20220721202146.GR12702@telsasoft.com/
Also on:    postgresql.org/message-id/20220721202146.GR12702@telsasoft.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 using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: pryzby@telsasoft.com, brunogiovs@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: PostgresSQL 9.5.21 very slow to connect and perform basic queries
  In-Reply-To: <20220721202146.GR12702@telsasoft.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