Re: Lock contention high

Поиск
Список
Период
Сортировка
От Justin Pryzby
Тема Re: Lock contention high
Дата
Msg-id 20211013164805.GC27491@telsasoft.com
обсуждение исходный текст
Ответ на Lock contention high  (Ashkil Dighin <ashkildighin76@gmail.com>)
Ответы Re: Lock contention high  (MichaelDBA <MichaelDBA@sqlexec.com>)
Список pgsql-performance
On Tue, Oct 12, 2021 at 01:05:12PM +0530, Ashkil Dighin wrote:
> Hi,
> Lock contention observed high in PostgreSQLv13.3
> The source code compiled with GNC(GCCv11.x)
> PostgreSQL version: 13.3
> Operating system:   RHEL8.3
> Kernel name:4.18.0-305.10.2.el8_4.x86_64
> RAM Size:512GB
> SSD: 1TB
> The environment used IBM metal and test benchmark environment HammerDbv4.2
> Test case :TPC-C
> 
> Perf data for 24vu(TPC-C)
> --------------------------------
> 
>       18.99%  postgres  postgres            [.] LWLockAcquire
>      7.09%  postgres  postgres            [.] _bt_compare
>      8.66%  postgres  postgres            [.] LWLockRelease
...
> 1.Is there a way to tune the lock contention ?
> 2.Is any recommendations to tune/reduce the lock contention via postgres.conf

I think you'd want to find *which* LW locks are being waited on, to see if it's
something that can be easily tuned.

You can check pg_stat_activity, or maybe create a cronjob to record its content
for later analysis.

-- 
Justin



В списке pgsql-performance по дате отправления:

Предыдущее
От: Mladen Gogala
Дата:
Сообщение: Re: Lock contention high
Следующее
От: MichaelDBA
Дата:
Сообщение: Re: Lock contention high