]> granicus.if.org Git - postgresql/commit
Divide the lock manager's shared state into 'partitions', so as to
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 Dec 2005 21:02:18 +0000 (21:02 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 11 Dec 2005 21:02:18 +0000 (21:02 +0000)
commitec0baf949ecdee0bf8d8e60cc8dba0137aac8d19
treeb435a97a4e87c31a6b644ac2d9d1f433de487588
parentbe8100d64ec93ccd8160b37379ba189aab4d0ef1
Divide the lock manager's shared state into 'partitions', so as to
reduce contention for the former single LockMgrLock.  Per my recent
proposal.  I set it up for 16 partitions, but on a pgbench test this
gives only a marginal further improvement over 4 partitions --- we need
to test more scenarios to choose the number of partitions.
src/backend/access/transam/twophase.c
src/backend/storage/ipc/procarray.c
src/backend/storage/lmgr/README
src/backend/storage/lmgr/deadlock.c
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lwlock.c
src/backend/storage/lmgr/proc.c
src/include/storage/lock.h
src/include/storage/lwlock.h
src/include/storage/proc.h