From: "Jan Beulich" Subject: RE: cpuidle causing Dom0 soft lockups Date: Fri, 05 Feb 2010 09:14:08 +0000 Message-ID: <4B6BEF70020000780002DE0F@vpn.id2.novell.com> References: <4B58402E020000780002B3FE@vpn.id2.novell.com> <4B67E85E020000780002D1A0@vpn.id2.novell.com> <8B81FACE836F9248894A7844CC0BA814250B940CFF@shzsmsx501.ccr.corp.intel.com> <4B6BE984020000780002DDF9@vpn.id2.novell.com> <73BDC2BA3DA0BD47BAAEE12383D407EF35C82CF4@shzsmsx502.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <73BDC2BA3DA0BD47BAAEE12383D407EF35C82CF4@shzsmsx502.ccr.corp.intel.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ke Yu , Kevin Tian Cc: "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> "Tian, Kevin" 05.02.10 10:00 >>> >>From: Jan Beulich [mailto:JBeulich@novell.com]=20 >>Sent: 2010=E5=B9=B42=E6=9C=885=E6=97=A5 16:49 >> >>Yes, this patch works for us too. So a non-hacky version of it would be >>appreciated. >> >>I also meanwhile tried out the idea to reduce the contention on >>xtime_lock (attached for reference). Things appear to work fine, but >>there is an obvious problem (with - thus far to me - no obvious >>explanation) with it: The number of timer interrupts on CPUs not on >>duty to run do_timer() and alike is increasing significantly,=20 >>with spikes >>of over 100,000 per second. I'm investigating this, but of course any >>idea anyone of you might have what could be causing this would be >>very welcome. >> > >forgive my poor english. From your patch, only cpu on duty will invoke >do_timer to update global timestamp. Why in your test it's CPUs 'not >on duty' to have high frequent do_timer? I may read it wrong. :-( If you look at the patch, I added extra statistics for those timer interrupts that occur when a CPU is "on duty" (recorded as IRQ0, which is otherwise unused) and when not "on duty" (recorded as MCEs, since those hopefully(!!!) won't occur either, and in no case at a high rate). >From that I know that the rate of interrupts (not the rate of do_timer() invocations) is much higher on not-on-duty CPUs, but is roughly as without the patch for the on-duty one. Jan