虚拟化容器,大数据,DBA,中间件,监控。

How to Set Cores-Per-Socket Parameter for a Virtual Machine

02 12月
作者:admin|分类:容器虚拟化

How to Set Cores-Per-Socket Parameter for a Virtual Machine

  • CTX126524
  • Created onMar 26, 2014
  • Updated onNov 10, 2014
Article Topic Configuration

Objective

This article describes how to set the cores-per-socket parameter for a Windows Virtual Machine (VM). This procedure does not apply for Linux VMs.

When you assign virtual CPUs to a VM, by default one virtual CPU is equal to one socket. Some VMs have higher core limitations. By setting the cores-per-socket parameter, it is possible to present a VM with a certain number of cores.
Notes:

  • This feature is only available in the Advanced, Enterprise, and Platinum editions and is not available in the free version of XenServer. For example, if you have a dual socket quad core server and a XenServer Advanced, Enterprise, or Platinum Edition license, you can present two processors to a VM with each processor having four cores.
  • This feature is available in some unlicensed versions of XenServer 6.2.

Instructions

Complete the following procedure to set the cores-per-socket parameter for Windows VMs:

  1. Run the following command to obtain the Universally Unique Identifier (UUID) of the VM for which the parameter needs to be set:
    xe vm-list name-label=<Name of the VM>

  2. Set the cores-per-socket parameter:
    xe vm-param-set platform:cores-per-socket=’X’ uuid=<VM UUID from Step1>
    Here, X equals 2 for dual core and 4 for quad core.
    For example, to have a CPU with four cores:
    xe vm-param-set platform:cores-per-socket=4 uuid=<VM UUID>

  3. Set the virtual CPUs startup parameter equal to the number of virtual CPUs (number of cores) to be assigned to the VM and set the VCPUs-max parameter to the total number of cores:
    xe vm-param-set VCPUs-at-startup=<Number of VCPUs> uuid=<VM-UUID>
    xe vm-param-set VCPUs-max=<Maximum number of cores> uuid=<VM-UUID>

    For dual quad core CPUs, VCPUs-max=8
    The number of virtual CPUs at startup is the number of cores to assign to the VM.

    If your XenServer has dual quad core CPUs and you have set the cores-per-socket=4 and VCPUs-at-startup=8, then you can see eight CPUs in the Performance tab of Task Manager and two processors in the Computer Properties of the VM. Here, the VM is using all eight cores of the two processors.

    Similarly, if VCPUs-at-startup=4, then you can see four CPUs in the Performance tab of Task Manager, but only one processor in the Computer Properties. Here, the VM is using only four cores and only one processor out of two. However, if the number of VCPUs-at-startup is greater than four, then it uses the second processor and shows two processors in the Computer Properties. You can conclude that the number of processors the VM uses depends on the number of cores assigned to the VM.

浏览2377 评论0
返回
目录
返回
首页
XenServer6 虚拟机多vCPU配置方法 Tomcat 绑定域名以及Apache端口转发代理