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-changelog

[Xen-changelog] [xen-unstable] Only set scheduler quantum timer for non-

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Only set scheduler quantum timer for non-idle VCPUs
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 07 Apr 2009 23:02:58 -0700
Delivery-date: Tue, 07 Apr 2009 23:07:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1238596760 -3600
# Node ID e89f7c2b9e0d695645f86816da5fd05b340fa36e
# Parent  4da7f15e91262866bc6b0cdfee8883f4d2810955
Only set scheduler quantum timer for non-idle VCPUs

This removes the last idle periodic timer in xen, and enhances the
idle average C state residency from two-digits ms  to three-digit ms.

Signed-off-by: Yu Ke <ke.yu@xxxxxxxxx>
Signed-off-by: Tian Kevin <kevin.tian@xxxxxxxxx>
---
 xen/common/schedule.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff -r 4da7f15e9126 -r e89f7c2b9e0d xen/common/schedule.c
--- a/xen/common/schedule.c     Wed Apr 01 14:04:46 2009 +0100
+++ b/xen/common/schedule.c     Wed Apr 01 15:39:20 2009 +0100
@@ -818,8 +818,9 @@ static void schedule(void)
     next = next_slice.task;
 
     sd->curr = next;
-    
-    set_timer(&sd->s_timer, now + r_time);
+
+    if ( !is_idle_vcpu(next) )
+        set_timer(&sd->s_timer, now + r_time);
 
     if ( unlikely(prev == next) )
     {

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Only set scheduler quantum timer for non-idle VCPUs, Xen patchbot-unstable <=