Re: Many processes blocked at ProcArrayLock - Mailing list pgsql-hackers

From Michael Paquier
Subject Re: Many processes blocked at ProcArrayLock
Date
Msg-id CAB7nPqQa6OBPCDxgVLEcg_xXneCytChn3EZRM4eOmYdcJ-R=ow@mail.gmail.com
Whole thread Raw
In response to Many processes blocked at ProcArrayLock  (Xiaoyulei <xiaoyulei@huawei.com>)
Responses Re: Many processes blocked at ProcArrayLock  (Xiaoyulei <xiaoyulei@huawei.com>)
List pgsql-hackers
On Tue, Dec 2, 2014 at 5:07 PM, Xiaoyulei <xiaoyulei@huawei.com> wrote:
> Test configuration:
> Hardware:
>         4P intel server, 60 core 120 hard thread.
>         Memory:512G
>         SSD:2.4T
>
> PG:
> max_connections = 160                   # (change requires restart)
> shared_buffers = 32GB
> work_mem = 128MB
> maintenance_work_mem = 32MB
> bgwriter_delay = 100ms                  # 10-10000ms between rounds
> bgwriter_lru_maxpages = 200             # 0-1000 max buffers written/round
> bgwriter_lru_multiplier = 2.0           # 0-10.0 multipler on buffers scanned/round
> wal_level = minimal                     # minimal, archive, or hot_standby
> wal_buffers = 256MB                     # min 32kB, -1 sets based on shared_buffers
> autovacuum = off
> checkpoint_timeout=60min
> checkpoint_segments = 1000
> archive_mode = off
> synchronous_commit = off
> fsync = off
> full_page_writes = off
>
>
> We use tpcc and pgbench to test postgresql 9.4beat2 performance. And we found the tps/tpmc could not increase with
theterminal increase. The detail information is in attachment. 
>
> Many processes is blocked, I dump the call stack, and found these processes is blocked at: ProcArrayLock. 60%
processesis blocked in ProcArrayEndTransaction with ProcArrayLock EXCLUSIVE, 20% is in GetSnapshotData with
ProcArrayLockSHARED. Others locks like XLogFlush and WALInsertLock are not very heavy. 
>
> Is there any way we solve this problem?
Providing complete backtraces showing in which code paths those
processes are blocked would help better in understand what may be
going on.
--
Michael



pgsql-hackers by date:

Previous
From: Kouhei Kaigai
Date:
Subject: Re: [v9.5] Custom Plan API
Next
From: Peter Geoghegan
Date:
Subject: Re: B-Tree support function number 3 (strxfrm() optimization)