Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757496Ab0GNUF6 (ORCPT ); Wed, 14 Jul 2010 16:05:58 -0400 Received: from mail.openrapids.net ([64.15.138.104]:52177 "EHLO blackscsi.openrapids.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1757442Ab0GNUFy (ORCPT ); Wed, 14 Jul 2010 16:05:54 -0400 Date: Wed, 14 Jul 2010 16:05:52 -0400 From: Mathieu Desnoyers To: Andi Kleen Cc: 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 , "H. Peter Anvin" , Jeremy Fitzhardinge , "Frank Ch. Eigler" , Tejun Heo Subject: Re: [patch 1/2] x86_64 page fault NMI-safe Message-ID: <20100714200552.GA22096@Krystal> References: <20100714154923.947138065@efficios.com> <20100714155804.049012415@efficios.com> <20100714170617.GB4955@Krystal> <20100714184642.GA9728@elte.hu> <20100714195617.GC22373@basil.fritz.box> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100714195617.GC22373@basil.fritz.box> X-Editor: vi X-Info: http://www.efficios.com X-Operating-System: Linux/2.6.26-2-686 (i686) X-Uptime: 15:59:24 up 172 days, 22:36, 6 users, load average: 0.08, 0.10, 0.07 User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1364 Lines: 42 * Andi Kleen (andi@firstfloor.org) wrote: > > or similar. Wouldn't that be nice to have as a capability? > > It means the NMI watchdog would get useless if these areas > become common. > > Again I suspect all of this is not really needed anyways if > vmalloc_sync_all() works properly. That would solve the original > problem Mathieu was trying to solve for per_cpu data. The rule > would be just to call vmalloc_sync_all() properly when changing > per CPU data too. Yep, that would solve the page fault in nmi problem altogether without adding complexity. > > In fact I'm pretty sure it worked originally. Perhaps it regressed? I'd first ask the obvious to Perf authors: does perf issue vmalloc_sync_all() between percpu data allocation and tracing activation ? The generic ring buffer library I posted last week does it already as a precaution for this very specific reason (making sure NMIs never trigger page faults). Thanks, Mathieu > > -Andi > -- > ak@linux.intel.com -- Speaking for myself only. -- Mathieu Desnoyers Operating System Efficiency R&D Consultant EfficiOS Inc. http://www.efficios.com -- 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/