Re: CONFIG_NO_HZ breaks blktrace timestamps

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <mingo@...>
Cc: David Dillow <dillowda@...>, <linux-kernel@...>, <linux-btrace@...>, <tglx@...>, Jens Axboe <jens.axboe@...>, <nigel@...>
Date: Friday, January 11, 2008 - 6:41 am

David Dillow <dillowda@ornl.gov> wrote:


A little bit of warning about these patches, they are WIP, that's why I
did not send them earlier. It regress nohz=off.

A bit of context: these patches aim at making sure cpu_clock() on my
laptop (cpufreq enabled) never overflows/underflows/warps with
CONFIG_NOHZ enabled. With these patches, I have a few hundreds
overflows and underflows during early bootup, and then nothing :-)

Ingo Molnar <mingo@elte.hu> wrote:


You are talking about "x86: scale cyc_2_nsec according to CPU
frequency" here, but I don't think it is at stakes here as David has:


Let me review my patches myself to give a bit of context:


This, I'd like to have it in .25 just for convenience.


You already know that one ;-)


This is a bugfix for .25 once the previous patch is applied. I don't
think it helps David, but it could help blktrace users with cpufreq
enabled.


I think this one is the most important for David, but unfortunately it
has some problems.


Here, I initially wrote rq->last_tick_seen + 1 but experiments showed
that +2 was needed as I really saw deltas of 2 milliseconds.

These patches have two objectives:
 - taking into account that jiffies are not always incremented by 1
thanks to nohz
 - as the tick is stopped and restarted it may not tick at the exact
expected moment, so allow a window of 1 jiffie. If the tick occurs
during the right jiffy, we know the TSC is more precise than the tick
so don't correct the clock.

And the problem is that I seem to need a window of 2 jiffies, so I need
some help.


This is one is needed too but I'm less confident in its validity.


This one is a bit ugly and seems to break nohz=off.


No, I'm not proud of this :-(

Thanks.

-- 
Guillaume
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
CONFIG_NO_HZ breaks blktrace timestamps, David Dillow, (Wed Jan 9, 6:48 pm)
Re: CONFIG_NO_HZ breaks blktrace timestamps, David Dillow, (Thu Jan 10, 4:25 pm)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Ingo Molnar, (Fri Jan 11, 5:34 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, David Dillow, (Fri Jan 11, 11:43 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Guillaume Chazarain, (Thu Jan 10, 6:44 pm)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Guillaume Chazarain, (Fri Jan 11, 6:41 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Ingo Molnar, (Fri Jan 11, 6:55 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Guillaume Chazarain, (Fri Jan 11, 6:30 pm)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Guillaume Chazarain, (Fri Jan 11, 8:03 pm)
Re: CONFIG_NO_HZ breaks blktrace timestamps, David Dillow, (Thu Jan 10, 11:04 pm)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Ingo Molnar, (Fri Jan 11, 5:44 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Ingo Molnar, (Fri Jan 11, 5:51 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Jens Axboe, (Fri Jan 11, 5:07 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Ingo Molnar, (Fri Jan 11, 5:32 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Ingo Molnar, (Fri Jan 11, 5:23 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Ingo Molnar, (Fri Jan 11, 5:29 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Jens Axboe, (Fri Jan 11, 5:34 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Jens Axboe, (Fri Jan 11, 5:25 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Ingo Molnar, (Fri Jan 11, 5:42 am)
Re: CONFIG_NO_HZ breaks blktrace timestamps, Jens Axboe, (Fri Jan 11, 5:56 am)
[patch] block: fix blktrace timestamps, Ingo Molnar, (Fri Jan 11, 6:29 am)
Re: [patch] block: fix blktrace timestamps, David Dillow, (Fri Jan 11, 11:36 am)
Re: [patch] block: fix blktrace timestamps, Ingo Molnar, (Fri Jan 11, 12:44 pm)
Re: [patch] block: fix blktrace timestamps, Jens Axboe, (Fri Jan 11, 1:26 pm)
Re: [patch] block: fix blktrace timestamps, Jens Axboe, (Fri Jan 11, 8:28 am)
Re: [patch] block: fix blktrace timestamps, Ingo Molnar, (Fri Jan 11, 9:21 am)
Re: [patch] block: fix blktrace timestamps, Jens Axboe, (Fri Jan 11, 1:18 pm)
Re: [patch] block: fix blktrace timestamps, Ingo Molnar, (Mon Jan 14, 3:51 am)
Re: [patch] block: fix blktrace timestamps, Christoph Hellwig, (Mon Jan 14, 4:39 am)
Re: [patch] block: fix blktrace timestamps, Jens Axboe, (Mon Jan 14, 4:42 am)
Re: [patch] block: fix blktrace timestamps, Ingo Molnar, (Mon Jan 14, 3:59 am)
Re: [patch] block: fix blktrace timestamps, Jens Axboe, (Mon Jan 14, 4:10 am)
Re: [patch] block: fix blktrace timestamps, Jens Axboe, (Fri Jan 11, 8:42 am)
Re: [patch] block: fix blktrace timestamps, Guillaume Chazarain, (Fri Jan 11, 6:47 am)
Re: [patch] block: fix blktrace timestamps, Ingo Molnar, (Fri Jan 11, 6:50 am)