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][RFC] credit scheduler enhancement, eliminate unnecess

To: "Keir Fraser" <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel][PATCH][RFC] credit scheduler enhancement, eliminate unnecessary vcpu migrations
From: "Xu, Anthony" <anthony.xu@xxxxxxxxx>
Date: Thu, 14 Sep 2006 08:41:50 +0800
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, xen-ia64-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 13 Sep 2006 17:43:43 -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
Thread-index: AcbXlpEa5jp8hQ5ZQ1mLujjGXflQJg==
Thread-topic: [Xen-devel][PATCH][RFC] credit scheduler enhancement, eliminate unnecessary vcpu migrations
Hi Keir,

csched_load_balance is used to see if there are higher privileged vcpu
in
other physical processors' runnable queue, if there is, then migrate
this vcpu to this physical processor.

But at following scenario, this vcpu migration is unnecessary.
1. idle_vcpu0 is running on lp0, hvm_vcpu is in lp0's runnable queue,
this
    happens when hvm_vcpu is just being woken up,
2. idle_vcpu1 is running on lp1, there are no vcpu in lp1's runnable
queue,
   idle_vcpu1 calls scheduler to try to find vcpu in other physical
processor
   to run on lp1, it then finds hvm_vcpu, and hvm_vcpu is migrated to
lp1.

In fact, this migration is unnecessary, due to hvm_vcpu is going to run
on lp0     immediately.

As we know vcpu migration incurs extra overhead such as tlb purge.

This patch is to eliminate these unnecessary vcpu migrations.

After applying this patch, KB on up hvm domain gain more than 10%
improvement.
There are 4 physical processors on my box.


What do you think?

Thanks,
Anthony

Attachment: credit_sched.patch
Description: credit_sched.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel][PATCH][RFC] credit scheduler enhancement, eliminate unnecessary vcpu migrations, Xu, Anthony <=