Article View: comp.lang.c++
Article #1070Re: Consequential RCU Performance
From: Chris M. Thomasson
Date: Tue, 01 Dec 2026 01:05
Date: Tue, 01 Dec 2026 01:05
40 lines
2934 bytes
2934 bytes
On 11/30/2026 4:38 PM, Joseph Seigh wrote: > On 11/30/26 5:25 PM, Chris M. Thomasson wrote: >> On 11/30/2026 8:55 AM, jseigh wrote: >>> On 11/27/26 12:31, Joseph Seigh wrote: >>>> I ran some performance measurements on the reader side, no write >>>> updates, for a plain linked list traversal, 2 slightly different >>>> consequential rcu traversals, and traversals using hazard >>>> pointers w/o and w/ a store/load memory barrier. >>>> >>>> Timings are per node access. Depth is the size of the list. >>>> >>> Updated hazard pointer traversal to use 2 hazard pointers. >>> Add a wait-free hazard pointer (w/o mb) which only >>> uses 1 hazard pointer. >>> >> [...] >>> base: elapsed = 2102889 ( 4441250) >>> avg = 1.05144 nsecs ( 2.22063 cycles) >>> cseq1: elapsed = 2128434 ( 4495216) >>> avg = 1.06422 nsecs ( 2.24761 cycles) >>> cseq2: elapsed = 2144710 ( 4529588) >>> avg = 1.07235 nsecs ( 2.26479 cycles) >>> hzptr: elapsed = 2430719 ( 5133628) >>> avg = 1.21536 nsecs ( 2.56681 cycles) >>> hzptr_mb: elapsed = 14681514 ( 31006950) >>> avg = 7.34076 nsecs (15.50347 cycles) >>> hzptr wf: elapsed = 1991515 ( 4206044) >>> avg = 0.99576 nsecs ( 2.10302 cycles) >>> >> >> Looking pretty damn good! What is the difference between hzptr_mb (I >> assume traditional hazard pointers) vs hzptr wf ? > > > hzptr is w/o the store/load membar > hzptr_mb is w/ the store/load membar > hzptr_wf is loop free and w/o membar. hzptr_wf is interesting to me. You still have a run a scan process to determine when a node is quiescent, right?
Technical Details
Message-ID:
<11el6h6$12qpf$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-mailReferences:
<11eceq2$1rdof$1@dont-email.me> <11ek9pk$kb5m$1@dont-email.me> <11ekt4q$ud97$1@dont-email.me> <11el4uu$1269j$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 17:05:42 -0800 Organization: A noiseless patient Spider Lines: 40 Message-ID: <11el6h6$12qpf$1@dont-email.me> References: <11eceq2$1rdof$1@dont-email.me> <11ek9pk$kb5m$1@dont-email.me> <11ekt4q$ud97$1@dont-email.me> <11el4uu$1269j$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 01 Dec 2026 01:05:43 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1141551"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+TuXVb/sA7hkyLyYyggyrXJA2ChT787UM="; posting-host="5898cded6d2676b56560081c09d52a4a" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:NeyfS3RebpuZR1Nbh24BX1r7ZPQ= sha256:Ek9DmKtF3MD4Rzi2e1MiRYx1XHrDvShBUlU4jYChJsg= sha1:RPJbzxjkB+azgqtNBZDD5iEr4gY= sha256:41NcVHWERFKrcJmkcGNYHP7TgV2xR9ig4rxeQ+GgUP0= Content-Language: en-US In-Reply-To: <11el4uu$1269j$1@dont-email.me>