From: "Jan Beulich" Subject: RE: cpuidle causing Dom0 soft lockups Date: Mon, 08 Feb 2010 09:08:25 +0000 Message-ID: <4B6FE299020000780002E337@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> <8B81FACE836F9248894A7844CC0BA8142888E0B551@shzsmsx501.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <8B81FACE836F9248894A7844CC0BA8142888E0B551@shzsmsx501.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 Cc: Kevin Tian , "xen-devel@lists.xensource.com" , Keir Fraser List-Id: xen-devel@lists.xenproject.org >>> "Yu, Ke" 07.02.10 16:36 >>> >The attached is the updated patch, it has two changes >- change the logic from local irq disabled *and* poll event to local irq = disabled *or* poll event=20 Thanks. >- Use per-CPU vcpu list to iterate the VCPU, which is more scalable. The = original scheduler does not provide such kind of list, so this patch = implement the list in scheduler code. I'm still not really happy with that solution. I'd rather say that e.g. vcpu_sleep_nosync() should set a flag in the vcpu structure indicating whether that one is "urgent", and the scheduler should just maintain a counter of "urgent" vCPU-s per pCPU. Setting the flag when a vCPU is put to sleep guarantees that it won't be mis-treated if it got woken by the time acpi_processor_idle() looks at it (or at least the window would be minimal - not sure if it can be eliminated completely). Plus not having to traverse a list is certainly better for scalability, not the least since you're traversing a list (necessarily) including sleeping vCPU-s (i.e. the ones that shouldn't affect the performance/ responsiveness of the system). But in the end it would certainly depend much more on Keir's view on it than on mine... Jan