re:Re: performance bottlenecks on lock transactionid

From: 王若楠 <wrn(at)hljdx(dot)net>
To: 王若楠 <wrn(at)hljdx(dot)net>, pgsql-performance <pgsql-performance(at)lists(dot)postgresql(dot)org>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
Subject: re:Re: performance bottlenecks on lock transactionid
Date: 2019-08-14 07:57:04
Message-ID: tencent_25DF4C35A54D4A33B5206E53BF6D468BB208@qq.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-performance

hello,Laurenz&nbsp;Albe

Yes,&nbsp;pg_locks&nbsp;is&nbsp;only&nbsp;an&nbsp;item&nbsp;that&nbsp;does&nbsp;not&nbsp;get&nbsp;a&nbsp;lock&nbsp;in&nbsp;the&nbsp;view.&nbsp;The&nbsp;test&nbsp;data&nbsp;is&nbsp;300&nbsp;warehouses&nbsp;connections,&nbsp;and&nbsp;the&nbsp;CPU&nbsp;is&nbsp;only&nbsp;about&nbsp;60%.&nbsp;I&nbsp;think&nbsp;the&nbsp;lock&nbsp;becomes&nbsp;a&nbsp;performance&nbsp;bottleneck&nbsp;at&nbsp;this&nbsp;time.&nbsp;I&nbsp;want&nbsp;to&nbsp;find&nbsp;a&nbsp;way&nbsp;to&nbsp;reduce&nbsp;the&nbsp;lock&nbsp;waiting&nbsp;and&nbsp;improve&nbsp;the&nbsp;performance.

------------------ 原始邮件 ------------------
发件人:&nbsp;"Laurenz Albe" <laurenz(dot)albe(at)cybertec(dot)at&gt;;
发送时间:&nbsp;2019年8月14日(星期三) 15:31
收件人:&nbsp;"王若楠" <wrn(at)hljdx(dot)net&gt;;"pgsql-performance" <pgsql-performance(at)lists(dot)postgresql(dot)org&gt;;
主题:&nbsp;Re: performance bottlenecks on lock transactionid

王若楠 wrote:
&gt; We used benchmarksql 4.1.0 to test the performance of PG12 beta TPCC.
&gt; We found performance bottlenecks on lock transactionid.

You included an attachment with results from the "pg_locks" view
where "granted" is FALSE for all entries.

I'll assume that these are not *all* the entries in the view, right?

Since the locks are waiting for different transaction IDs, I'd
assume that this is just a case of contention: many transactions are
trying to modify the same rows concurrently.

This is to be expected.
Perhaps your benchmark is running with too many connections on
too few table rows?

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

Responses

Browse pgsql-performance by date

  From Date Subject
Next Message Daulat Ram 2019-08-14 09:39:43 RE: ORA-24345: A Truncation or null fetch error occurred -ora2pg
Previous Message Laurenz Albe 2019-08-14 07:31:29 Re: performance bottlenecks on lock transactionid