pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mladen Gogala <gogala.mladen@gmail.com>
To: pgsql-performance@lists.postgresql.org
Subject: Re: HIGH IO and Less CPU utilization
Date: Thu, 31 Mar 2022 10:44:57 -0400
Message-ID: <a5209b27-f57a-59a6-8b6b-c71095ffd91e@gmail.com> (raw)
In-Reply-To: <CADdgF6ecxpubq-wm4bcDCyj3yt6uNjJgXKcdCS2Jn+NvE4abFw@mail.gmail.com>
References: <CADdgF6ecxpubq-wm4bcDCyj3yt6uNjJgXKcdCS2Jn+NvE4abFw@mail.gmail.com>

On 3/29/22 14:04, Rambabu g wrote:
> Hi All,
>
> We have an issue with high load and IO Wait's but less cpu on postgres 
> Database, The emp Table size is around 500GB, and the connections are 
> very less.
>
> Please suggest to us do we need to change and config parameters at 
> system level or Postgres configuration.


The "emp" table is 500 GB? You're doing something wrong, The "emp" table 
should have 14 rows and the "dept" table should have 4 rows The "bonus" 
and "salgrade" tables should also be very small. The guy named Bruce 
Scott could probably help you with that schema. Other than that, do you 
have a SQL causing all this ruckus and a detailed explain plan ("explain 
(analyze,costs,buffers)") for the SQL using most of the time? You can 
analyze the log file with PgBadger to get the queries consuming the most 
time.

-- 
Mladen Gogala
Database Consultant
Tel: (347) 321-1217
https://dbwhisperer.wordpress.com

view thread (8+ messages)  latest in thread

Message-ID: <a5209b27-f57a-59a6-8b6b-c71095ffd91e@gmail.com>
Permalink:  ../a5209b27-f57a-59a6-8b6b-c71095ffd91e@gmail.com/
Also on:    postgresql.org/message-id/a5209b27-f57a-59a6-8b6b-c71095ffd91e@gmail.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: gogala.mladen@gmail.com, pgsql-performance@lists.postgresql.org
  Subject: Re: HIGH IO and Less CPU utilization
  In-Reply-To: <a5209b27-f57a-59a6-8b6b-c71095ffd91e@gmail.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