CONFIG_NO_HZ breaks blktrace timestamps

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-btrace@...>
Cc: <linux-kernel@...>
Date: Wednesday, January 9, 2008 - 6:48 pm

While trying to gain some insight into a disk issue, I found that
blktrace/blkparse was giving me bogus traces -- I was seeing requests
complete before they were even dispatched or queued even! I had thought
that maybe this was an issue with SMP on the box, but when running with
'maxcpus=1', it told me that my 53 second test run only took 3.5
seconds.

I started tracking this down, and upon looking at cpu_clock(), and found
that it uses sched_clock(), which is based on jiffies. At this point I
had an ahah! moment and remembered that I had NO_HZ enabled.

Turning that off got blktrace to report the proper time for the test
run.

I'm not sure of the proper fix, nor am I sure I'm going to have much
time to track this down at the momenet, but I thought someone should
know.

-- 
Dave Dillow
National Center for Computational Science
Oak Ridge National Laboratory
(865) 241-6602 office


--
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)