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] vCPU pinning

To: "Mark Williamson" <mark.williamson@xxxxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-devel] vCPU pinning
From: "Kaushik Barde" <Kaushik_Barde@xxxxxxxxxxx>
Date: Mon, 8 Oct 2007 14:13:15 -0700
Delivery-date: Mon, 08 Oct 2007 14:13:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <200710081735.45716.mark.williamson@xxxxxxxxxxxx>
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>
References: <0EF82802ABAA22479BC1CE8E2F60E8C301EBD9C2@xxxxxxxxxxxxxxxxxxxxxxx> <200710081735.45716.mark.williamson@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcgJyUrZW0Ct56HrQ9C8jx+nm1Rd6gAJQb5w
Thread-topic: [Xen-devel] vCPU pinning
Thanks, Mark.

Sorry about asking a very specific question without giving its context.
Your response is appreciated.
We would like to use it to enforce better CPU power management, first
goal is to implement "reliable" enough CPU frequency scaling and create
_CST mapping to a governor running in Xen context, which can map into
existing user mode frequency scalars.

-Kaushik


-----Original Message-----
From: M.A. Williamson [mailto:maw48@xxxxxxxxxxxxxxxx] On Behalf Of Mark
Williamson
Sent: Monday, October 08, 2007 9:36 AM
To: xen-devel@xxxxxxxxxxxxxxxxxxx
Cc: Kaushik Barde
Subject: Re: [Xen-devel] vCPU pinning

> I would like to "pin" vcpu to a domain,
> Can someone please point to me if there's such a support?

Your question didn't quite make sense, but I think I see what you mean -
it's 
just that the terminology is a bit complicated!

If you consider a domain as being "like a process" then VCPUs are 
like "threads".  They're the parts of the domain that get scheduled on
the 
real CPUs and do work.  *within* the domain, these will be shared out
between 
processes the OS is running but /Xen doesn't really know about this/.
It 
just sees a bunch of VCPUs from a domain that it can run, and a bunch of
real 
logical CPUs that it can run them on.

You can pin a VCPU to a real logical CPU (that's a core or a hyperthread
on 
the host machine).  This can be used to divide up the machine more
strictly, 
enforce separation or quality of service, etc.

You can specify pinning at runtime using the command "xm vcpu-pin", or
in the 
domain config file using the "CPUs" variable.  I believe it's possible
to set 
a mask of "possible CPUs" for all VCPUs or for individual VCPUs.

Hope this helps you.

Cheers,
Mark

PS. "how do I...?" questions are generally better directed to the
xen-users 
mailing list - they're liable to get more responses and discussion there
due 
to the higher subscriber cound and user focus.

-- 
Dave: Just a question. What use is a unicyle with no seat?  And no
pedals!
Mark: To answer a question with a question: What use is a skateboard?
Dave: Skateboards have wheels.
Mark: My wheel has a wheel!

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

<Prev in Thread] Current Thread [Next in Thread>