Article View: comp.lang.c++
Article #206Re: Consequential RCU
From: Chris M. Thomasson
Date: Sun, 11 Oct 2026 21:10
Date: Sun, 11 Oct 2026 21:10
34 lines
2932 bytes
2932 bytes
On 10/11/2026 8:11 AM, Joseph Seigh wrote: > On 9/16/26 6:25 PM, Joseph Seigh wrote: >> https://jseigh.wordpress.com/2026/09/07/consequential-concurrent- >> sequential-rcu/ >> >> The name doesn't really mean anything. I was just generalizing something >> that's been around forever.* It's simple enough that it must be in use >> somewhere. I just haven't noticed it. I looked up the linux kernal >> seqlock documentation and it specifically says not to use pointers in >> seqlock protected data and no idea why that is unless the linux kernel >> is doing something weird with memory mapping. >> >> Like seqlock, it is obstruction-free. If you have qsbr (RCU) or ebr, >> that would be a better choice. It might be good for libraries where >> the memory reclamation is hidden from the application. >> >> * tangentially related to something that I was working on which if far >> more perverse but mostly in a solution that is looking for a problem >> phase so it probably won't go anywhere. > > I threw together a really quick and dirty test to see how much > overhead all those extra loads would cause. Doesn't appear to > add any. I will have to add it to the proxies project testcase > for more extensive testing but it will take a bit of work since > all the other proxies implement BasicLock and consequential RCU > readers do not. If you get some free time to burn, add my proxy to your test bench. Its simply not meant to beat fancy asymmetric RCU+SMR type algos, but it works in 100% std C++. Which is fairly decent. https://pastebin.com/raw/CYZ78gVj It should just compile right up and run.
Technical Details
Message-ID:
<11agu01$30u71$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:
<118f4vv$3plsv$1@dont-email.me> <11ag8ue$2nvjl$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.lang.c++ Subject: Re: Consequential RCU Date: Sun, 11 Oct 2026 14:10:24 -0700 Organization: A noiseless patient Spider Lines: 34 Message-ID: <11agu01$30u71$1@dont-email.me> References: <118f4vv$3plsv$1@dont-email.me> <11ag8ue$2nvjl$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Sun, 11 Oct 2026 21:10:26 +0000 (UTC) Injection-Info: dont-email.me; logging-data="3176673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18aaJzKstKecHT9ENHQ8aBc5enimEoXz8U="; posting-host="968e20396a6a888f745d0b4046f577b7" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:QcDhL0MoDjWTMxTvdbM3QnFcBZY= sha256:ggC766iKGMW4dMuOlyWDwRLhF2j2Znfv2UDDngGrzKg= sha1:ppBt9AMXz3icggF+8Q2fSIHhEjo= sha256:eeetUZe/NnoYRvjLEaroU7wAGFqiRmVOv3rLY7975iY= Content-Language: en-US In-Reply-To: <11ag8ue$2nvjl$1@dont-email.me>