git.postgresql.org Git - postgresql.git/commit
2011年11月25日 13:02:10 +0000 (08:02 -0500)
2011年11月25日 13:02:10 +0000 (08:02 -0500)
commit ed0b409d22346b1b027a4c2099ca66984d94b6dd
Move "hot" members of PGPROC into a separate PGXACT array.
This speeds up snapshot-taking and reduces ProcArrayLock contention.
Also, the PGPROC (and PGXACT) structures used by two-phase commit are
now allocated as part of the main array, rather than in a separate
array, and we keep ProcArray sorted in pointer order. These changes
are intended to minimize the number of cache lines that must be pulled
in to take a snapshot, and testing shows a substantial increase in
performance on both read and write workloads at high concurrencies.
Pavan Deolasee, Heikki Linnakangas, Robert Haas
14 files changed:
This is the main PostgreSQL git repository.
RSS
Atom