Article View: comp.lang.c++
Article #1083Re: Consequential RCU Performance
From: Ross Finlayson
Date: Tue, 01 Dec 2026 10:39
Date: Tue, 01 Dec 2026 10:39
77 lines
5087 bytes
5087 bytes
On 12/01/2026 02:27 AM, Ross Finlayson wrote: > On 12/01/2026 02:17 AM, Ross Finlayson wrote: >> On 12/01/2026 01:41 AM, Bonita Montero wrote: >>> Am 01.12.2026 um 10:37 schrieb Ross Finlayson: >>> >>>> What's relevant is that data-structures & algorithms have a purpose, >>>> their use-case, what it is, then, the target environment has some >>>> fixed conditions, what they are, what must be, it's not off-topic. >>> >>> What you say almost never fits in the context. >>> Reading for nothing ... >> >> "This is of course very expensive and entirely un-scale-able." >> - Shilon, "Processor Design Secrets: what happens when you use >> std::atomic?", circa 1:02:00. >> >> What he's talking about is anything that uses "locks", the sections, >> fences or boundaries/barriers, then with regards to the only available >> facilities to make atomic operations (of which there's only "potential" >> or the "opportunistic" the "atomic transaction). >> >> Agreably I'm talking about atomics more than locks. >> >> >> "Necessary to actually be usable in locks" >> >> >> That's all I have to say about it, pointing out the obvious, >> then the usual notions from the distributed-systems of the >> "horizontal-independence" and "eventually-consistent" when >> there's only available "opportunistic-locking" arrive themselves. >> >> So: memory_order courtesy MFENCE & DMB on AMD & ARM is the usual >> thing: "very expensive and entirely un-scale-able". >> Then it was considered that what's of interest is >> the correctness and the performance. >> >> >> >> >> > > Agreeably, I _learned_ something, challenging what were implicit > assumptions, and making a model of _learning_, to understand from > that the _language_ side and the _hardware_ side, in this case, > variously the _ideal_ and the _analytical_ either and both ways, > that their changes in various ways, make for that > the _highest_ performance for _absolute_ correctness > is further refined the account, in this sort of manner. > > So, for the scaling while giving the guarantee, then > it doesn't take more than a generous reading to see the point. > > That Ofek Shilon has some other interesting talks on video, like "C++ Deep Dive: Memory Barriers and Cache Coherence". Hm, I was "Viewer #863". Here though it was already pointed out that there's compare-and-swap called compare-exchange/LL-SC and its only guarantee of being atomic is luck and retries and UUID-vending its own challenge to make for load-linked/store-conditional as "fetch-then-test-and-swap-else-error", that otherwise is "halting the cores and bus", "very expensive and entirely un-scale-able". "I will try to make the distinction where it has meaning." - Shilon on "the memory model"
Technical Details
Message-ID:
<mTCdnXkZv_xqPpP2nZ2dnZfqnPSdnZ2d@giganews.com>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mailReferences:
<11eceq2$1rdof$1@dont-email.me> <11ecgl8$1s72j$1@raubtier-asyl.eternal-september.org> <11ecr1d$20dln$1@dont-email.me> <11edms2$294iu$1@raubtier-asyl.eternal-september.org> <11efdu7$2ten0$1@dont-email.me> <11ege8t$387ms$2@raubtier-asyl.eternal-september.org> <11egnpf$3arfr$1@dont-email.me> <11ego7t$3avtm$1@raubtier-asyl.eternal-september.org> <11egois$3b3gl$1@dont-email.me> <11egp0r$3b7kn$1@raubtier-asyl.eternal-september.org> <11ei4on$3s8av$1@dont-email.me> <11ejbos$8745$1@raubtier-asyl.eternal-september.org> <11ekstl$u9is$1@dont-email.me> <11elkcq$18jfh$1@raubtier-asyl.eternal-september.org> <11ell66$18vsa$1@dont-email.me> <FcCdnYIMMbrLF5P2nZ2dnZfqn_adnZ2d@giganews.com> <11em2hr$1ero2$1@raubtier-asyl.eternal-september.org> <2R2cnYBqH-HUCJP2nZ2dnZfqnPadnZ2d@giganews.com> <11em4nr$1g0t0$1@raubtier-asyl.eternal-september.org> <8JSdneBM2LUtA5P2nZ2dnZfqnPSdnZ2d@giganews.com> <bS6dnYBC8JRrPZP2nZ2dnZfqn_GdnZ2d@giganews.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!weretis.net!feeder9.news.weretis.net!border-4.nntp.ord.giganews.com!nntp.giganews.com!Xl.tags.giganews.com!local-4.nntp.ord.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 01 Dec 2026 10:39:51 +0000 Subject: Re: Consequential RCU Performance Newsgroups: comp.lang.c++ References: <11eceq2$1rdof$1@dont-email.me> <11ecgl8$1s72j$1@raubtier-asyl.eternal-september.org> <11ecr1d$20dln$1@dont-email.me> <11edms2$294iu$1@raubtier-asyl.eternal-september.org> <11efdu7$2ten0$1@dont-email.me> <11ege8t$387ms$2@raubtier-asyl.eternal-september.org> <11egnpf$3arfr$1@dont-email.me> <11ego7t$3avtm$1@raubtier-asyl.eternal-september.org> <11egois$3b3gl$1@dont-email.me> <11egp0r$3b7kn$1@raubtier-asyl.eternal-september.org> <11ei4on$3s8av$1@dont-email.me> <11ejbos$8745$1@raubtier-asyl.eternal-september.org> <11ekstl$u9is$1@dont-email.me> <11elkcq$18jfh$1@raubtier-asyl.eternal-september.org> <11ell66$18vsa$1@dont-email.me> <FcCdnYIMMbrLF5P2nZ2dnZfqn_adnZ2d@giganews.com> <11em2hr$1ero2$1@raubtier-asyl.eternal-september.org> <2R2cnYBqH-HUCJP2nZ2dnZfqnPadnZ2d@giganews.com> <11em4nr$1g0t0$1@raubtier-asyl.eternal-september.org> <8JSdneBM2LUtA5P2nZ2dnZfqnPSdnZ2d@giganews.com> <bS6dnYBC8JRrPZP2nZ2dnZfqn_GdnZ2d@giganews.com> From: Ross Finlayson <ross.a.finlayson@gmail.com> Date: Tue, 1 Dec 2026 02:39:47 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 In-Reply-To: <bS6dnYBC8JRrPZP2nZ2dnZfqn_GdnZ2d@giganews.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <mTCdnXkZv_xqPpP2nZ2dnZfqnPSdnZ2d@giganews.com> Lines: 77 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-LDROD5/zvAPeesjjcZ3cVd/8An+HOpxv7LR2+LUmw802lvt0Isxe0XSaoS9uxjx5sd4bzi8ePO/fF/7!XKhlxStLbDuvlp+Z0g9iVAQwWj6OY2ghoHc4bf0KcLf8e/qqlAOCrg6nEFX6IKEJ3aZrenQt4gmc X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40