🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Consequential RCU Performance

#1055
From: Joseph Seigh
Date: Mon, 30 Nov 2026 00:30
33 lines
2704 bytes
On 11/28/26 5:33 PM, Chris M. Thomasson wrote:
> On 11/28/2026 2:26 PM, Chris M. Thomasson wrote:
>> On 11/28/2026 2:14 PM, Chris M. Thomasson wrote:
>>> On 11/27/2026 9:31 AM, Joseph Seigh wrote:
...
>>
>> cseq2 seems to be the best for those runs. Humm... How many threads 
>> are involved? One per core? Try a list depth of say 1000000?
>>
>> say count 10000000, depth 1000000.
>>
>> Also, you really should try another test where there are writers 
>> humming along. Technically you should be able to have the writers 
>> pushing and popping. But, the lock-free stack should never need an ABA 
>> counter because the RCU aspect should never allow a node to be pushed 
>> back in before its quiescent.
>>
> 
> Also, for your hazard pointer test, are you doing its logic on a per 
> node basis during iteration?

It's per node access.  Using it on a linked list of that size wouldn't
be optimal.  I need to rework the test however since you need 2
hazard pointers to traverse nodes, so I need to add logic to swap the
hazard poiter holders.

If I use a wait-free hazard pointer, then only 1 is needed.  And it
would run a bit faster since there wouldn't be conditional branches
to slow the cpu pipeline.

At any rate, they're equivalent in performance.  The timings were to
show if there was a situation where there were advantages in using
consequential rcu, performance wouldn't be a reason to rule it out.
Technical Details
Message-ID: <11eig2c$5t9$1@dont-email.me>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11eceq2$1rdof$1@dont-email.me> <11efjo9$2vmag$1@dont-email.me> <11efke4$2vtr5$1@dont-email.me> <11efkre$30100$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.hispagatos.org!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 Performance
Date: Sun, 29 Nov 2026 19:30:02 -0500
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <11eig2c$5t9$1@dont-email.me>
References: <11eceq2$1rdof$1@dont-email.me> <11efjo9$2vmag$1@dont-email.me>
 <11efke4$2vtr5$1@dont-email.me> <11efkre$30100$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 30 Nov 2026 00:30:04 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="6057"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/F2yp9ie5ODVFiEWjA2mEr"; posting-host="8f053ea59d9b749b76e27d452733f3e4"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:CNTzFw7uTel/xlAIABPTTn+ndPg= sha256:qc8e18EtbSUhgZ4gHvjzTuux/8uDLtkA87ICQ0S7haA=
	sha1:I1hKTaWXV+THZwnrgvlfe8v6QjE= sha256:1Jgqwz0eiEsvtVaadkhE+6hUfidcAPSHwyv3t8H0AoM=
In-Reply-To: <11efkre$30100$1@dont-email.me>
Content-Language: en-US