From: Keir Fraser Subject: Re: Re: [PATCH] [RFC] Credit2 scheduler prototype Date: Wed, 13 Jan 2010 15:16:51 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 13/01/2010 14:48, "George Dunlap" wrote: > The first implements something like what you suggest below, but > instead of using a sort of "hack" with VPF_migrate, it makes a proper > "context_saved" SCHED_OP callback. I thought using the vcpu_migrate() path might work well since you presumably have logic there to pick a new cpu which is relatively unloaded, making the cpu which tried to schedule the vcpu but had to idle instead a prime candidate. So rather than having to implement a new callback hook, you'd get to leverage the pick_cpu hook for free? > The second addresses the fact that when sharing runqueues, > v->processor may change quickly without an explicit migrate. I can't think of a better solution for this one. -- Keir