WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] cpuidle: suspend/resume scheduler tick timer during

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] cpuidle: suspend/resume scheduler tick timer during cpu idle entry/exit V2
From: "Yu, Ke" <ke.yu@xxxxxxxxx>
Date: Fri, 27 Mar 2009 15:50:27 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "Tian, Kevin" <kevin.tian@xxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 27 Mar 2009 00:51:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcmusLG8W0lkWKoERt6jWIrDnDj8oQ==
Thread-topic: [PATCH] cpuidle: suspend/resume scheduler tick timer during cpu idle entry/exit V2
Hi Keir,

This attached is the version 2 of the patch. The major update is fixing the 
soft-lockup issue.

The root cause is: sched_tick_suspend will call __stop_timer and may raise 
TIMER_SOFTIRQ if the timer deadline is changed. In this case, the assumption of 
no softirq pending in acpi_processor_idle is broken, and later the hpet 
broadcast wakeup IPI will not be delivered to this CPU, since its softirq 
pending bit is set. Then the CPU will be sleeping until random external 
interrupt happen. To fix this issue, the sched_tick_suspend is moved before the 
softirq pending bit checking, to keep the assumption correct.

I also measure the performance by SPECJbb in dom0, no performance degradation 
observed.

Best Regards
Ke

Attachment: stop-sched-timer-idle-v2.patch
Description: stop-sched-timer-idle-v2.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] cpuidle: suspend/resume scheduler tick timer during cpu idle entry/exit V2, Yu, Ke <=