Article View: comp.lang.c++
Article #1087Re: Consequential RCU Performance
From: Chris M. Thomasson
Date: Tue, 01 Dec 2026 22:05
Date: Tue, 01 Dec 2026 22:05
43 lines
3094 bytes
3094 bytes
On 11/30/2026 5:05 PM, Chris M. Thomasson wrote: > 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? Sorry for altering the subject.
Technical Details
Message-ID:
<11engbm$28997$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> <11el6h6$12qpf$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: Tue, 1 Dec 2026 14:05:41 -0800 Organization: A noiseless patient Spider Lines: 43 Message-ID: <11engbm$28997$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> <11el6h6$12qpf$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 22:05:43 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2368807"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kSfQdKjuTjpsXuCGPvaNbodpGJcMhOGo="; posting-host="5898cded6d2676b56560081c09d52a4a" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:XCkG4UpEr+8DrbYWYKfRp794vnE= sha256:Os8C8YTKn4DtwBb8G46MrB5r2hLe0r/EuRgbZS5udoQ= sha1:wFsWmepjyGWh6q+ewViPI2RV758= sha256:uH5Xp2DwlvM7nHXTrE8Q7T2kPQCwAmKVJ2qiNWioKbc= In-Reply-To: <11el6h6$12qpf$1@dont-email.me> Content-Language: en-US