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-users

[Xen-users] default CPU for 2nd domain...

To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] default CPU for 2nd domain...
From: Tom Brown <tbrown@xxxxxxxxxxxxx>
Date: Wed, 24 Aug 2005 22:21:55 -0700 (PDT)
Delivery-date: Thu, 25 Aug 2005 05:23:01 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
The default CPU for the first domU is wrong for SMP machines. Dead wrong
if there are only the two domains.  dom0 and the first domU end up on
hyperthreads of the first CPU. At least under 2.0.5 .... and I frankly
didn't realize that XEN doesn't seem to move domains between "CPUs". Once
a domain has been assigned a "CPU" it is stuck there until/unless someone
moves it with "xm pincpu"

You can have two busy dom's sharing one CPU and the other CPU effectively
idle. I hope and believe this will be fixed under 3.0 ?

I guess the lesson is be aware that despite the fact that not much is
mentioned about it in the docs, the "cpu=" setting is pretty darn
important if you have more than one CPU core, and run some CPU intensive
domains.

The funny thing is how I found this. I was measuring power consumption for
a server before sending it off to the co-lo (so we can have an idea of how
many boxes can go on a 15 amp circuit), and I couldn't figure out why the
first CPU drew an extra 50 watts going from idle to swamped, but the 2nd
CPU was only 10. Both doms were on the same core, XEN itself might have
been using the idle CPU...

----------------------------------------------------------------------
tbrown@xxxxxxxxxxxxx   | Don't go around saying the world owes you a living;
http://BareMetal.com/  | the world owes you nothing; it was here first.
web hosting since '95  | - Mark Twain



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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] default CPU for 2nd domain..., Tom Brown <=