From: Keir Fraser Subject: Re: "Time went backwards" messages Date: Tue, 5 Apr 2005 09:28:15 +0100 Message-ID: <7d8a7bf76d6e7c8cc1000896cb26a177@cl.cam.ac.uk> References: <20050404234048.GA13242@us.ibm.com> Mime-Version: 1.0 (Apple Message framework v619.2) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20050404234048.GA13242@us.ibm.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Don Fry Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 5 Apr 2005, at 00:40, Don Fry wrote: > I have a high end IBM system with 4 HT CPUs, am running xen-unstable > with only Dom0 active, and I get lots of "Timer ISR/n: Time went > backwards" messages. This is a short segment from dmesg: The errors are coming from the per-vcpu timer interrupt that is only used in SMP guest builds. I can well imagine there are some 'latent correctness issues' around that code. :-) If you get messages starting 'Timer ISR: Time went backwards' then that would be morew worrying. > I looked at the archives and noticed this was reported when running > under VMware, but I see this happening with only xen and dom0. That was a different issue, most likely. > Are there any plans to restore Cyclone or HPET support to linux, and > add > it to xen, to eliminate this kind of problem? > > I have some prototype cyclone code added to xen, but have not done > anything to Linux yet. Do HPET/Cyclone actually give greater long-term accuracy than the legacy PIT? The only thing we use the non-local-APIC timer for is to track wallclock time, so if the timers are driven off the same crystal then it doesn't seem there will be a win. As I recall the HPET allows you to do things like set events to a precision of picoseconds, but it wasn't clear to me it was actually any more accurate than the PIT. :-) And we can always accumulate the lost precision in setting the PIT registers and periodically add it into the wallclock time. I have no problem with HPET/Cyclone code in Xen *if* it buys us anything. -- Keir > -- > Don Fry > brazilnut@us.ibm.com > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel