snapshot scalability: Move PGXACT->vacuumFlags to ProcGlobal->vacuumFlags.
Andres Freund <andres@anarazel.de>
snapshot scalability: Move PGXACT->vacuumFlags to ProcGlobal->vacuumFlags. Similar to the previous commit this increases the chance that data frequently needed by GetSnapshotData() stays in l2 cache. As we now take care to not unnecessarily write to ProcGlobal->vacuumFlags, there should be very few modifications to the ProcGlobal->vacuumFlags array. 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
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/access/transam/twophase.c | modified | +1 −1 |
| src/backend/commands/vacuum.c | modified | +3 −2 |
| src/backend/postmaster/autovacuum.c | modified | +3 −3 |
| src/backend/replication/logical/logical.c | modified | +2 −1 |
| src/backend/replication/slot.c | modified | +2 −1 |
| src/backend/storage/ipc/procarray.c | modified | +43 −23 |
| src/backend/storage/lmgr/deadlock.c | modified | +1 −3 |
| src/backend/storage/lmgr/proc.c | modified | +10 −6 |
| src/include/storage/proc.h | modified | +10 −2 |
Discussion
- Improving connection scalability: GetSnapshotData() 119 messages · 2020-03-01 → 2021-03-01