Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964893AbWBPURx (ORCPT ); Thu, 16 Feb 2006 15:17:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964895AbWBPURx (ORCPT ); Thu, 16 Feb 2006 15:17:53 -0500 Received: from lirs02.phys.au.dk ([130.225.28.43]:13012 "EHLO lirs02.phys.au.dk") by vger.kernel.org with ESMTP id S964893AbWBPURw (ORCPT ); Thu, 16 Feb 2006 15:17:52 -0500 Date: Thu, 16 Feb 2006 21:17:18 +0100 (MET) From: Esben Nielsen To: Arjan van de Ven Cc: Daniel Walker , Ingo Molnar , linux-kernel@vger.kernel.org, Ulrich Drepper , Thomas Gleixner , Andrew Morton Subject: Re: [patch 0/6] lightweight robust futexes: -V3 - Why in userspace? 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 Content-Length: 1219 Lines: 38 On Thu, 16 Feb 2006, Esben Nielsen wrote: > On Thu, 16 Feb 2006, Arjan van de Ven wrote: > > > On Thu, 2006-02-16 at 20:06 +0100, Esben Nielsen wrote: > > > I just jump into a thread somewhere to ask my question :-) > > > > > > Why does the list have to be in userspace? > > > > because it's faster ;) > > > > > Faster??? > As I see it, extra manipulations have to be done even in the non-congested > case: Every time the lock is taken the locking thread has to add the lock > to a the list, and reversely remove the lock from the list. I.e. > instructions are _added_ to the fast path where you stay purely in > userspace. > > I am ofcourse comparing to a solution where you do a syscall on everytime Correction: "I am ofcourse NOT comparing" ... > you do a lock. What I am asking about is whethere it wouldn't be > enough to maintain the list at the FUTEX_WAIT/FUTEX_WAKE operation - i.e. > the slow path where you have to go into the kernel. > > Esben > Esben - 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/