Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760675Ab0HFLPn (ORCPT ); Fri, 6 Aug 2010 07:15:43 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:41543 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752267Ab0HFLPk convert rfc822-to-8bit (ORCPT ); Fri, 6 Aug 2010 07:15:40 -0400 Subject: Re: [patch 1/2] x86_64 page fault NMI-safe From: Peter Zijlstra To: Mathieu Desnoyers Cc: Linus Torvalds , Frederic Weisbecker , Ingo Molnar , LKML , Andrew Morton , Steven Rostedt , Thomas Gleixner , Christoph Hellwig , Li Zefan , Lai Jiangshan , Johannes Berg , Masami Hiramatsu , Arnaldo Carvalho de Melo , Tom Zanussi , KOSAKI Motohiro , Andi Kleen , "H. Peter Anvin" , Jeremy Fitzhardinge , "Frank Ch. Eigler" , Tejun Heo In-Reply-To: <1281089471.1947.399.camel@laptop> References: <20100714223107.GA2350@Krystal> <20100714224853.GC14533@nowhere> <20100714231117.GA22341@Krystal> <20100714233843.GD14533@nowhere> <20100715162631.GB30989@Krystal> <1280855904.1923.675.camel@laptop> <1280903273.1923.682.camel@laptop> <20100804140605.GA29371@Krystal> <1280933410.1923.1267.camel@laptop> <20100806014231.GA496@Krystal> <1281089471.1947.399.camel@laptop> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Date: Fri, 06 Aug 2010 13:14:58 +0200 Message-ID: <1281093298.1947.476.camel@laptop> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1032 Lines: 20 On Fri, 2010-08-06 at 12:11 +0200, Peter Zijlstra wrote: > > You need to read the whole trace to find these cookies (even if it is just once > > at the beginning if you create an index). Even if you want to index all sync points you can quickly skip through the file using the sync-distance, after which you'll have, on average, only 1/2 avg-event-size to read before you find your next sync point. So suppose you have a 1M sync-distance, and an effective average event size of 128 bytes, then for a 4G file, you can find all sync points by only reading ~262144 bytes (not counting for the fact that the pagecache will bring in full pages, which would result in something like 16M to be read in total or somesuch -- which, again assumes read-ahead isn't going to play tricks on you). -- 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/