Add spin_delay() implementation for Arm in s_lock.h

From: "Blake, Geoff" <blakgeof(at)amazon(dot)com>
To: "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Add spin_delay() implementation for Arm in s_lock.h
Date: 2021-12-10 17:44:36
Message-ID: 78338F29-9D7F-4DC8-BD71-E9674CE71425@amazon.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

Have a tiny patch to add an implementation of spin_delay() for Arm64 processors to match behavior with x86's PAUSE instruction. See negligible benefit on the pgbench tpcb-like workload so at worst it appears to do no harm but should help some workloads that experience some lock contention that need to spin.

Thanks,
Geoffrey Blake

Attachment Content-Type Size
0001-Add-spin_delay-implementation-for-Arm-processors-by-.patch application/octet-stream 1.1 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Godfrin, Philippe E 2021-12-10 17:46:01 RE: [EXTERNAL] Re: track_io_timing default setting
Previous Message Tomas Vondra 2021-12-10 16:33:28 Re: track_io_timing default setting