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

RE: [Xen-devel] [PATCH] Add migration_cost option to scheduler

To: 'George Dunlap' <George.Dunlap@xxxxxxxxxxxxx>, "Yang, Xiaowei" <xiaowei.yang@xxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] Add migration_cost option to scheduler
From: "Tian, Kevin" <kevin.tian@xxxxxxxxx>
Date: Mon, 9 Mar 2009 21:08:52 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 09 Mar 2009 06:10:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <de76405a0903090555n4b07cbd0w40a7153cd7c53ea4@xxxxxxxxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <49B4D0C8.5050504@xxxxxxxxx> <de76405a0903090555n4b07cbd0w40a7153cd7c53ea4@xxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acmgtm2skPga2iFTQyqmLMx7syBkfwAAR3hA
Thread-topic: [Xen-devel] [PATCH] Add migration_cost option to scheduler
>From: George Dunlap
>Sent: Monday, March 09, 2009 8:56 PM
>
>Hmm, I think this patch may not be exactly what we want.  It looks
>like it checks for how long a vcpu has been in its current stat, not
>how recently it has been running.  So if a vcpu sleeps for a long time
>on a cpu that's running other workloads, then wakes up
>(blocked->runnable), the cache is by no means "hot".  But since it has
>only been in the "runnable" state for a few hundred cycles, it won't
>be migrated, even though there's little cost.

Then to add a per-vcpu last_running_timestamp which is recorded when 
vcpu is scheduled out, could hit the purpose here?

>
>However, if the pcpu was idle since the last time this vcpu ran (i.e.,
>if we're just catching the vcpu in the process of waking up), the
>cache *is* still hot.  Hmm....
>

If peer pcpu is idle, shouldn't it be skipped by load balancer running on
another pcpu, which is out of the cache-hot logic?

Thanks,
Kevin
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel