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] xen: Implement domain runstates

To: Keir Fraser <keir@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH] xen: Implement domain runstates
From: Bruce Edge <bruce.edge@xxxxxxxxx>
Date: Thu, 25 Nov 2010 14:32:40 -0800
Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 25 Nov 2010 14:33:27 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=CEZNF2EmdWv0cT0HBQyOhcYAeA1alJNF3rdANh+8RIg=; b=Y4cZDrCW2nxtHPwwV3uHUhLl925J3ngJK78tZ1CzqzctjFYO189qLBeyW8CieTLfem QNwz85yo+iEhd7PZO8eQ+mzUKSMAYySWq0xZIdbG8zAbo1POTdFWtpRG3PRKCxFPqXbn wbr3dGkTeqIJzmSl9EyOzdl5d8pK05rWhr2yw=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=u91EdVzmw+G/jVSZTk5zB1Dw8bC09WzeIGDjAGxeAPJ51YikcfK2ZsXsunY9NmUpNU aNcOKJhcoBhkjLpwD1FmwZ4OWVv4t/4egFsvGxspnHGdLzuAalxdR11rQDR+08zSJ5kg d21EMfBTfdVtMR3qo/xdQsSG4Md4kbK30pPh4=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C91492B6.B228%keir@xxxxxxx>
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: <AANLkTi=xA9dMkS+p2G3MxTTGvFqOYNjoFKd8hCac9jBn@xxxxxxxxxxxxxx> <C91492B6.B228%keir@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


On Thu, Nov 25, 2010 at 2:24 PM, Keir Fraser <keir@xxxxxxx> wrote:
On 25/11/2010 20:02, "Bruce Edge" <bruce.edge@xxxxxxxxx> wrote:

> Irrespective of the nature of the suggested functionality, I do agree that xen
> users will be more likely to try something if it's part of the default build,
> especially if the benefit is not immediately obvious. With all the complexity
> associated with any virtualization project, I think that many integrators
> don't have the time to experiment with every possible option included in the
> "off the shelf" Xen, not to mention those that require explicit patching and
> manual inclusion.
> That said I would try this as a "VCPU allocation suitability" metric for any
> xen system. The ability to see this data 'at a glance' would be beneficial to
> admins and system architects.
> A lot of data is available if you know how to get it. That is very different
> from presenting that data in an easily digestible format requiring no work to
> use.

You may be under the impression the feature is free. It isn't -- it adds a
lock and loop over all vcpus on every vcpu scheduling/descheduling decision.
That could be frequent for VCPUs doing a lot of short blocking, for example.
And the system-wide work done to support this feature will scale
quadratically on average with vcpus-per-domain. My gut feeling is this isn't
a good thing to have on your context switch path.


Agreed, probably have to be a compile time option.  That would still give it more exposure than if it required a patch.

We build debug & release versions of everything, with max instrumentation on the former and max optimizations on the latter. I could see this being informative for the debug variant, although that may not be the exact use case that George was after. I see this more as a tool for confirming one's VCPU allocations on a single system with multiple VMs rather than an admin tool for monitoring generic virtualization servers.

-Bruce
 
 -- Keir



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