pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nathan Bossart <nathan@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use a non-locking initial test in TAS_SPIN on AArch64.
Date: Fri, 10 Jan 2025 19:18:30 +0000
Message-ID: <E1tWKWc-000s5t-8V@gemulon.postgresql.org> (raw)

Use a non-locking initial test in TAS_SPIN on AArch64.

Our testing showed that this is helpful at sufficiently high
contention levels and doesn't hurt performance on smaller machines.
The new TAS_SPIN macro for AArch64 is identical to the ones added
for PPC and x86_64 (see commits bc2a050d40 and b03d196be0).

Reported-by: Salvatore Dipietro
Reviewed-by: Jingtang Zhang, Andres Freund
Tested-by: Tom Lane
Discussion: https://postgr.es/m/ZxgDEb_VpWyNZKB_%40nathan

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3d0b4b1068018f624d5ef7c9f90b536ed58345b5

Modified Files
--------------
src/include/storage/s_lock.h | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)



view thread (6+ messages)  latest in thread

Message-ID: <E1tWKWc-000s5t-8V@gemulon.postgresql.org>
Permalink:  ../E1tWKWc-000s5t-8V@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1tWKWc-000s5t-8V@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: nathan@postgresql.org
  Subject: Re: pgsql: Use a non-locking initial test in TAS_SPIN on AArch64.
  In-Reply-To: <E1tWKWc-000s5t-8V@gemulon.postgresql.org>
  References: <E1tWKWc-000s5t-8V@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