Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Thu, 6 Dec 2001 12:18:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Thu, 6 Dec 2001 12:17:55 -0500 Received: from mail.xmailserver.org ([208.129.208.52]:57349 "EHLO mail.xmailserver.org") by vger.kernel.org with ESMTP id ; Thu, 6 Dec 2001 12:17:42 -0500 Date: Thu, 6 Dec 2001 09:28:45 -0800 (PST) From: Davide Libenzi X-X-Sender: davide@blue1.dev.mcafeelabs.com To: Rik van Riel cc: Rusty Russell , "David S. Miller" , , "Martin J. Bligh" , , Alan Cox , , lkml Subject: Re: SMP/cc Cluster description In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 6 Dec 2001, Rik van Riel wrote: > On Wed, 5 Dec 2001, Davide Libenzi wrote: > > On Thu, 6 Dec 2001, Rusty Russell wrote: > > > > > I'd love to say that I can solve this with RCU, but it's vastly non-trivial > > > and I haven't got code, so I'm not going to say that. 8) > > > > Lockless algos could help if we're able to have "good" quiescent point > > inside the kernel. Or better have a good quiescent infrastructure to > > have lockless code to plug in. > > Machines get dragged down by _uncontended_ locks, simply > due to cache line ping-pong effects. Rik, i think you're confused about lockless algos. It's not an rwlock where the reader has to dirty a cacheline in any case, the reader simply does _not_ write any cache line accessing the list/hash/tree or whatever you use. These algo uses barries and all changes are done when the system walk through a quiescent state by flushing a list-of-changes. Drawback, you've to be able to tollerate stale data. - Davide - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/