pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@anarazel.de>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: snapshot scalability: Move PGXACT->vacuumFlags to ProcGlobal->va
Date: Fri, 14 Aug 2020 22:40:13 +0000
Message-ID: <E1k6iMv-0001VQ-ND@gemulon.postgresql.org> (raw)

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5788e258bb26495fab65ff3aa486268d1c50b123

Modified Files
--------------
src/backend/access/transam/twophase.c     |  2 +-
src/backend/commands/vacuum.c             |  5 ++-
src/backend/postmaster/autovacuum.c       |  6 +--
src/backend/replication/logical/logical.c |  3 +-
src/backend/replication/slot.c            |  3 +-
src/backend/storage/ipc/procarray.c       | 66 ++++++++++++++++++++-----------
src/backend/storage/lmgr/deadlock.c       |  4 +-
src/backend/storage/lmgr/proc.c           | 16 +++++---
src/include/storage/proc.h                | 12 +++++-
9 files changed, 75 insertions(+), 42 deletions(-)



Message-ID: <E1k6iMv-0001VQ-ND@gemulon.postgresql.org>
Permalink:  ../E1k6iMv-0001VQ-ND@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1k6iMv-0001VQ-ND@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: andres@anarazel.de
  Subject: Re: pgsql: snapshot scalability: Move PGXACT->vacuumFlags to ProcGlobal->va
  In-Reply-To: <E1k6iMv-0001VQ-ND@gemulon.postgresql.org>
  References: <E1k6iMv-0001VQ-ND@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox