Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759645AbZKFTUw (ORCPT ); Fri, 6 Nov 2009 14:20:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755692AbZKFTUv (ORCPT ); Fri, 6 Nov 2009 14:20:51 -0500 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:56252 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756951AbZKFTUu (ORCPT ); Fri, 6 Nov 2009 14:20:50 -0500 Message-ID: In-Reply-To: References: <20091104234923.GA25306@redhat.com> <20091106101106.8115e0f1.kamezawa.hiroyu@jp.fujitsu.com> <20091106122344.51118116.kamezawa.hiroyu@jp.fujitsu.com> Date: Sat, 7 Nov 2009 04:20:51 +0900 (JST) Subject: Re: [MM] Make mm counters per cpu instead of atomic V2 From: "KAMEZAWA Hiroyuki" To: "Christoph Lameter" Cc: "KAMEZAWA Hiroyuki" , "Dave Jones" , "hugh.dickins@tiscali.co.uk" , linux-mm@kvack.org, linux-kernel@vger.kernel.org, akpm@linux-foundation.org, "Tejun Heo" User-Agent: SquirrelMail/1.4.16 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 598 Lines: 25 Christoph Lameter wrote: > On Sat, 7 Nov 2009, KAMEZAWA Hiroyuki wrote: > >> And allocate mm->usage only when the first CLONE_THREAD is specified. > > Ok. > >> if (mm->usage) >> access per cpu >> else >> atomic_long_xxx > > If we just have one thread: Do we need atomic access at all? > Unfortunately, kswapd/vmscan touch this. Thanks, -Kame -- 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/