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

[Xen-changelog] [xen-unstable] credit2: On debug keypress print load average as a fraction



# 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


 


Rackspace

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