From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753465AbXCPKga (ORCPT ); Fri, 16 Mar 2007 06:36:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753470AbXCPKga (ORCPT ); Fri, 16 Mar 2007 06:36:30 -0400 Received: from amsfep17-int.chello.nl ([62.179.120.12]:30966 "EHLO amsfep17-int.chello.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753465AbXCPKg3 (ORCPT ); Fri, 16 Mar 2007 06:36:29 -0400 Subject: Re: [PATCH 0/3] FUTEX : new PRIVATE futexes, SMP and NUMA improvements From: Peter Zijlstra To: Eric Dumazet Cc: Nick Piggin , Ulrich Drepper , Andrew Morton , Ingo Molnar , Andi Kleen , Ravikiran G Thirumalai , "Shai Fultheim (Shai@scalex86.org)" , pravin b shelar , linux-kernel@vger.kernel.org In-Reply-To: <200703161130.06669.dada1@cosmosbay.com> References: <20060808070708.GA3931@localhost.localdomain> <200703161030.17597.dada1@cosmosbay.com> <1174039813.7124.25.camel@twins> <200703161130.06669.dada1@cosmosbay.com> Content-Type: text/plain Date: Fri, 16 Mar 2007 11:36:26 +0100 Message-Id: <1174041386.7124.31.camel@twins> Mime-Version: 1.0 X-Mailer: Evolution 2.9.92 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2007-03-16 at 11:30 +0100, Eric Dumazet wrote: > On Friday 16 March 2007 11:10, Peter Zijlstra wrote: > > > http://programming.kicks-ass.net/kernel-patches/futex-vma-cache/vma_cache.p > >atch > > Oh thanks > > > > > > But if it has to walk the vmas (and take mmap_sem), you already loose the > > > PRIVATE benefit. > > > > It doesn't take mmap_sem, I am aware of the problems. > > Yes but the vma_anon() -> vma_cache_find() needs to read 3 cache lines on > x86_64 (sizeof(struct vma_cache) = 136) > and dirty one bit, so it might be more expensive than the mmap_sem ... I though the cacheline was 128 bytes, but point taken.