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 - 9:43 am

On Mon, 2010-03-29 at 10:11 -0400, Yury Polyanskiy wrote:

What I'm saying is that if you're using getrawmonotonic() to detect
hangs, you might miss them, as getrawmonotonic may wrap (and thus stop
continually increasing) if the timer interrupt is delayed. This does not
apply to systems using the TSC clocksource, but does apply to systems
using the acpi_pm. 

read_persistent_clock() is likely a better interface to use, because it
returns the seconds usually from the CMOS clock which runs continually
without any OS maintenance. 

The only complication there would likely be hwclock syncing (either by
hand or via NTP), but that could be handled by a
touch_hangcheck_watchdog() style notifier. 

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)