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

[Xen-users] Re: Windows and Multiple CPUS?


  • To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
  • From: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>
  • Date: Sun, 28 Sep 2008 14:44:00 +0100
  • Delivery-date: Sun, 28 Sep 2008 06:44:40 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=ewot7lrKvwomlBcO+pP+M0R7/Cc4iSXfp2jK/RgDD19x3BCqjut8lD+1mx5zhQSKYp 0jnVSHiJjEGZ2vN+onC+0kPP5pt0GvSJ86A05TokgBwdwig+TJG2lDN8HBm89+c8fE4n gxcTOrXWKaEazIYaqW2aNLzO6YnTREbySa55g=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

On Fri, Sep 19, 2008 at 2:46 PM, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
> On Fri, Sep 19, 2008 at 2:39 PM, Andrew Lyon <andrew.lyon@xxxxxxxxx> wrote:
>> Hi,
>>
>> Am I correct in thinking that when Xen is running on a multi-core /
>> smp system and several cpus are assigned to a VM they are "presented"
>> as multiple single core cpus rather than 1 or more multi-core cpus?
>>
>> Microsoft CPU limits are for physical sockets, not cores.
>>
>> Windows XP and Vista are limited to two physical cpus, running under
>> Xen the maximum cpus I have seen in task manager and system properties
>> is 2, although device manager shows all of the assigned cpus (up to
>> 8).
>>
>> Windows 2003 and 2008 standard edition are limited to 4 cpus, which is
>> the limit I find under Xen, again device manager shows all assigned
>> cpus (up to 8).
>>
>> Is there any way to make windows see the cpus as multi-core so that
>> all 8 cores can be used ?
>>
>> Andy
>>
>
> I've also noticed that if I run "xm list" repeatedly as the VM is
> starting up I can actually see the cpus being initialized, the value
> matches the limit i find in windows:
>
> A Windows 2003 R2 Standard Edition 32 Bit VM:
>
> #grep vcpu Win2003x86.cfg
> vcpus=8
>
> xm list (several times during boot process)
>
> Win2003x86                                  24  2048     1
> Win2003x86                                  24  2048     2
> Win2003x86                                  24  2048     3
> Win2003x86                                  24  2048     4
>
> But if i booted this version of windows on the raw hardware all 8 cpus
> would be utilized.
>
> Andy
>

I found the solution to this problem, in my hvm windows config file I added:

cpuid='1:edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx,ebx=xxxxxxxx00010000xxxxxxxxxxxxxxxx','4,0:eax=001111xxxxxxxxxxxxxxxxxxxxxxxxxx']
vcpus=8

Which makes the 8 CPUs appear to the guest os as a single 8 core
rather than 8 separate cpus, as windows is limited to 2 sockets it now
sees all 8 cores in task manager.

Andy

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