[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090622150553.GA14363@elte.hu>
Date: Mon, 22 Jun 2009 17:05:53 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Martin Schwidefsky <schwidefsky@...ibm.com>
Cc: Thomas Gleixner <tglx@...utronix.de>, linux-kernel@...r.kernel.org,
Rob van der Heij <rvdheij@...il.com>,
Heiko Carstens <heiko.carstens@...ibm.com>,
john stultz <johnstul@...ibm.com>,
Andi Kleen <andi@...stfloor.org>,
Peter Zijlstra <a.p.zijlstra@...llo.nl>
Subject: Re: [patch 0/2] NOHZ vs. profile/oprofile v2
* Martin Schwidefsky <schwidefsky@...ibm.com> wrote:
> On Mon, 22 Jun 2009 16:41:10 +0200
> Ingo Molnar <mingo@...e.hu> wrote:
>
> > Hm, this is rather ugly. Why not use hrtimers like 'perf' does when
> > it fallback-samples based on the timer tick?
> >
> > That method has three advantages:
> >
> > - no weird hookery needed
> > - resolution can go far beyond HZ
> > - it is evidently dynticks-safe
>
> Hmm, if we replace the HZ based oprofile tick with an hrtimer we
> should add an interface to configure the sample interval as well,
> no? Otherwise we just replace one timer event (HZ) with another
> (hrtimer).
Even if the hrtimer is set with a 1/HZ period it's a better
solution, as it's dynticks safe without invasive changes.
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists