|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] vcpu pin weight considerstion TAKE3
Hi, Keir and Emmanuel
This patch intends to correct the weight treatment for vcpu-pin.
Would you give me a comment on this?
sched_credit.c | 115 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 files changed, 114 insertions(+), 1 deletion(-)
Current algorithm is
1)calculate pcpu_weight based on all active vcpu.
vcpu_weight = sdom->weight/sdom->online_vcpu_count(newly added variable)
v->processor
(This routine runs when vcpu count is changed, not every 30msec.)
2)calulate vcpupin_factor based on
avarage of vcpu-pinned-pcpu_weight/(csched_priv.weight/num_online_cpu())
3)consider above factor when credit is added in vcpu-pin case.
at atomic_add(credit_fair, &svc->credit);
Signed-off-by: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Difference from previous patch(+365 lines) is
1)credit_balance consideration factor is omitted (about -150 lines)
2)detailed pcpu_weight calculation is changed (about -100 lines)
(currently uses v->processor instead of vcpu->cpu_affinity)
Thanks
Atsushi SAKAI
vcpupin0710.patch
Description: Binary data
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] vcpu pin weight considerstion TAKE3,
Atsushi SAKAI <=
|
|
|
|
|