🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c++
Article #210

Re: Consequential RCU

#210
From: Joseph Seigh
Date: Mon, 12 Oct 2026 01:44
29 lines
2548 bytes
On 10/11/26 5:10 PM, Chris M. Thomasson wrote:

> 
> 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.

SMRProxy read lock is just an atomic load and store w/o membar.
I did a quick and dirty perf test of what would be the typical
user space RCU read lock logic, incrementing a local counter.

An atomic load, increment of loaded value, and atomic store
of that value is basically just as fast as SMRProxy, despite
that increment.   An atomic increment is quite a bit slower
on x86 since you have a full memory barrier there.  You
can't use asymmetric memory barriers to avoid that in this
case.

QSBR and EBR are basically the same thing.  Grace periods are
epochs.  The only difference is the QSBR logic to decide what
grace period each reader is referencing is a bit more indirect.
You are looking at events rather than conditions.  I didn't
do a user space RCU implementation since I didn't want to
deal with that extra logic.  And there are enough user space
RCU implementations out there already.
Technical Details
Message-ID: <11ahe1d$35ol8$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-mail
References: <118f4vv$3plsv$1@dont-email.me> <11ag8ue$2nvjl$1@dont-email.me> <11agu01$30u71$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.lang.c++
Subject: Re: Consequential RCU
Date: Sun, 11 Oct 2026 21:44:13 -0400
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <11ahe1d$35ol8$1@dont-email.me>
References: <118f4vv$3plsv$1@dont-email.me> <11ag8ue$2nvjl$1@dont-email.me>
 <11agu01$30u71$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 12 Oct 2026 01:44:14 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="3334824"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1+vKRMLQfGzbzWEfI2D3oV/"; posting-host="9083d87ebac1924090cd36082a7d4a29"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:XUMmV3XdlX1aClyrW86k8d1wBI8= sha256:Wq84BMo3WFVkZc6aAzpqg+x78FHOgmCnliNu85/V4Ro=
	sha1:W+ktvkxAMd85Ba2snocvYLAprAE= sha256:5lUsOKuVoKyeb6R0L/hOETt/XBlpObxl4P18hmkm6ko=
Content-Language: en-US
In-Reply-To: <11agu01$30u71$1@dont-email.me>