how to debug the postgres performance issue

From: 范国腾 <fanguoteng(at)highgo(dot)com>
To: "pgsql-admin(at)lists(dot)postgresql(dot)org" <pgsql-admin(at)lists(dot)postgresql(dot)org>
Cc: 王亮 <wangliang(at)highgo(dot)com>
Subject: how to debug the postgres performance issue
Date: 2018-09-14 09:34:20
Message-ID: c48da347e2b048a5b4cff2f048c5330b@EX01.highgo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

We are doing the performance test in two nodes system(active/standby). Now we find that the disk IO is very high but the CPU is low. Is there any method or tool to help us debug to find which function makes this issue?

We try to use the gprof but it does not help us. The result show the LWLockAssign(the shared buffer init) is called the most time. The other function is called no more that 33139. That seems no problem.

Could you please give any suggestion how to debug the high IO/low CPU issue?

Thanks
Steven

===================================
no time accumulated

% cumulative self self total
time seconds seconds calls Ts/call Ts/call name
0.00 0.00 0.00 9240928 0.00 0.00 LWLockAssign
0.00 0.00 0.00 33139 0.00 0.00 ShmemAlloc
0.00 0.00 0.00 33084 0.00 0.00 seg_alloc
….

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Laurenz Albe 2018-09-14 11:57:38 Re: Difference between C and en_US.UTF-8 Collate & CType in Postgres 10.x
Previous Message Debraj Manna 2018-09-14 08:46:26 Difference between C and en_US.UTF-8 Collate & CType in Postgres 10.x