git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 5788e25) | patch
snapshot scalability: Move subxact info to ProcGlobal, remove PGXACT.
2020年8月14日 21:30:38 +0000 (14:30 -0700)
2020年8月14日 22:33:35 +0000 (15:33 -0700)
commit 73487a60fc1063ba4b5178b69aee4ee210c182c4
snapshot scalability: Move subxact info to ProcGlobal, remove PGXACT.

Similar to the previous changes this increases the chance that data
frequently needed by GetSnapshotData() stays in l2 cache. In many
workloads subtransactions are very rare, and this makes the check for
that considerably cheaper.

As this removes the last member of PGXACT, there is no need to keep it
around anymore.

On a larger 2 socket machine this and the two preceding commits result
in a ~1.07x performance increase in read-only pgbench. For read-heavy
mixed r/w workloads without row level contention, I see about 1.1x.

Author: Andres Freund <andres@anarazel.de>
Reviewed-By: Robert Haas <robertmhaas@gmail.com>
Reviewed-By: Thomas Munro <thomas.munro@gmail.com>
Reviewed-By: David Rowley <dgrowleyml@gmail.com>
Discussion: https://postgr.es/m/20200301083601.ews6hz5dduc3w2se@alap3.anarazel.de
src/backend/access/transam/clog.c diff | blob | blame | history
src/backend/access/transam/twophase.c diff | blob | blame | history
src/backend/access/transam/varsup.c diff | blob | blame | history
src/backend/storage/ipc/procarray.c diff | blob | blame | history
src/backend/storage/lmgr/proc.c diff | blob | blame | history
src/include/storage/proc.h diff | blob | blame | history
src/tools/pgindent/typedefs.list diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /