Newbie: Allocation of processors to a virtual machine

In the allocation of the processors of a computer virtual is there a difference between these two?

For example I want to allocate 4 processors

1 socket with 4 cores

or

4 Sockets with 1 core

I tend to allocate 1 socket with 4 cores is this OK?

I do not think that in general there is a difference, but you will encounter some operating systems have a limit, Win7 will only allow a maximum of 2 Sockets to give Win7 more horse power, you need to add the carrots. Some applications also deal with the sockets and carrots differently so for optimal performance, you can sometimes test different combinations to find what is best.

Tags: VMware

Similar Questions

  • Affinity processor for a virtual machine

    I have a lot of CPU 8 on which I have installed ESX 3.5 U3. I also created a virtual machine Windows 2003 Server SP2 with 2 CPU is assigned to the.

    I'm trying to set the processor affinity for this virtual machine to use 2 of my physical processors. I see now on the tab Advanced CPU, I am able to select all available 8 physics of the processor. So now I'm a bit confused regarding if VMware allows scaling of my machine virtual to use all 8 CPU when my virtual machine is only 2 CPU?

    Now if the above is true, and I am to be allowed to set the affinity of the virtual machine to the all 8 CPU, then why is this maximum limit of the processor for a virtual machine is only 4? A stupid question probably but I'm really confused?  :|

    Hi confused,

    Yes, the user interface is a bit confusing. As RParker said, basically what you are doing when you assign the processor affinity are to identify the nuclei on which the vCPU is eligible to run on. At no time will be the VM scheduled to be run on carrots than what there vCPUs, so he will never have access to a capacity more than expected.

    The processor affinity is one of those features that's been around since 'the beginning' and its utility is really a bit blurred. I've heard of cases where users were running Citrix workloads configured with 2 vCPU and assigned the processor affinity for each virtual computer with the result of improving the performance. I wonder this because I never saw myself, and have a decent knowledge of how works the vmkernel Scheduler, it make much sense.

    I would encourage you (and anyone else reading this) essentially forget that the processor affinity is an option. Use it can cause significant performance degradation (if, for example, you pin a VM through two nodes NUMA, rather than keep vCPUs all in the same node) and break features (VMotion, DRS and who knows what else in the future).

    Ken Cline

    VMware vExpert 2009

    VMware communities user moderator

    Blogs about: http://KensVirtualReality.wordpress.com/

  • Cannot add additional processors to a virtual machine.

    I have a DELL PowerEdge R720 host running ESXi 5.5 1474528 and there are 3 VM.

    I am using vCenter Server 5.5.0 Build 1476327 Essentials accessing via the web client of vSpere

    40 logical processors

    20 CPU X2.20 GHz

    2 taken

    10 carrots per socket

    ALL of my virtual machines are windows X 64, version 10 hardware servers

    4 CPU file server

    RDS 4 CPU

    Veeam DAS proxy server 1 CPU

    I can not add any extra CPU on the third server. I can adjust the CPU count on the other two VM, but not the third.

    License is

    VMware vSphere Essentials 5 more (unlimited cores per processor)

    Hi, have you tried downing the virtual machine and see if you can change the CPU then?

  • Poor performance of the processor of the virtual machine

    Hello

    We have an esxi Server 5. Theres only one virtual machine running. It is A SBS 2008. The server is slow, it seems to depend on the CPU (XEON 5502 2 cores with hyperthreading) use. The windows Task Manager shows the use of 60 to 75% most of the time and often 100%.

    But the performance vmware (vsphere) table shows only 20% up to 60%, although the vitrual machine CPU resource reservation is high and unlimited. Is it possible, to give the virutal machine more CPU power?

    Thank you very much for your help!

    MIchael

    ScreenShot 26 .jpg

    ScreenShot 23 Eigenschaften virtueller Maschinen.jpg

    ScreenShot 22 VMware Communities_ Neuen Thread beginnen - Mozilla Firefox.jpg

    It seems that your processor has no hyperthreading.  Specifications Intel http://ark.intel.com/products/37092/Intel-Xeon-Processor-E5502-4M-Cache-1_86-GHz-4_80-GTs-Intel-QPI

    With all four cores assigned to a single virtual machine probably causes CPU performance issues.  Have you checked the CPU Read values?  If you see more 1000msec by vCPU, you can expect performance degradation.

    Chaning the VM from four to one or two vCPUs shouldn't be a problem, unless you have software running which consumes a lot of time processor.  I ran SBS2011 on a single vCPU with no problems.

  • How many virtual processors on a virtual machine?

    Hi guys,.

    I have ESX35 install on a ML570 G3 with have 4 CPU, active hyperthreading.  In the tab set up, the number of logical processors is 8, by the attached screenshot.  I've lowered to VI3 VI4 and have 4 individual licenses of the CPU.  The sales representative told that the license goes with physical CPU, up to 4 cores per processor.  However when I created a VM, I can only put in place for a maximum of 4 virtual processors.  Is this correct?  I thought that I can assign up to 8 virtual CPUs in each virtual machine.

    THX.

    Hello htt. Unfortunately, to use 8way vSMP you must the Enterprise more than vSphere license. Please see the following page for more information.

    http://www.VMware.com/products/vSphere/buy/editions_comparison.html

    See you soon

    Kevin

  • The processor of the virtual machine statistics

    How to change the script below to reach the underside of the elements, given

    1. when it collects the past 30 days stats it must ignore all measures on Saturday and Sunday.

    2. currently, he checks the monthCPUAvg of each virtual machine if it is greater than 80% and add it to $report, I need to check in the last 30 days (except sat and Sun) if the VM continued 80% usage for all 6 hours, if yes, then add to $report.

    $import = Get-VM
    $report = @()
    foreach ($vm in $import) {
        $Interval = "30"
        $IntervalFinish = Get-Date
        $IntervalStart = $IntervalFinish.addDays(-1 * $Interval)
        $CPUAvg = $vm | Get-Stat -Stat Cpu.Usage.Average -Start $IntervalStart -Finish $IntervalFinish
        $vms = "" | Select-Object VMName, CPU, MonthCPUAvg
        $vms.VMName = $vm.Name
        $vms.CPU = $vm.numcpu
        $vms.MonthCPUAvg = [String]([Math]::Round((($CPUAvg | Measure-Object -Property Value -Average).Average),1))
        $report += ($vms | Where-Object{$_.MonthCPUAvg -gt 80})
    }
    

    Try this (I use 30% as the threshold here):

    $import = Get-VM | where{$_.powerstate -eq "PoweredOn"}  $report = @()   foreach ($vm in $import) {     $Interval = "7"   $IntervalFinish = Get-Date     $IntervalStart = $IntervalFinish.addDays(-1 * $Interval)      $CPUAvg = $vm | Get-Stat -Stat Cpu.Usage.Average -Start $IntervalStart -Finish $IntervalFinish -Intervalmins 120 | Where { (Get-Date $_.Timestamp -Uformat '%A') -inotmatch 'Saturday|Sunday' }    For($i=0; $i -le $CPUAvg.Length; $i++) {    if($CPUAvg[$i].Value -gt 30 -and $CPUAvg[($i - 1)].Value -gt 30 -and $CPUAvg[($i - 2)].Value -gt 30) {      $report += "" | Select @{N='VM Name'; E={$vm.Name}},       @{N='Start Interval'; E={$CPUAvg[$i].Timestamp}},       @{N='End Interval'; E={$CPUAvg[($i - 2)].Timestamp}},      @{N='Avg CPU Interval'; E={[math]::Round((($CPUAvg[($i - 2)].Value + $CPUAvg[($i - 2)].Value + $CPUAvg[($i - 2)].Value) / 3), 2) }}    }  }}$report
    

    Out of the sample of my race:

    Name of the virtual machine Starting interval Interval end AVG CPU interval
    ------- -------------- ------------ ----------------
    VM1 27.04.2015 08:00 27.04.2015 12:00 58,69
    VM1 27.04.2015 06:00 27.04.2015 10:00 54,86
    VM1 24.04.2015 10:00 24.04.2015 14:00 36.81
    VM1 24.04.2015 08:00 24.04.2015 12:00 50,61
    VM2 23.04.2015 08:00 23.04.2015 12:00 40,76
    VM2 22.04.2015 10:00 22.04.2015 14:00 37,97
    VM2 22.04.2015 08:00 22.04.2015 12:00 40,87
    VM2 21.04.2015 10:00 21.04.2015 14:00 37.6

    Note: It may look like a 4 hour period, but the Timestamp of the third measured value is just indicating the start time of the measurement interval, which lasts for 120 minutes. You can add to the value of output if you use instead:

    @{N = 'Interval end'; E = {($CPUAvg [($i-2)].)} Timestamp). {{AddMinutes (120)}}.

  • Newbie question: list the Configuration of virtual machines and data warehouses

    Hello

    I'm new on using powercli how to list all virtual machines in a certain data center, their memory, Procs and what data warehouses they are on.

    I know you can use get - vm | Select-object name, NumCPU MemoryMB but if I add DatastoreIdList as well, it doesn't seem to work.  What Miss me

    Thank you very much

    Laurence

    That's right, you could do

    Get-VM MyVM | Select Name,@{N="DS";E={[string]::join(',',($_.datastoreidlist|%{(Get-View -Id $_).Name}))}},Description |
        Export-Csv "C:\test.csv" -NoTypeInformation -UseCulture
    

    Just look at whether the separator for CSV is be a comma in your culture, you probably need to adjust the separator in the Join method!

  • Correct allocation of the vCPUs for virtual machines

    Hi all

    We have a physical server with 4 x Quad Core XEON E7310 1.6 GHz CPU

    VMware ESX 3.5

    We have 3 VMs that are assigned to the server

    VM1 (Production Server) as a result of config

    4 vCPUs, 16 GB of RAM and works according to:

    OS - Windows Svr 2008 R2 (64-bit)

    MS SQL Server 2008 (64-bit) (a database with the data of a line and two newspapers file)

    IIS7 with only a single application of ASP .NET (the App-based eXpress Foundation (XAF) from DevExpress) running in Classic .NET AppPool (a work process)

    Connection string Web Application points to the database on the same server (local)

    Web app has a userbase of around 250 users

    VM2 (Dev server) is the same as VM1 except it has only 8 GB of RAM

    Now 4 x 1.6GHz Quad Core CPU = 4 x 4 x 1.6 GHz = 25.6 GHz

    VM1 received 16GHz (reserved) and can use available CPU if necessary.

    Our problem is that when we don't have 10 users on VM1 it grinds to 80-100% CPU usage.

    Usually just open the app on VM1 is slower than if I use a laptop as the server.

    What can we do to improve the speed of VM1?

    Thank you!

    2 things.  DISC is your problem, not CPU.  It can run at 100% CPU, but it's probably because that the e/s DISK is queued up, and thus the CPU is waiting for data.

    try to reduce the CPU at only 2 vCPU, not 4.  More CPU for physical machines working, but the virtual computer without CPU more due to the work of how virtual machines (the same problem applies to any product of virtualization).

  • newbie question - vmdk transfer on another virtual machine on the same host

    Hello

    can I transfer a vmdk 1 vm to another and mount it?

    I have a vm of windows server with a 2nd virtual hard drive that has data on it. rather than to make a copy of file in a file to another virtual machine with a 2nd hard drive and then delete the second original disk, could I just disassemble and remove the second hard drive to the original virtual machine and then attach it as an extra hard drive to the second vm?

    pointers would be appreciated.

    Louis

    y at - it no problem tell move a ntfs disk to a file for example linux server

    Mode not read-only (but you lose the NTFS and share permissions).

    André

  • Allocation of disk space to virtual machines

    I played around with assigning physical disk space to a virtual machine, in the "Add Hardware Wizard", I selected hard drive & gt; Create a new virtual disk & gt; He gave a size of 100 GB stored with the virtual machine and not independent.

    When I started the VM space, which is all that I wanted to check if I stop the virtual machine. Rather than remove the new hard drive 2 settings of the virtual machine, I have restored a previous snapshot without the new HD. Now when I check the free space on datastore1, it seems that the 100 GB does not have to be added to the free space.

    I did something wrong?

    UPDATE:

    I just tried the process again but this time assigned 8 GB.  Then I checked free space on datastore1, and now I have the 100 GB back, less the 8 GB I just posted.  Any ideas?

    If you take out it just of the virtual machine, it does not actually remove the virtual disk that you created. As you say, there are 2 options when you remove the drive, we need to remove the virtual machine, and we need to remove the disc. If you remove the disk from the virtual machine, it will always keep the file even if it is not associated with a virtual machine. There is no question to delete this file. Just make sure that you delete the correct VMDK. It's easy, if it's the only drive of 100 GB or 8 GB, you have created.

  • Allocation of resources to the virtual machine over time

    I took trying to graph on the planning capacity in time for our clusters.

    Allowance only for the time being, use maybe later. Try trend how we allocate vms (spikes).

    I care about the elements are:

    Physics: Amount of processors in cluster, physical amount of RAM in the cluster - Total (at some point? don't think it's possible, but it would be nice)

    This part is less of a problem, I have something that works for this.

    Virtual: amount of virtual processors, RAM allocated - Total for each month

    The code has been changed on this topic (thanks, LucD!) and even more of various other segemnts.

    This makes me a nice referential list created of the time to work with:

    $SQLSERVER="MYSQLSERVER"
    $Database="VCDB"
     
    $SqlConnection = New-Object System.Data.SqlClient.SqlConnection
    $SqlConnection.ConnectionString = "Server=$SQLSERVER;Database=$DATABASE;Integrated Security=True"
     
    $SqlCmd = New-Object System.Data.SqlClient.SqlCommand
     
    $SqlCmd.CommandText = "select distinct lower(vm_name) AS vm_name, max(create_time) as create_time " +
                             "from VPX_EVENT " +
                             "where     (event_type like '%.VmCreatedEvent' or " +
                             "          event_type like '%.VMClonedEvent' or " +
                             "          event_type like '%.VMRegisteredEvent') " +
                             "group by vm_name"
    $SqlCmd.Connection = $SqlConnection
     
    $SqlAdapter = New-Object System.Data.SqlClient.SqlDataAdapter
    $SqlAdapter.SelectCommand = $SqlCmd
     
    $DataSet = New-Object System.Data.DataSet
    $SqlAdapter.Fill($DataSet)
    $SqlConnection.Close()
    $DataSet.Tables[0] | Export-Csv c:\vm_create-list.csv -NoTypeInformation
    

    Now that there is a file with the dates, I can use to reach the given date to an allocation of resources aspect:

    $creationtimes = Import-Csv 'c:\vm_create-list.csv'
    
    $realvms = Get-View -ViewType "VirtualMachine"
    
    $myCol = @()
    
    foreach ($item in $realvms) {
         
         $Row = "" | Select-Object CreationTime, NumCPU, MemoryMB
         
         $Row.NumCpu = $item.Config.Hardware.NumCPU
         $Row.MemoryMB = $item.Config.Hardware.MemoryMB
         
         $createtime = $creationtimes | ? {$_.vm_name -match $item.Name} | Select-Object create_time
         if ( $createtime.create_time -eq $null ) {
              # for VMs that exists but db has pruned data, lump into single date
              $Row.CreationTime = [datetime]'12/01/2007 00:00:00 AM'
         } else {
              $Row.CreationTime = [datetime]$createtime.create_time
         }
         
         $myCol += $Row
         }
    
    $myCol = $myCol | Sort CreationTime
    

    This leaves me with a picture of the beautiful collection of dates, number of cpu and the size of the ram.

    I am stuck now trying this summary by calendar month - output something like:

    month,numcpu,memorymb,numOfVMs
    2009-10,2,8192,1
    2009-11,3,12228,2
    2009-12,1,4096,1
    

    In order ultimate spill in tables and graphics with ceilings determined at the time of the first

    I realize that there is probably a way to bind the SQL query method as well and pull it all together in a script. No idea how to transform the DataSet that is returned to a Collection of usable objects.

    Unless someone out there has a great way to draw growth VM distribution over time?

    The Group-Object cmdlet can take more than 1 property group

    Something like that

    $mReport = @()
    $groups = $myCol | Group-Object -Property {$_.Date.Year, $_.Date.Month}
    ...
    
  • Delete a partition in a virtual machine and expand the initial allocation of hard drive

    I have created a virtual machine running server 2012R2 with an allowance of 60 GB drive. I decided after doing hours of work on the virtual machine I had assigned too little disk space for the virtual machine. I decided that I just go in vSphere and change settings and add to the existing space. The problem is that it has created a new partition rather by increasing the size of the original, which doesn't help me. How can I remove this new partition and just expand the original that has been allocated when I created this virtual machine?

    Thank you

    Hi Paul,.

    Could you clarify what you mean by;

    The problem is that it has created a new partition rather by increasing the size of the original

    (A) do you mean you modified the virtual machine and added a second disc, rather than increase the size of the original? or;

    (B) you increase the size of the original disk and create a new partition in this free space?

    Be that as it may, the question should be simple to solve;

    (A) remove the second disk you don't need, increase the size of the original. Then from the OS Disk Manager, rescan the disks and extend C:\ in free space.

    (B) delete the partition that you don't need. From the OS Disk Manager, expand C:\ in free space.

    See you soon,.

    Jon

  • Virtual machines: 1, 2 or 4 processors

    Hello:

    I'm under ESX3i 3.5 U4 on a Dell PE2950 w/1 5335-Intel Quad Core proc.  ESX3i sees the single proc procs (4). (quad core) and so allows me to select 1, 2 or 4 processors during the creation of virtual machines.  I read through the Setup, admin, guest os and server cfg. guides, but don't see guidance on best practices to set the number of processors in the virtual machine.

    My VMs are Win. 2003 standard R2 SP2.  I get all the benefits of choosing 2 or 4 processors. instead of 1?

    A message indicates that the operating system may become unstable if the setting is changed.  That I should be weary of this warning with Svr 2003. and make sure that I put the number of processors. correctly from the beginning?

    Thank you!

    BobHHSU

    My VMs are Win. 2003 standard R2 SP2. I get all the benefits of choosing 2 or 4 processors. instead of 1?

    NOPE.  And that's why you need to test this, but I don't think you'll see the performance improvement.  You can also see a decline in function.

    A message indicates that the operating system may become unstable if the setting is changed. That I should be weary of this warning with Svr 2003. and make sure that I put the number of processors. correctly from the beginning?

    Well, that's not true, it is a warning for your applications, that realistic because, you need to reinstall an operating system any time edit you the material, because this warning message has been written with material changes in mind.  So if the operating system sees different specifications, which could cause problems, not to change a CPU of 1 to 2, for example.

    And Yes, you should start small, 1 vCPU, 1 GB of RAM and scale here.  It is easier to scale upwards and then downwards.  Someone also mentioned that Windows will plug and play 2-1, but which is not true either, you must manually change the HAL and stop, ranging from 1 to 2 is done automatically.

  • Better Allocation of processor

    Hello all,.

    I installed a server with 3 VMs, 1 DC and 2 servers of remote desktop (for thin clients).

    Hardware: Dell R515, 2 x 3.1ghz 8-core Opteron, 32 gb RDIMMs, 3 x 300 GB SAS as RAID5

    All the BONES are Server 2008 R2 x 64. I use vSphere Essentials and that you have installed ESXi 5.1 on the host.

    My question: I'm a little fuzzy on exactly how ESXi allocates CPU resources... what I want is for the servers RD get a large majority of the CPU and the domain controller to not get than what he has to the function (it is not the only domain on the network controller).

    I wanted only a Dr server but when I configured the virtual computer he wanted not me to give the majority of the processor to this virtual machine, saying: I can only do 8 channels. So my real question is, what I have to give each VM parameters reflecting tangible property, I want that he uses, or is an invalid approach and ESXi will however give a lot of CPU bandwidth is available?

    I read some of the management of ESXi resources guide, but I'm still not clear on the relationship between physical and virtual CPU, and what are the real limits of my Essentials of licence in this regard. This server will in a busy production environment, any guidance would be greatly appreciated :-)

    See you soon,.

    Andrew

    Maybe I can answer a few questions for you.  A vCPU is basically a core or a Core Hyperthreaded.  Assignment vCPUs thing is this: however much vCPUs you assign to a virtual computer to all be available before VM can run and vice versa when a virtual machine is running (i.e. it becomes its timeslice) the number of vCPUs assigned are tied up and can't be used by another virtual machine, even if the machine virtual assigned to him is inactive and/or not using all the.  In addition, ESXi is smart enough to assign vCPUs to physical cores when it's time for a virtual machine run such that it will not use the associated hyperthreading kernel unless he hit the due performance, although there are some settings you can use to tinker with this behavior.  In practice this means that if you have multiple virtual machines, each using a certain vCPUs you run the risk of performance issues because they cannot do everything their timeslices both due to a shortage of physical cores to map to vCPUs.  This problem is a little improved by the carrots hyperthreading in the case of a VM with several tied vCPUs physical cores, even if it does not all because in this scenario, an another VM that gets the Core Hyperthreaded and it is allowed to run, will run at full speed.   What this also means that if you have a certain number of virtual machines using several vCPUs your choice of material is better if you get a computer with cores but slower and not less faster, even though the total CPU power of these two computers is the same.

    There are also some tuning tricks you can use to help promote your rank of priority extra resource assignments, especially if this favored VM uses several vCPUs, and as long as you have a little bit of additional CPU capacity.   You can use the settings of CPU affinity to dedicate one or more cores to a virtual machine specific.  For example, I have a box of ESXi with 2 processors AMD 6 (without hyperthreading).  I have a load of work on it which uses 4 vCPUs, many who use 2 vCPUs, and many who use only one vCPU.  The vCPU 4 (the most important) workload is a machine virtual 2008 SBS which has a lot of process running in it because it's a domain server and the exchange server and must therefore at times 4 vCPUs to function well.  To give it an advantage I have not all other virtual machines, via the CPU affinity settings, use the last two physical cores.  So the 4 vCPU VM has two of the four vCPUs she needs to run available him at all times and is in competition with the rest of the virtual computers for two ten remaining carrots.  Anything like that of course only works if you are willing to devote part of the resources of the area at all times to your workload priority even if it means they sit idle if workload priority is inactive and the rest of the virtual machines need CPU.

  • Alert - the virtual machine CPU usage

    A virtual computer that is running Windows 2000 reports almost every day an alert on "use of the processor of the virtual machine.

    According to my knowledge, add a CPU to a Windows 2000 Server is not easy as with recent versions of Windows, is correct?

    The 5.0 ESXi host is not CPU ovrloaded, so I don't think that adding a CPU reservation can change anything...

    So, what is the best way to solve the problem with the minimum impact on the VM guwest?

    Concerning

    Marius

    Hello

    because they describe your problem, read the following article:

    http://KB.VMware.com/kb/1077

    and if you still want to add a vCPU, read this MS KB article:

    http://support.Microsoft.com/kb/234558

    Concerning

Maybe you are looking for