🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

2 total messages Started by Chris M. Thomasson Tue, 01 Dec 2026 01:09
Re: Consequential RCU
#1071
Author: Chris M. Thomasson
Date: Tue, 01 Dec 2026 01:09
32 lines
2597 bytes
On 9/16/2026 3: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 notice your Writer logic:
Update data with one or more atomic updates.
Increment update counter w/ release memory order.
Free old memory (per requirement 1)

No wonder why you have:

All memory addresses used must always be valid. No MUNMAP to unmap 
memory or MPROTECT to restrict subsequent access to memory.


It makes me think of pre allocating our node state up front. So, there 
is no free during usage? What am I missing here Joe?
Re: Consequential RCU
#1072
Author: Chris M. Thomasson
Date: Tue, 01 Dec 2026 01:13
35 lines
2796 bytes
On 11/30/2026 5:09 PM, Chris M. Thomasson wrote:
> On 9/16/2026 3: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 notice your Writer logic:
> Update data with one or more atomic updates.
> Increment update counter w/ release memory order.
> Free old memory (per requirement 1)
> 
> No wonder why you have:
> 
> All memory addresses used must always be valid. No MUNMAP to unmap 
> memory or MPROTECT to restrict subsequent access to memory.
> 
> 
> It makes me think of pre allocating our node state up front. So, there 
> is no free during usage? What am I missing here Joe?

Instead of free, we push a node back into a free list or something...
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads