WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] vcpu pin weight considerstion TAKE3

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] vcpu pin weight considerstion TAKE3
From: Atsushi SAKAI <sakaia@xxxxxxxxxxxxxx>
Date: Tue, 10 Jul 2007 17:47:01 +0900
Delivery-date: Tue, 10 Jul 2007 01:45:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

Attachment: 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>