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] FW: CPU enumeration

To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] FW: CPU enumeration
From: John Buchanan <John.Buchanan@xxxxxxxxxxxxxxxxxx>
Date: Thu, 4 Nov 2010 10:06:41 -0500
Accept-language: en-US
Acceptlanguage: en-US
Delivery-date: Wed, 10 Nov 2010 10:40:50 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C8F71629.C0BA%john.buchanan@xxxxxxxxxxxxxxxxxx>
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/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Act7hjSwLkOVaSb3PkK+IJBkYza0VAAq64XE
Thread-topic: CPU enumeration
User-agent: Microsoft-Entourage/13.7.0.100913
I seem to have found the solution in the “xe vm-param-set platform:cores-per-socket” command, nod to user “sholford” on experts-exchange.

sholford <http://www.experts-exchange.com/M_4886216.html> :
 
 The problem is that XenServer virtualises each core as a separate physical processor in its own socket. Windows Server 2008 and 2003 are limited to 4 sockets, so you can only see 4 of your 8 cores in the task manager.

If you look in the Device Manger you'll see all 8 cores because Windows sees them all, but won't let you use them.

If you look in the XenServer Host console in the Hardware section, it will report 8 physical CPUs too.

The following solution has been claimed to work and I suggest you try it, but I haven't personally managed to get it to work.

In XenCenter set the VCPUs for your VM to 2.

Then enter the attached code snipped into the XenServer Host console. To find the UUID for your VM, type xe vm-list (select it, right click and copy then paste when you need to enter the UUID as it's quite long).

Now boot the VM and the task manager should show all 8 cores.

  
xe vm-param-set platform:cores-per-socket=4 uuid=xxxxxx
 
xe vm-param-set VCPUs-at-startup=8 uuid=xxxxxx
 
xe vm-param-set VCPUs-max=8 uuid=xxxxxxx


-John


------ Forwarded Message
From: John Buchanan <john.buchanan@xxxxxxxxxxxxxxxxxx>
Date: Wed, 3 Nov 2010 13:37:45 -0500
To: "xen-users@xxxxxxxxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: CPU enumeration

Hello,

Is it possible to alter how XCP enumerates multi-core cpu’s such that a Vcpu represents a “socket”, rather than a “core”?  A server with dual quad core processors, no HT, presents each of the 8 cores as a Vcpu to the guest.  Windows Server 2008 R2 see’s each Vcpu as a unique “socket” and we are therefore coming up against licensing issues with Windows and more importantly SQL Server 2008 Standard Ed which is licensed for a maximum of 4 cpu’s (meaning 4 cores of a quad-core processor as a VM).  The issue is worsened on a system with HT because then the quad core processor is presented to the VM’s as having 8 Vcpu’s, and SQL Server 2008 will only use 4 of them, or half the actual cores in a given cpu.

When Windows Server 2008 R2 Standard edition is installed “bare metal” on the same dual-quad server it identifies the system as a dual processor with 8 total cores, and SQL Server then uses all 8 cores.

I understand that it is possible make some alterations using “xe vm-param-set uuid=<vm uuid> VCPUs-params:”.  But I’m not finding a way to present this two socket server as such to the guest, rather than an 8-socket system.

Running XCP 0.5.0 on a Dell PE2950 with dual E5410 Xeon processors.

Thanks!

John Buchanan
jbuchanan@xxxxxxxxxxxxxxxxxx

------ End of Forwarded Message
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>