Article View: comp.arch
Article #230Re: Performance of xchg reg,reg
From: Chris M. Thomasson
Date: Mon, 19 Oct 2026 21:26
Date: Mon, 19 Oct 2026 21:26
12 lines
2074 bytes
2074 bytes
On 10/19/2026 2:21 PM, Lawrence D’Oliveiro wrote: > On Mon, 19 Oct 2026 14:08:53 -0700, Chris M. Thomasson wrote: > >> I forgot the damn Linux thing. I think it might be sys_membarrier... > > <https://manpages.debian.org/membarrier(2)> ? Has to be it. Afaict, its a way to help algorithms like RCU, or basically any async sync pattern. Say the readers are cheap, the writers not so cheap... Fwiw, here is the windows side of the coin: https://learn.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-flushprocesswritebuffers
Technical Details
Message-ID:
<11b61tu$2eicj$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> <11b61ju$2ebos$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: "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:26:20 -0700 Organization: A noiseless patient Spider Lines: 12 Message-ID: <11b61tu$2eicj$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> <11b61ju$2ebos$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 19 Oct 2026 21:26:23 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2574739"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/Ka3fIc58+LI4uSFkcz7LAQu8T0uK0+9I="; posting-host="ce538cd055c4777fbae39a89c4c06c85" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:l3D2Ul3CmlVNba8xnAh6EVS/Fc8= sha256:1WXJ9WCSwwlngSM1oV0HTMbEugzo6oORf8M7biShWZQ= sha1:lfta/S+8kvbTPwSoJkqdVbpUU3Q= sha256:qSD3NQFfYav4Yn3kNb44lfY9WpP8oz/hvaTX6jF7bRA= Content-Language: en-US In-Reply-To: <11b61ju$2ebos$1@dont-email.me>