Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758513Ab3IBNJM (ORCPT ); Mon, 2 Sep 2013 09:09:12 -0400 Received: from mail-yh0-f49.google.com ([209.85.213.49]:49342 "EHLO mail-yh0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758456Ab3IBNJJ (ORCPT ); Mon, 2 Sep 2013 09:09:09 -0400 Date: Mon, 2 Sep 2013 09:15:48 -0400 (EDT) From: Vince Weaver To: eranian@gmail.com cc: Andi Kleen , Vince Weaver , LKML , linux-perf-users@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo Subject: Re: perf_event: rdpmc self-monitoring overhead issue In-Reply-To: Message-ID: References: <87ob8cdji8.fsf@tassilo.jf.intel.com> User-Agent: Alpine 2.10 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 832 Lines: 25 On Mon, 2 Sep 2013, Stephane Eranian wrote: > On Mon, Sep 2, 2013 at 4:50 AM, Andi Kleen wrote: > > Stephane Eranian writes: > > > >> I don't see a flag in mmap() to fault it in immediately. > > > > MAP_PRESENT > > > I could not find this constant defined anywhere in the kernel source tree > nor in /usr/include. Are you sure of the name? I assume he means MAP_POPULATE which does improve things, from ~3000 cycles to ~219 cycles but that's still more overhead than the ~130 or so you get by manually touching the page first. Vince -- 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/