Article View: comp.arch
Article #228Re: Performance of xchg reg,reg
From: Chris M. Thomasson
Date: Mon, 19 Oct 2026 21:08
Date: Mon, 19 Oct 2026 21:08
18 lines
2209 bytes
2209 bytes
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...
Technical Details
Message-ID:
<11b60t8$2e75r$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>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: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com> Newsgroups: comp.arch Subject: Re: Performance of xchg reg,reg Date: Mon, 19 Oct 2026 14:08:53 -0700 Organization: A noiseless patient Spider Lines: 18 Message-ID: <11b60t8$2e75r$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> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 19 Oct 2026 21:08:57 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2563259"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/5nOzjF5jgzuyI/d+OwP/TBTfl9pVVuyY="; posting-host="ce538cd055c4777fbae39a89c4c06c85" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:S8Z94R4IhQdJmtFLFo/G7piCkXg= sha256:z0lTNt+SfPqxGwCsSKoCt1uLCHEnkIM1akF3+mtW+UA= sha1:ByJW1I7Yqmp343dmzMzA3KznI6w= sha256:GiBY646e93BCQ986n9T2PZOuabeuw3ePg9PXSUv81SQ= Content-Language: en-US In-Reply-To: <93pBS.146452$4b2.103340@fx47.iad>