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] credit2: On debug keypress print load ave

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] credit2: On debug keypress print load average as a fraction
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 24 Dec 2010 15:47:25 -0800
Delivery-date: Fri, 24 Dec 2010 15:53:37 -0800
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@xxxxxxx>
# Date 1293179563 0
# Node ID a0228a0f3fd223dcc4260bd5824ac5b86ef6f09a
# Parent  94d47b8b723f00ef9f49db736a5f71cf819bc6eb
credit2: On debug keypress print load average as a fraction

Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
---
 xen/common/sched_credit2.c |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff -r 94d47b8b723f -r a0228a0f3fd2 xen/common/sched_credit2.c
--- a/xen/common/sched_credit2.c        Fri Dec 24 08:32:20 2010 +0000
+++ b/xen/common/sched_credit2.c        Fri Dec 24 08:32:43 2010 +0000
@@ -1774,14 +1774,20 @@ csched_dump(const struct scheduler *ops)
            CSCHED_DEFAULT_WEIGHT);
     for_each_cpu_mask(i, prv->active_queues)
     {
+        s_time_t fraction;
+        
+        fraction = prv->rqd[i].avgload * 100 / (1ULL<<prv->load_window_shift);
+
         printk("Runqueue %d:\n"
                "\tncpus              = %u\n"
                "\tmax_weight         = %d\n"
-               "\tload               = %d\n",
+               "\tinstload           = %d\n"
+               "\taveload            = %3ld\n",
                i,
                cpus_weight(prv->rqd[i].active),
                prv->rqd[i].max_weight,
-               prv->rqd[i].load);
+               prv->rqd[i].load,
+               fraction);
 
     }
     /* FIXME: Locking! */

_______________________________________________
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] credit2: On debug keypress print load average as a fraction, Xen patchbot-unstable <=