|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH 16 of 16] credit2: On debug keypress print load avera
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
diff -r 975588ecb94e -r feda9b7cd63a xen/common/sched_credit2.c
--- a/xen/common/sched_credit2.c Thu Dec 23 12:27:27 2010 +0000
+++ b/xen/common/sched_credit2.c Thu Dec 23 12:27:41 2010 +0000
@@ -1774,14 +1774,20 @@
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-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH 06 of 16] credit2: Calculate instantaneous runqueue load, (continued)
- [Xen-devel] [PATCH 06 of 16] credit2: Calculate instantaneous runqueue load, George Dunlap
- [Xen-devel] [PATCH 07 of 16] credit2: Simple cpu picker based on instantaneous load, George Dunlap
- [Xen-devel] [PATCH 08 of 16] credit2: Detect socket layout and assign one runqueue per socket, George Dunlap
- [Xen-devel] [PATCH 09 of 16] credit2: Calculate load average, George Dunlap
- [Xen-devel] [PATCH 11 of 16] credit2: Track expected load, George Dunlap
- [Xen-devel] [PATCH 10 of 16] credit2: Track average load contributed by a vcpu, George Dunlap
- [Xen-devel] [PATCH 12 of 16] credit2: Migrate request infrastructure, George Dunlap
- [Xen-devel] [PATCH 13 of 16] credit2: Use loadavg to pick cpus, instead of instantaneous load, George Dunlap
- [Xen-devel] [PATCH 14 of 16] credit2: Introduce a loadavg-based load balancer, George Dunlap
- [Xen-devel] [PATCH 15 of 16] credit2: Different unbalance tolerance for underloaded and overloaded queues, George Dunlap
- [Xen-devel] [PATCH 16 of 16] credit2: On debug keypress print load average as a fraction,
George Dunlap <=
|
|
|
|
|