🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Consequential RCU Performance

#1066
From: Chris M. Thomasson
Date: Mon, 30 Nov 2026 22:30
47 lines
3206 bytes
On 11/29/2026 4:30 PM, Joseph Seigh wrote:
> 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.

This is a little too fine grain, ouch. But its a good way to test 
against your cseq2.

Humm... Fwiw, I never really liked using hazard pointers like that. 
Instead, well, use the hazard pointers to protect the lifetime of a 
proxy collector?


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

To clarify, wait free as in loopless?


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

Well, you are getting some good numbers for cseq2!
Technical Details
Message-ID: <11ekte0$ui0t$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> <11eig2c$5t9$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: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
Newsgroups: comp.lang.c++
Subject: Re: Consequential RCU Performance
Date: Mon, 30 Nov 2026 14:30:22 -0800
Organization: A noiseless patient Spider
Lines: 47
Message-ID: <11ekte0$ui0t$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>
 <11eig2c$5t9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 30 Nov 2026 22:30:25 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="1001501"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19a9jTPBfJEBYxlBaBuJZhUBnnfHJERDPw="; posting-host="3bdfedc16e740e0696af595d0384a0e1"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:kx364vYu+7eSgnuQd7rlPsV1z1U= sha256:eVK8bYwnNUjXUhh7V9CNRQmUbsqP8GonNsYw+QBR+tI=
	sha1:Gs9VqzQkSSIwd0+Gxwg8ulKt6x0= sha256:NoIsvc3YJFZsq1eZ8uHcQVvKT0J6qy+2xKtI1VpfOLQ=
Content-Language: en-US
In-Reply-To: <11eig2c$5t9$1@dont-email.me>