Re: [Userspace RCU] - rcu_dereference() memory ordering

2024-11-21 Thread Mathieu Desnoyers via lttng-dev
On 2024-10-21 19:35, Paul E. McKenney wrote: On Mon, Oct 21, 2024 at 03:53:04PM -0400, Olivier Dion wrote: Hi Paul, In liburcu, `rcu_dereference()' is either implemented with volatile access with `CMM_LOAD_SHARED()' followed by a memory barrier depends, or a atomic load with CONSUME memory orde

Re: [Userspace RCU] - rcu_dereference() memory ordering

2024-11-21 Thread Olivier Dion via lttng-dev
On Thu, 21 Nov 2024, Mathieu Desnoyers wrote: > On 2024-10-21 19:35, Paul E. McKenney wrote: >> On Mon, Oct 21, 2024 at 03:53:04PM -0400, Olivier Dion wrote: [...] >> How much of the added "Volatile access" overhead is due to the volatile >> load and how much to the cmm_ptr_eq? Many use cases do