summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3451d24)
raw | patch | inline | side by side (parent: 3451d24)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 11 Sep 2010 09:04:04 +0000 (11:04 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 11 Sep 2010 09:04:04 +0000 (11:04 +0200) |
src/lpar.c | patch | blob | history |
diff --git a/src/lpar.c b/src/lpar.c
index 4f7f444a0f95e8285246df810ffc6421c59c134d..7a842e0712b0e42562412f6f7c81aa086ad550a4 100644 (file)
--- a/src/lpar.c
+++ b/src/lpar.c
return (-1);
}
- /*
- * On a shared partition, we're "entitled" to a certain amount of
- * processing power, for example 250/100 of a physical CPU. Processing
- * capacity not used by the partition may be assigned to a different
- * partition by the hypervisor, so "idle" is hopefully a very small
- * number.
- */
-
/* Number of ticks since we last run. */
ticks = lparstats.timebase_last - time_old;
if (ticks == 0)
return (0);
}
+ /*
+ * On a shared partition, we're "entitled" to a certain amount of
+ * processing power, for example 250/100 of a physical CPU. Processing
+ * capacity not used by the partition may be assigned to a different
+ * partition by the hypervisor, so "idle" is hopefully a very small
+ * number.
+ */
+
/* entitled_proc_capacity is in 1/100th of a CPU */
entitled_proc_capacity = 0.01 * ((double) lparstats.entitled_proc_capacity);
lpar_submit ("entitled", entitled_proc_capacity);
/* FYI: PURR == Processor Utilization of Resources Register
* SPURR == Scaled PURR */
+ /* donated => ticks given to another partition
+ * stolen => ticks received from another partition */
lpar_submit ("idle_donated", (double) idle_donated_ticks / (double) ticks);
lpar_submit ("busy_donated", (double) busy_donated_ticks / (double) ticks);
lpar_submit ("idle_stolen", (double) idle_stolen_ticks / (double) ticks);