From mboxrd@z Thu Jan 1 00:00:00 1970 From: paulmck@linux.vnet.ibm.com (Paul E. McKenney) Date: Wed, 3 Oct 2012 11:28:46 -0700 Subject: [lttng-dev] [rp] [URCU PATCH 0/3] wait-free concurrent queues (wfcqueue) In-Reply-To: <20121002141307.GA4057@Krystal> References: <20121002141307.GA4057@Krystal> Message-ID: <20121003182846.GN2527@linux.vnet.ibm.com> On Tue, Oct 02, 2012 at 10:13:07AM -0400, Mathieu Desnoyers wrote: > Implement wait-free concurrent queues, with a new API different from > wfqueue.h, which is already provided by Userspace RCU. The advantage of > splitting the head and tail objects of the queue into different > arguments is to allow these to sit on different cache-lines, thus > eliminating false-sharing, leading to a 2.3x speed increase. > > This API also introduces a "splice" operation, which moves all nodes > from one queue into another, and postpones the synchronization to either > dequeue or iteration on the list. The splice operation does not need to > touch every single node of the queue it moves them from. Moreover, the > splice operation only needs to ensure mutual exclusion with other > dequeuers, iterations, and splice operations from the list it splices > from, but acts as a simple enqueuer on the list it splices into (no > mutual exclusion needed for that list). > > Feedback is welcome, These look sane to me, though I must confess that the tail pointer referencing the node rather than the node's next pointer did throw me for a bit. ;-) Thanx, Paul