Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757734Ab0GNXcf (ORCPT ); Wed, 14 Jul 2010 19:32:35 -0400 Received: from mail-bw0-f46.google.com ([209.85.214.46]:57172 "EHLO mail-bw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755328Ab0GNXce (ORCPT ); Wed, 14 Jul 2010 19:32:34 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=cgu/+69/4oHSpgrO51Oa/MxOUmY9D8wXsnBzhgwpRjQjfGz1UxnMJC7qeZLnGVYDvI yKPVd/t9uTUOdILHvtJF68nrGmY5ZAvyMKWd0y5EQ8832CtJgtbVajOsx31jNRg+HB4g /n7sYmUPhgOeT/lBl6+OQThjXwbvL+2m910VA= Message-ID: <4C3E490B.4000702@gmail.com> Date: Thu, 15 Jul 2010 01:32:27 +0200 From: Tejun Heo User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 To: "H. Peter Anvin" CC: Andi Kleen , Mathieu Desnoyers , Linus Torvalds , Ingo Molnar , LKML , Andrew Morton , Peter Zijlstra , Steven Rostedt , Steven Rostedt , Frederic Weisbecker , Thomas Gleixner , Christoph Hellwig , Li Zefan , Lai Jiangshan , Johannes Berg , Masami Hiramatsu , Arnaldo Carvalho de Melo , Tom Zanussi , KOSAKI Motohiro , Jeremy Fitzhardinge , "Frank Ch. Eigler" Subject: Re: [patch 1/2] x86_64 page fault NMI-safe References: <20100714154923.947138065@efficios.com> <20100714155804.049012415@efficios.com> <20100714170617.GB4955@Krystal> <20100714184642.GA9728@elte.hu> <20100714195617.GC22373@basil.fritz.box> <20100714200552.GA22096@Krystal> <20100714200745.GD22373@basil.fritz.box> <4C3E194C.90602@zytor.com> In-Reply-To: <4C3E194C.90602@zytor.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 845 Lines: 26 Hello, On 07/14/2010 10:08 PM, H. Peter Anvin wrote: >> I suspect the low level per cpu allocation functions should >> just call it. >> > > Yes, specifically the point at which we allocate new per cpu memory > blocks. We can definitely do that but walking whole page table list is too heavy to do automatically at that level especially when all users other than NMI would be fine w/ the default lazy approach. If Linus' approach doesn't pan out, I think the right thing to do would be adding a wrapper to vmalloc_sync_all() and let perf code call it after percpu allocation. Thanks. -- tejun -- 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/