Re: Help me in reducing the CPU cost for the high cost query below, as it is hitting production seriously!!

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: pavan95 <pavan(dot)postgresdba(at)gmail(dot)com>
Cc: pgsql-performance(at)postgresql(dot)org
Subject: Re: Help me in reducing the CPU cost for the high cost query below, as it is hitting production seriously!!
Date: 2018-05-23 20:01:32
Message-ID: 20180523200132.GL30060@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

On Wed, May 23, 2018 at 07:03:18AM -0700, pavan95 wrote:
> Please find the explain plan which got increased again vastly. Is this
> because of the increase in rows?
>
> Link : https://explain.depesz.com/s/Ifr <http://>

That's explain without "analyze", so not very useful.

There's handful of questions:

On Wed, May 23, 2018 at 08:43:22AM -0500, Justin Pryzby wrote:
> - postgres parameters: what are shared_buffers, work_mem, effective_cache_size ?
> + https://wiki.postgresql.org/wiki/Server_Configuration
> - are there other DBs/applications running on the server/VM ?
> - kernel tuning (readahead, VM parameters, write cache, scheduler, THP, etc)
> - server hardware (what OS? storage? RAM? filesystem?)
> - how does the storage perform outside of postgres?
> + something like this: /usr/sbin/bonnie++ -f -n0 -x4 -d /var/lib/pgsql

Justin

In response to

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message pavan95 2018-05-24 05:20:42 Re: Help me in reducing the CPU cost for the high cost query below, as it is hitting production seriously!!
Previous Message Sand Stone 2018-05-23 14:06:41 Re: dsa_allocate() faliure