[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [Xen-users] how to pin to spefiic cpu


  • To: "Peter Peltonen" <peter.peltonen@xxxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Petersson, Mats" <Mats.Petersson@xxxxxxx>
  • Date: Wed, 28 Feb 2007 18:37:00 +0100
  • Delivery-date: Wed, 28 Feb 2007 09:36:42 -0800
  • List-id: Xen user discussion <xen-users.lists.xensource.com>
  • Thread-index: AcdbWwOqYM5MszgMS8WX9f5jAMUQOQAAk1qQ
  • Thread-topic: [Xen-users] how to pin to spefiic cpu

 

> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx 
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Peter Peltonen
> Sent: 28 February 2007 17:08
> To: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: [Xen-users] how to pin to spefiic cpu
> 
> In Xen's 3.0 documentation is stated:
> 
> "f you are running IO intensive tasks, its typically better to
> dedicate either a hyperthread or whole core to running domain 0, and
> hence pin other domains so that they can't use CPU 0."
> http://tx.downloads.xensource.com/downloads/docs/user/#SECTION
> 03400000000000000000
> 
> I am mostly running web servers, so it's IO intensive.
> 
> But I cannot find from the documentation how to actually 
> accomplish this?

If you use a line like this in the config file: 
"CPUS=[^0]" or "CPUS="[^0,1]" would give one core/hyperthread or two
cores/hyperthreads that only run Dom0. 

You may also want to configure /etc/xen/xend-cofnig.sxp to set
"(dom0-cpus 2)" so that it uses the first two CPU's in the system (or
similar). 

--
Mats


> 
> >From RHEL5-beta documentation I found xm commands how to accomplish
> this in running domains, but this should be set in the config file so
> we can do the pinning everytime the guest boots, right?
> 
> Regards,
> Peter
> 
> _______________________________________________
> Xen-users mailing list
> Xen-users@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-users
> 
> 
> 



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.