Thread (105 messages) 105 messages, 13 authors, 2008-11-24

Re: [PATCH 0/3] net: RCU lookups for UDP, DCCP and TCP protocol

From: Andi Kleen <hidden>
Date: 2008-11-13 17:20:12

Eric Dumazet [off-list ref] writes:

1) Introduce hlist_nulls variant of hlist

  hlist uses NULL value to finish a chain.
  hlist_nulls variant use the low order bit set to 1 to signal an end marker.
  This allows to store many different end markers, so that some RCU lockless
  algos (used in TCP/UDP stack for example) can save some memory barriers in
  fast paths.
Do you have any numbers that demonstrate the read memory barriers being
a performance problem? At least on x86 they should be very cheap
because they're normally nops.

-Andi

-- 
ak@linux.intel.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help