RCU+SMR hazard pointers w/o memory barriers
CASTalk.com Forum Index CASTalk.com
Discussion of DSP, FPGA, storage and embedded system.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web castalk.com
RCU+SMR hazard pointers w/o memory barriers

 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Computer Architecture
Author Message
Joe Seigh
Guest





Posted: Fri Aug 19, 2005 4:15 pm    Post subject: RCU+SMR hazard pointers w/o memory barriers Reply with quote

I have a subproject on my site
http://atomic-ptr-plus.sourceforge.net/

That uses a modified RCU to remove the need for
memory barriers in SMR hazard pointers. The memory
barriers can really slow things down on a pipelined
processor, or conversly you can say that pipelining
can really speed things up without them. Timing of
hazard pointer loads w/o memory barriers and with memory
barriers (store/load plus a second release memory barrier) is
11 nsec and 78 nsec repectively on a 866 mhz P3 and
10 nsec and 115 nsec respectively on a 1.2 ghz ppc.

This makes a big difference in traversing a linked list
for example. The proxy usage pattern is even faster
since there is only one hazard pointer load and normal
dependent loads for list traversal.

This will help as we go to multi-core cpus as it
scales better than conventional syncrhonization and is
more cache friendly.

This might be one of the few times where software design
overtook hardware instead of hardware dictating the
programming model.



--
Joe Seigh

When you get lemons, you make lemonade.
When you get hardware, you make software.
Back to top
 
Post new topic   Reply to topic    CASTalk.com Forum Index -> Computer Architecture All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




VoIP Electronics Powered by phpBB