From: Mukesh Rathor Subject: Re: [timer/ticks related] dom0 hang during boot on large 1TB system Date: Mon, 21 Dec 2009 20:31:21 -0800 Message-ID: <20091221203121.7cd82439@mantra.us.oracle.com> References: <4B300120.4040405@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Dan Magenheimer Cc: Jeremy Fitzhardinge , Xen-devel@lists.xensource.com, kurt.hackel@oracle.com, Beulich , Jan, Keir Fraser List-Id: xen-devel@lists.xenproject.org On Mon, 21 Dec 2009 15:57:33 -0800 (PST) Dan Magenheimer wrote: > > From: Jeremy Fitzhardinge [mailto:jeremy@goop.org] > > > > There's some code in the pvops kernel which looks vaguely > > like that, but > > it has nothing to do with timer interrupts. Could you be > > more specific > > about what you're referring to? > > I spent some time rooting through the 2.6.32 code and > ended up with my head spinning. I think the bottom line > is if there is code that may cause jiffies to increment > by a large amount from a single "tick" delivered by > Xen, it's likely the same problem can occur in 2.6.32 > dom0 when running on Xen. Right. Your calibrate_delay_direct() is the same, so in there: start_jiffies = jiffies; ... timer interrupt.... while (jiffies <= (start_jiffies + tick_divider)) { pre_start = start; read_current_timer(&start); } if timer tick comes in after start_jiff is set, and upon returning from timer interrupt the while loop finds jiffies wrapped, it will hang. i was looking at wrong "jeremy's pvops tree", but now that i am looking at correct one, i see that your timer_interrupt() is pretty different. so if you believe that you could also increment jiffies by more than one in timer_interrupt, you should consider my new patch when i submit. i'm testing right now. thanks, mukesh