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

Re: [Xen-users] Looking for clarity about physical cores/cpus and VCPUs


  • To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Todd Deshane" <deshantm@xxxxxxxxx>
  • Date: Wed, 23 Jan 2008 21:48:05 -0500
  • Delivery-date: Wed, 23 Jan 2008 18:49:03 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=uYl3wlrQ+66B7IjocaXC0tnrOT09nO6p0bYKVJrvYpB71s6qAcTPKGWqU+e+63I410Vk71OdjXOdUcKYWmGcp0z85+9zteqmFFy80PFslzCgrZ2sp6mwETxzlvEaObNcp+JCGjfLSp7mPqfROJ8bBBXeQWiC5D+hVEVdhFIM+C8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi,

Some answers inline.


On Jan 23, 2008 3:49 PM, Kayvan Sylvan <kayvan@xxxxxxxxx> wrote:

Hi everyone,

 

I'm looking for a clear explanation of how the CPU scheduling works and the correspondence between physical CPUs and VCPUS.

 

The Xen manuals state that there is "up to 32 virtual CPUs per guest virtual machine".

 

So, If I have a server with 64 physical CPUs, and I boot into Xen, with dom0_max_vcpu set to 1, and I have 2 guest domains, like this:

 

Dom0 (1 vcpu)

Guest1 (15 vcpu)

Guest2 (16 vcpu)

 

What is the actual correspondence between the virtual CPUs and physical CPUs?

Xen will schedule based on its scheduling policies. So there would be not direct correspondence. You can override this behavior with xm vcpu-pin and other xm vcpu* commands. You can even change scheduling policies, priorities etc.
 

 

If there is up to 32 vcpus per guest, can I exceed the number of physical CPUs? For example:

 

I am pretty sure you can do this, but I don't think it makes much sense to do this, since it would simply increase scheduling overhead.
 

Dom0 (4 vcpu)

Guest1 (32 vcpu)

Guest2 (32 vcpu)

Guest3 (32 vcpu)

 

 If I do that, how does Xen operate?

 

I believe Xen can do the scheduling of more vcpus than physical CPUs, but I can't think of a good motivation to do so.

Best Regards,
Todd

Thank you very much for your answers.

 

---Kayvan




 

_______________________________________________
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®.