[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



# 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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.