Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760487AbYAKM2T (ORCPT ); Fri, 11 Jan 2008 07:28:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759261AbYAKM2J (ORCPT ); Fri, 11 Jan 2008 07:28:09 -0500 Received: from brick.kernel.dk ([87.55.233.238]:14101 "EHLO kernel.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758715AbYAKM2G (ORCPT ); Fri, 11 Jan 2008 07:28:06 -0500 Date: Fri, 11 Jan 2008 13:28:02 +0100 From: Jens Axboe To: Ingo Molnar Cc: David Dillow , Guillaume Chazarain , linux-kernel@vger.kernel.org, linux-btrace@vger.kernel.org, mingo@redhat.com, tglx@linutronix.de Subject: Re: [patch] block: fix blktrace timestamps Message-ID: <20080111122802.GT6258@kernel.dk> References: <1199918912.8388.13.camel@lap75545.ornl.gov> <1199996752.9159.46.camel@lap75545.ornl.gov> <20080110234438.4826f658@inria.fr> <1200020661.5099.3.camel@obelisk.thedillows.org> <20080111090723.GI6258@kernel.dk> <20080111092334.GA8143@elte.hu> <20080111092513.GO6258@kernel.dk> <20080111094205.GE8143@elte.hu> <20080111095654.GR6258@kernel.dk> <20080111102953.GA27223@elte.hu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080111102953.GA27223@elte.hu> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2128 Lines: 56 On Fri, Jan 11 2008, Ingo Molnar wrote: > > (David, could you try the patch further below - does it fix bkltrace > timestamps too?) > > * Jens Axboe wrote: > > > On Fri, Jan 11 2008, Ingo Molnar wrote: > > > > > > * Jens Axboe wrote: > > > > > > > > they are from the scheduler git tree (except the first debug patch), > > > > > but queued up for v2.6.25 at the moment. > > > > > > > > So this means that blktrace will be broken with CONFIG_NO_HZ for > > > > 2.6.24? That's clearly a regression. > > > > > > 64-bit CONFIG_NO_HZ is a new feature in v2.6.24. If it happens on > > > 32-bit too and it didnt happen in v2.6.23 32-bit then it's a > > > regression. > > > > If blktrace worked in 2.6.23 and it doesn't in 2.6.24 because of some > > option that isn't immediately apparent, then it's a regression. > > Period. > > not completely correct. CONFIG_NO_HZ is a default-disabled option that > became newly available on 64-bit x86. So if NO_HZ does not completely > work on 64-bit, and if 32-bit works fine - which we dont know yet (my > guess would be that it's similarly broken on the same box) then it's not > a regression. Ingo, it doesn't matter if the option is disabled by default or not! The fact is that functionality foo works in 2.6.23 and doesn't in 2.6.24 because of something unrelated. And that IS a regression, no matter what kind of word play you are doing here :-) > But even if it's not "technically" a regression, it's something we want > to fix in .24 if we can, so i'm all with you Jens :) That's good :) > ktime_get() should have been used instead, which is a proper GTOD > clocksource. The patch below implements this. Will give it a whirl, it looks promising indeed and gets rid of the ugly cpu sync stuff. What is the cost of ktime_get() compared to sched_clock()? -- Jens Axboe -- 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/