Add spin_delay() implementation for Arm in s_lock.h - Mailing list pgsql-hackers

From Blake, Geoff
Subject Add spin_delay() implementation for Arm in s_lock.h
Date
Msg-id 78338F29-9D7F-4DC8-BD71-E9674CE71425@amazon.com
Whole thread Raw
Responses Re: Add spin_delay() implementation for Arm in s_lock.h  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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
helpsome workloads that experience some lock contention that need to spin.
 

Thanks,
Geoffrey Blake


Attachment

pgsql-hackers by date:

Previous
From: Tomas Vondra
Date:
Subject: Re: track_io_timing default setting
Next
From: "Godfrin, Philippe E"
Date:
Subject: RE: [EXTERNAL] Re: track_io_timing default setting