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

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


  • To: PattiMichelle <miche1@xxxxxxxxxxxxx>
  • From: tmac <tmacmd@xxxxxxxxx>
  • Date: Thu, 29 Jan 2009 11:38:33 -0500
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 29 Jan 2009 08:39:48 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=aL+KNV9aPfjRQcvnjJhrtNjCCtY50obd0lRPZ5J7QlDVp5oVZK8vrTDj2G5kPZVgc6 9aKIzwnxpeJ3VzqglXk1fADYDbrxM6y/0yqDKGMppF3FpWfkNluc/8277RL/mep3gRNQ cXPn8yn+YArXUj83mIca0rZ2ZPBEbUmLSRfWI=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Have you tried looking in the BIOS?

I have noticed that many boards have the "multi-core feature" disabled
by default.

Probably worth a reboot/check?

--tmac

RedHat Certified Engineer #804006984323821 (RHEL4)
RedHat Certified Engineer #805007643429572 (RHEL5)

Principal Consultant




On Thu, Jan 29, 2009 at 10:34 AM, PattiMichelle <miche1@xxxxxxxxxxxxx> wrote:
> OK, I bought the paperback book "Running Xen" and the only reference to this
> issue I could find was hotplugging CPUs, which won't work for me since
> Win2K3Server supports 8 sockets and I'm seeing now 8 CPUs (obviously
> 8 single-CPU processors).  I need to set more CPUs per socket (I have
> 8 quad-cores).  I also searched for the example file:
>
> /etc/xen/ xmexample.hvm-stubdom
>
> but it was not in my root directory tree.  The example *almost*
> looks like a binary format but seems obscure.  How would one set,
> say 4 CPUs per socket for all CPUs?
>
> Thank You Very Much,
> Patti  :^)
>
> =================================================================
> =================================================================
>
> To: "Andrew Lyon" <andrew.lyon@xxxxxxxxx>,<Dustin.Henning@xxxxxxxxxxx>
> Subject: RE: [Xen-users] Re: Windows and Multiple CPUS?
> From: "Robert Dunkley" <Robert@xxxxxxxxx>
> Date: Mon, 29 Sep 2008 15:02:13 +0100
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Delivery-date: Mon, 29 Sep 2008 07:04:48 -0700
> Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
> List-help: <mailto:xen-users-request@xxxxxxxxxxxxxxxxxxx?subject=help>
> List-id: Xen user discussion <xen-users.lists.xensource.com>
> List-post: <mailto:xen-users@xxxxxxxxxxxxxxxxxxx>
> List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>,
> <mailto:xen-users-request@xxxxxxxxxxxxxxxxxxx?subject=subscribe>
> List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>,
> <mailto:xen-users-request@xxxxxxxxxxxxxxxxxxx?subject=unsubscribe>
> References:
> <f4527be0809190639p55c70370yb809739422db36ed@xxxxxxxxxxxxxx><f4527be0809190646p1cfd103dj60e15abdeb4c57df@xxxxxxxxxxxxxx><f4527be0809280644w29ad82b0wa9496b27cb382d87@xxxxxxxxxxxxxx><5872164101243113643@unknownmsgid>
> <f4527be0809290650jbbed5e7ie74fc00d24ecaf09@xxxxxxxxxxxxxx>
> Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> Thread-index: AckiOj7K4pP/4wY5TjC446yZxU9N4wAAUFqA
> Thread-topic: [Xen-users] Re: Windows and Multiple CPUS?
>
> Hi Andrew,
>
> Very interesting.
>
> The trouble is that I don't understand the examples. Can anyone advise
> on how to make 2,3 and 4 AMD cpu assigned VMs appear as a single
> multicore CPU? I'm interested in how doing this may affect software
> optimizations and NUMA type detection within HVMs.
>
> Thanks,
>
> Rob
>
> -----Original Message-----
> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Andrew Lyon
> Sent: 29 September 2008 14:51
> To: Dustin.Henning@xxxxxxxxxxx
> Cc: xen-users@xxxxxxxxxxxxxxxxxxx
> Subject: Re: [Xen-users] Re: Windows and Multiple CPUS?
>
> You need Xen 3.3, examples are shown in /etc/xen/ xmexample.hvm-stubdom:
>
> #   Expose to the guest multi-core cpu instead of multiple processors
> # Example for intel, expose a 8-core processor :
> #cpuid=['1:edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx,
> #          ebx=xxxxxxxx00010000xxxxxxxxxxxxxxxx',
> #     '4,0:eax=001111xxxxxxxxxxxxxxxxxxxxxxxxxx']
> #  - CPUID.1[EDX][HT] : Enable HT
> #  - CPUID.1[EBX] : Number of vcpus * 2
> #  - CPUID.4,0[EAX] : Number of vcpus * 2 - 1
> #vcpus=8
>
>
>
> I used a single line to set the cpuid:
>
> cpuid=['1:edx=xxx1xxxxxxxxxxxxxxxxxxxxxxxxxxxx,ebx=xxxxxxxx00010000xxxxx
> xxxxxxxxxxx','4,0:eax=001111xxxxxxxxxxxxxxxxxxxxxxxxxx']
> vcpus=8
>
> Andy
>
> On Mon, Sep 29, 2008 at 12:49 PM, Dustin Henning
> <Dustin.Henning@xxxxxxxxxxx> wrote:
>>        Awesome, mind telling us how you figured this out?  Is it
> documented
>> somewhere?  I have seen several people want to do this, and someone
> always
>> tells them it is not possible.
>>        Dustin
>>
>> -----Original Message-----
>> From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
>> [mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Andrew
> Lyon
>> Sent: Sunday, September 28, 2008 09:44
>> To: xen-users@xxxxxxxxxxxxxxxxxxx
>> Subject: [Xen-users] Re: Windows and Multiple CPUS?
>>
>> 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=xxxxxxxx00010000xxxxxx
> xxxx
>> xxxxxx','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
>>
>>
>>
>
> _______________________________________________
> 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®.