Skip to contentSkip to conversation

xen: credit2: performance counter for load balancing call

PATCH Superseded Praveen Kumar 2 participants 2 messages Jan 24, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: credit2: performance counter for load balancing call

The patch introduces a new performance counter that keeps track of the load balancing logic called in credit2 scheduler.

---

xen/common/sched_credit2.c +2 -0
index ef8e0d8..f212338 100644
@@ -1869,6 +1869,8 @@ retry:
                     (unsigned char *)&d);
     }
 
+    SCHED_STAT_CRANK(acct_load_balance);
+
     /* Look for "swap" which gives the best load average
      * FIXME: O(n^2)! */
 
xen/include/xen/perfc_defn.h +1 -0
index 900fddd..0d702f0 100644
@@ -57,6 +57,7 @@ PERFCOUNTER(vcpu_hot,               "csched: vcpu_hot")
 
 /* credit2 specific counters */
 PERFCOUNTER(burn_credits_t2c,       "csched2: burn_credits_t2c")
+PERFCOUNTER(acct_load_balance,      "csched2: acct_load_balance")
 PERFCOUNTER(upd_max_weight_quick,   "csched2: update_max_weight_quick")
 PERFCOUNTER(upd_max_weight_full,    "csched2: update_max_weight_full")
 PERFCOUNTER(migrate_requested,      "csched2: migrate_requested")

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Praveen Kumar

The patch introduces a new performance counter that keeps track of the load
balancing logic called in credit2 scheduler.

I probably would have written "that counts how many time we go through the load balancing logic in Credit2"

Or something like that.

But it's not a big deal, so, in any case:

Quoted 2 lines

Thanks and Regards,
Dario

Signature · 4 lines
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel