Article View: comp.arch
Article #231Re: Performance of xchg reg,reg
From: Joseph Seigh
Date: Mon, 19 Oct 2026 23:17
Date: Mon, 19 Oct 2026 23:17
24 lines
2485 bytes
2485 bytes
On 10/19/26 5:08 PM, Chris M. Thomasson wrote: > On 10/19/2026 6:38 AM, EricP wrote: >> On 2026-Oct-18 15:27, Chris M. Thomasson wrote: >>> >>> Try a LOCK RMW on memory that straddles a L2 cache line. That should >>> trigger a full bus lock. >> >> FYI there is an article measuring the effects of cache line split locks >> >> Investigating Split Locks on x86-64 >> https://chipsandcheese.com/p/investigating-split-locks-on-x86 >> > > I see. Actually, a way to "abuse" it even further is to use a LOCK RMW, > say even LOCK XADD on something that straddles a cache line issues a bus > lock. So, I have seen some papers on abusing QPI to gain a remote memory > barrier or async sync for things like RCU. FlushProcessWriteBuffers > (windows way), I forgot the damn Linux thing. I think it might be > sys_membarrier... You are thinking of IPI (inter processsor interrupt) maybe? membarrier changed to that apparently because the quiesce points used by the RCU implementation of membarrier weren't frequent enough.
Technical Details
Message-ID:
<11b68dq$2govj$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<2026Oct13.104347@mips.complang.tuwien.ac.at> <11atq3a$nqi$1@reader2.panix.com> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <11b36i8$1e6f7$1@dont-email.me> <93pBS.146452$4b2.103340@fx47.iad> <11b60t8$2e75r$1@dont-email.me>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Joseph Seigh <jseigh_es00@xemaps.com> Newsgroups: comp.arch Subject: Re: Performance of xchg reg,reg Date: Mon, 19 Oct 2026 19:17:14 -0400 Organization: A noiseless patient Spider Lines: 24 Message-ID: <11b68dq$2govj$1@dont-email.me> References: <2026Oct13.104347@mips.complang.tuwien.ac.at> <11atq3a$nqi$1@reader2.panix.com> <11au1vu$3ks5m$2@dont-email.me> <11aunpn$8c6$1@reader2.panix.com> <11b36i8$1e6f7$1@dont-email.me> <93pBS.146452$4b2.103340@fx47.iad> <11b60t8$2e75r$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 19 Oct 2026 23:17:15 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2647027"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+1FjjA5Gb5Yx0Nf59ZEmoH"; posting-host="df82edb1c111dd0afec36765174d08bc" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:9oveIGC8+GSQgTh0HIk4BDhjHDk= sha256:8BFms0hKerRcRKxBJXfJMs1zDCO01ErZYywO2Uk+uUE= sha1:5YR/NJHWCnUbetV6FqJpzWju04k= sha256:HzKkekleYraxCiZRYFl8Ufmicon5KKahIDkSeQ5T6vM= In-Reply-To: <11b60t8$2e75r$1@dont-email.me> Content-Language: en-US