Re: [PATCH] hangcheck-timer is broken on x86

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: john stultz
Date: Monday, March 29, 2010 - 11:44 am

On Mon, 2010-03-29 at 13:04 -0400, Yury Polyanskiy wrote:

Right, if the box hangs for longer then the clocksource can count for,
the timekeeping subsystem will be off by some multiple of that length.

And That's exactly why I'm advising against using
gettimeofday/getrawmonotonic or any other software managed sense of time
for the hangcheck timer, as you won't be able to correctly detect hangs.

I'm also suggesting using something like read_persistent_clock() is
better, because there is no OS/software management involved (other then
the minor syncing issue I mentioned before) so if the system hangs for a
long period of time, then returns, you'll still be able to detect the
hang.

But maybe what folks are using the hangcheck timer for is shifting, so
its possible that I'm not quite understanding what you're trying to do
here.

thanks
-john

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

Messages in current thread:
[PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Tue Mar 23, 8:36 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Andrew Morton, (Fri Mar 26, 2:24 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Joel Becker, (Fri Mar 26, 2:46 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Fri Mar 26, 2:52 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Fri Mar 26, 3:00 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Joel Becker, (Fri Mar 26, 5:57 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Fri Mar 26, 7:02 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Joel Becker, (Sat Mar 27, 3:03 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Sat Mar 27, 3:51 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Joel Becker, (Sat Mar 27, 4:36 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Sat Mar 27, 7:08 pm)
Re: [PATCH] hangcheck-timer is broken on x86, john stultz, (Sun Mar 28, 6:00 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Mon Mar 29, 7:11 am)
Re: [PATCH] hangcheck-timer is broken on x86, john stultz, (Mon Mar 29, 9:43 am)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Mon Mar 29, 10:04 am)
Re: [PATCH] hangcheck-timer is broken on x86, john stultz, (Mon Mar 29, 11:44 am)
Re: [PATCH] hangcheck-timer is broken on x86, Joel Becker, (Mon Mar 29, 12:53 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Mon Mar 29, 2:08 pm)
Re: [PATCH] hangcheck-timer is broken on x86, john stultz, (Mon Mar 29, 2:43 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Yury Polyanskiy, (Mon Mar 29, 3:34 pm)
Re: [PATCH] hangcheck-timer is broken on x86, Joel Becker, (Wed Apr 7, 5:52 pm)