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/

Tags: VMware

Similar Questions

  • VIPerlToolkit: value ready for a virtual machine

    Hello

    I do really hard with queries for performance with the VIPerlToolkit. And the examples I've seen too much waste code (but it is difficult to separate important code).

    I don't want initialize tons of counters metrics, ids and so on who might be questioned ;-)... I just want to see the values of loans for the last 20 seconds!

    Has anyone written a simple script that comes out of the given value of ready for a VM (or VM on the host) and want to share it?

    Thanks in advance!

    Chris

    Please see the attached example, it returns the ready value of processor for a virtual machine.

  • Determine the maximum use of the processor for a virtual computer in the custom user interface

    I want to determine the maximum use of the processor for a virtual computer in the custom user interface.  How can I do this?

    If I use a supermetric, there is no kind of attribute under CPU called "maximum use.

    Certainly, you get points for a long question! Although to be fair, it's probably my fault to feed you so much information to digest at once.

    1. I would say you can do two ways visually. Use the operations > detail view for 'normal ranges' use the upper limit of the normal range as your typical max. You want an absolute peak, add the metric of a graph or observe that highlight high and low watermarks.

    2. There are a lot of ways to display data, but if you want to display a single metric over a period of time, we could use the following widgets [on top of my head]:

    Top - N analysis

    Weather map

    Analysis of distribution of data

    Among these, I think of your desire for a "peak". Who you want real value, which eliminates the weather map. Then, I think that the concept of a 'Summit' and what is the best thing, I think that the 95th percentile... then I came with the widget of data distribution. The decision is ultimately yours given your particular use case.

    3. you can have it apply to several virtual machines - it's just a widget capable of being an independent provider or receiving widget (metrics, DO NOT choose to select resources). Each resource/metric will add to the widget and you can remove them if you like after it is added. You can certainly all the time you visit... It is date and time standard options you have in all the other widgets chart. With the widget data distribution, you want as much time as possible to get an accurate histogram of the cycles of workload.

    4. This is similar to the question above. You can certainly add parameters of individual resource or a DM that summarizes or AVG groups of resources. And as above, the delay is configurable, along with the other graph widgets.

    5. it's part of Q4 - you can sumN or avgN up to any number of resources with a SM, then discovers that SM in the widget of data distribution. When I said container, I mean an application, group resource pool... all that acts as a container parent within the vCOps.

    6. that's correct, SMs calc using data collected last points... aka single period of time. When you are referring to the longest period, I gave you a few examples of the attributes that are composed of several periods of time which are calculated and created by the adapter for VMware vCenter behvaior. In this case, you have the GVA 15 min CPU 1.5; These specific simple mobile GVA can be specific OR a copy using SMs. Next, you will have the chance is to find a way to distribute what you need through a widget [at that time].

    7. the distribution of data is not for export, it is for Visual functions. If you want the data in CSV, just use a typical chart of metrics and export to a csv and calc your own pics, avg, 95th, whatever.

    8. This is a bit of a mix of all your questions, put in place.

    You are right, if you added those 3 VMs, then calc was the 95th of the AVG. Like Q7, you would not export the data of the distribution of data because the raw data points are not - you do not pass the metric to a metric graphics standard and export via csv.

    Take advantage of...

  • Can join a Cluster of storage disk out of Maintenance DTS Mode to set up the profiles for a virtual machine storage policies?...

    Can join a Cluster of storage disk out of Maintenance DTS Mode to set up the profiles for a virtual machine storage policies?...


    IE can you define the rules of affinity DTS depending on how the rules of storage of profiles are configured for a virtual machine?

    In my mind it seems there is disconnect from the DTS and storage profiles.

    Thank you.

    = NOTE =.

    My lab at home, 2 organizes running ESXi 5.0

    Dv01 has

    Of startup vmfs 7200 RPM 160 G = dv01-BOOT

    Vmfs 1 TB 7200 RPM = VM02-VMFS

    VM02 has

    Of startup vmfs 7200 RPM 160 G = VM02-BOOT

    Vmfs 1 TB 7200 RPM = VM02-VMFS

    Vmfs 5900 RPM 2 TB = VM02-TV01

    I have (3) facility profiles of storage using 'User-defined storage Capablity' as shown below:

    (160 @ 7200 RPM SATA) boot > Boot

    Fast (160 7200 RPM SATA and 1 TB @ 7200 RPM SATA) > fast

    Slow (2 TB @ 5900 RPM SATA) > slow

    Then, I set up a storage Cluster with my local disks on dv01 (only to date)

    LocalVM disc dv01-BOOT and dv01-VMFS disk of the 'cluster of storage.

    I have a computer virtual called DC01 (HardDisk1) want to live on 'Boot' profile storage drive
    His "Non-compliant" poster according to the storage profile, it should run on drive 'boot' on dv01

    To get to this point, I put the StorageCluster in Mode of Maintenace 'DTS' and forced a sVmotion of all virtual machines off dv01-BOOT

    No disks are IO or claim of space.

    But once I take the 'DTS Maintenacne mode' STARTUP dv01 floppy is now get the DTS to return him to satisfy the storage profile (rule) I install... IE do the 'storage profile' VM complient (without doing a few externall API, the PS script or the 3rd party software calls)... ??

    Seems weird it is (or may be) such disconnection of a memory of the profiles and the StorageClusters and the DTS?

    Thank you...

    At this point, I think that storage DRS and storage profiles are two technologies to separate and work independently, but what you suggest is a great idea-

  • ESXi 5 - Longmode is disabled for this virtual machine.

    Hello

    I installed ESXi 5.0.0 469512 on a Dell Optiplex 755 with Intel Core 2 Duo E8400 processor @ 3 .00GHz with 4 GB of RAM. In the BIOS (version A21), I have the following options enabled:

    Performance-

    Virtualization: on

    VT for direct i/o: on

    Execution of trust: on

    Security-

    TPM security: on

    Activation of the TPM secure: assets

    Execute Disable: on

    I am unable to run any 64-bit OSs. For example, when I try to start vMA VM 5.0, I get the following Message from the Virtual Machine:

    "This virtual machine is configured for 64-bit operating systems. However, the 64-bit mode is not possible.

    Longmode is disabled for this virtual machine.
    For more information, see http://VMware.com/info?id=152 .
    Continue without 64 bit support? »

    I ran the "processor check for 64-bit compatibility ' and if confirmed I can run 64-bit guest OS.

    I tried to add vhv.allow = "TRUE" to/etc/vmware/config, but it made no difference.

    In the vmware.log file is that it makes meantion 'virtualization software is incompatible with the long mode on this platform. Disabling longmode. "I have attached the full logfile for details.

    Any help will be greatly appreciated.

    Thank you Paul.

    According to the log file

    Frequent: MSR 0x3a = 0x3--> currently '0011', should be 'x 1 x 1 "'.

    VT - x is not enabled (bit 0 + 2 required)

    There were other debates, where that allows "Trusted execution" cause problems. I "suggest that you configure the settings of the BIOS as follows:"

    Performance-

    Virtualization: on (assuming it's VT - x)

    VT for direct i/o: Off (unless you need it)

    Execution of trust: Off

    Security-

    The TPM secure security: Off

    Activation of the TPM secure: inactive

    Execute Disable: on

    After you change the settings, you will need to power cycle the system.

    André

  • WAIT % - % IDLE, what is the average for a virtual machine?

    I did some research on performance of VM problems and worked with the media to see that there is maybe a bottle neck IO that occur with a virtual VMware machine I have performance problems on. The technician found that the WAITING % - % IDLE on average for this virtual machine is around 200%. The tech said it was abnormally high. I forgot to ask her what was normal but wanted to put a post to see if some people out there know what they are on average. What is an average number of see? I have the system done nothing right now and I see 579% waiting and 372% IDLE. The technology has been able to confirm that no IO queue was occurring in the VMkernel or on the HBA controller.

    Some average % positions would be useful. Thank you.

    gdewulf18480 wrote:

    Supposibly the amount of time in a State of waiting for I/O is the WAIT - IDLE % difference. I was wondering if anyone had the numbers for this feeling. Is there anyone with some of them?

    Q: How will I know the VCPU world waiting for I/O events?

    A: WAIT - % IDLE % can give you an estimate on how much time processor is spent waiting for I/O events. It is an estimate only, because the world wait perhaps for other than the i/o resources. Note that we should do it only for the worlds of the WWW, not the other kind of worlds. Because the VMM worlds represent the best guest behavior. For the disk i/o, another alternative is to read the disk latency stats that we explain in the drive section.

    WAIT % by itself cannot be used, you must develop and examine the individual vCPU % EXPECTATION values and subtract their idle time.  You can't do it on the initial view of a single line by VM CPU in esxtop.  If technology that you mentioned did not explain it, he doesn't know what it takes.

    I have lots of virtual machines that are never less than 300% when I wait - % idle and I have no problems.

    It is an example, I caught NimSoft server:

    DHSNMS1 100 100 5 192.63 193,80 0.24 0.03 291,44 1.04

    %EST USED (s) 192 - in other words, almost two processors are used 100%

    The %Idle is 1.04% WAIT 291.44 - according to the calculation of waiting idle, I have a super serious problems of e/s past  But this isn't the case, and expanding, I can see that.

    5665 vmware-vmx 100 1 0.09 0.11 100.00 0.00 0.00 0.01

    5667 100 vmassistant.566 1 0.62 0.65 99,63 0.00 0.00 0.00

    5703 100 mks:DHSNMS1 1 0.01 0.01-100.00 0.00 0.00 0.00

    5704 vcpu 100 - 0:DHSNMS1 1 32,35 32.88 67,28 0.28 0.11 67,14

    5705 vcpu 100 - 1:DHSNMS1 1 31,58 32.05 68.11 0.00 67.85 0.12

    So the changed values unfortunately because of ESXTOP bike when you develop... which is annoying, but anyway.  In this you see % waiting is 67 and 68 with another respectively being 3 to 100% (which is normal) and the idle being %, 0, 0, 0, 67 and 67.8.  Doing the calculation on the processors shows a wait - slowed virtually 0 - or very little IO wait past with processors.  But if you add up all the expectations of % and % is idling, you have 434ish, and the 134ish and do the calculation is the difference of 300 - which is the 3 who are always 100%.

    So there is no way we can answer your question, we can only help you to understand how the values should be interpreted.

    Waiting for i/o States almost always go on the disc anyway, it is unlikely, therefore, the network or the user entered, looking at the stats of disc ESXTOP is a much better way to determine if there is a problem of e/s.

  • SRM 5.5 - vSphere replication - error: impossible to reverse the replication for the Virtual Machine. A snapshot operation cannot be performed

    Hi all, we have just run a test DR failover of a couple of virtual machines in our protected our failover site and all site swung perfectly, two virtual machines came online and all applications work well. However when we cam to r-eprotect machines virtual, we get some errors.

    One of the virtual machines seems to have lived the reprotect end process, it is still running, but has not moved to 89% for some time. The virtual machine has a couple of grand (a little less than 2 TB) VMDK. slow progress is just a consequence of the large VMDK?

    More worrisome is the virtual machine which don't reprotect at all. It generates an error whenever I click on the "Restore" button (error: impossible to reverse the replication for the Virtual Machine.) A snapshot operation can not be performed).


    Does anyone have any ideas as to the cause?

    Thanks in advance for any help.

    Andy

    Finally got to the bottom of this. The issue was that reprotect SRM work was trying to dispel any snapshots that were taken on the computer object virtual destination in VMWare, but could not clean snapshots.

    The reason why snapshots would not consolidate was because it was snapshots of temporary VEEAM who in fact any snapshot file listed in the VSAN data store. So when we looked through the browser data store, no snapshot file existed in the virtual computers folder. Trying a manual removal also failed.

    To fix this, we created a snapshot of the virtual machine in the original data center (note is the engine to the bottom of the virtual machine), this effect was to get rid of the 'fade' snapshot that was visible in the Snapshot Manager that VEEAM backup had left behind. Once this had disappeared, the reprotect back to DCA worked perfectly.

  • A suspended snapshot could not be created for the virtual machine (DC) ha-data center (DC) \vm\VMware vCenter Server Appliance.

    Hello gentlemen,

    I can not only save this virtual machine with Backup Exec 2014 for a long time.

    They are there was no snapshot in snapshot Manager.

    Could you help me?

    A suspended snapshot could not be created for the virtual machine (DC) ha-data center (DC) \vm\VMware vCenter Server Appliance.

    V-79-57344-38260 - failed to create a snapshot of the virtual machine. The virtual machine is no longer exist, or may be too busy to pause to take the snap.

    A suspended snapshot could not be created for the virtual machine (DC) ha-data center (DC) \vm\FRPA111PRIM01.

    V-79-57344-38299-\vm\FRPA111PRIM01 ha-data center (DC) VMVCB::\\192.168.204.42\VCGuestVm\ (DC). To try to take a snapshot of a virtual machine failed because it could not be suspended in a file system.

    Hello

    I found the solution.

    I disabled the JOB BE general relativity.

    and the host where the virtual machine belong was not the right time. No Ntp server has been configured.

    I did and now there works.

    I think that the problem can come from this.

  • Definition of levels of booking for a virtual machine

    The vcloud usage meter says:

    NET points = (vGB hours X points per 1 GB reserved RAM) / hours per month


    A month calendar of 30 days, a service provider uses the vCloud package provider services - first Edition to configure its virtual machine with 16 vGB for 15 days and 48 vGB 15 days remaining. The level of booking for the virtual machine is set to 75 percent for the whole month.

    15 days x 24 hours x 16 vGB x 0.75 = 4 320 hours of vGB

    15 days x 24 hours x 24 vGB (vGB 48 x 0.75 but capped at 24 GB) = 8 640 hours of vGB

    Total number of hours of vGB = 12 960 hours of vGB

    Total points = 12 960 vGB hours ÷ 720 hours / month x 7 points (for Prime Minister) = 126 points

    Where "the level of booking' for a virtual machine?  Is - this talk on VM bookings each parameter in vCenter Server, or do something to the extent of consumption vCloud himself?

    Hello. The reservation level is set for each virtual machine, using a vSphere Client or API.

  • VCenter shows a network for a virtual machine that is not associated with any host

    I have a win2k3 VM who at one point had a network assigned to him called "MONITORING".  This network is configured is no longer in the ESXi (5.5) environment.  The virtual machine is connected to a network called "PRD-SURVEILLANCE" which is correct.  It's not really cause a problem, but I can't find a way to get rid of the object of MONITORING network.

    In VCenter MONITORING networks has a VM of 1 meter, the number of hosts of 0.  I also see it in the VM - dialog box, change the settings, but there is no option to remove it.  Profile Image to the virtual machine is version 10 so I can't use the old Client of VI to try to remove it.  I have checked each host and do not see this listed network object.

    I tried to restart the VM, it migration between hosts, changing its network of SURVEILLANCE of PRD to another network and vice versa and close - remove NIC and add a new card network.  MONITORING legacy network still appears in the config.

    For the virtual machine's .vmx file shows that the correct network: ethernet0.networkName = 'RDP-ANALYSIS '.

    Any suggestions on how I can remove the artifact of MONITORING network?

    The virtual machine has a preview that was created at the time where the MONITORING network was still affected?

    André

  • How to find the age of a child and snapshot number snapshot for a virtual machine.

    Hi all

    How to find the age of a snapshot for a virtual machine child count and snapshot.

    This code snippet should help... Assuming that you have the following entries:

    VM (VC:VirtualMachine)

    snapshot (VC:VirtualMachineSnapshot)

    System.log("====== Snapshot details for VM: "+snapshot.config.name+" ======");
    var snapshotTrees = vm.snapshot.rootSnapshotList;
    System.log("Snapshot Tree Count: "+snapshotTrees.length);
    for each (snapshotTree in snapshotTrees){
        showSnapshotInfo(snapshotTree, snapshot);
    }
    
    function showSnapshotInfo(snapshotTree, selectedSnapshot){
        if(selectedSnapshot == snapshotTree.snapshot){
            System.log("====================");
            System.log("Name: "+snapshotTree.name);
            System.log("Id: "+snapshotTree.id);
            System.log("Description: "+snapshotTree.description);
            System.log("createTime: "+snapshotTree.createTime);
            System.log("quiesced: "+snapshotTree.quiesced);
            System.log("replaySupported: "+snapshotTree.replaySupported);
            System.log("backupManifest: "+snapshotTree.backupManifest);
            System.log("snapshot id: "+snapshotTree.snapshot.id);
            System.log("state: "+snapshotTree.state.value);
            var childSnapshotList = snapshotTree.childSnapshotList;
            if(childSnapshotList != null){
                System.log("childSnapshotList length: "+snapshotTree.childSnapshotList.length);
            }
            System.log("");
        }
        if(snapshotTree.childSnapshotList != null){
            System.log("Children found: "+snapshotTree.childSnapshotList.length);
            for each (childSnapshotTree in snapshotTree.childSnapshotList){
                showSnapshotInfo(childSnapshotTree, selectedSnapshot);
            }
        }
    }
    

    During the passage of one of my virtual machines, here is an example of output I get:

    [2014-06-12 15:19:21.493] [I] Snapshot Tree Count: 1
    [2014-06-12 15:19:21.493] [I] ====================
    [2014-06-12 15:19:21.494] [I] Name: before upgrade to 5.0.1
    [2014-06-12 15:19:21.494] [I] Id: 31
    [2014-06-12 15:19:21.494] [I] Description:
    [2014-06-12 15:19:21.495] [I] createTime: Mon Mar 19 2012 13:48:57 GMT-0400 (EDT)
    [2014-06-12 15:19:21.495] [I] quiesced: false
    [2014-06-12 15:19:21.495] [I] replaySupported: null
    [2014-06-12 15:19:21.495] [I] backupManifest: null
    [2014-06-12 15:19:21.496] [I] snapshot id: snapshot-83
    [2014-06-12 15:19:21.496] [I] state: poweredOff
    [2014-06-12 15:19:21.496] [I] childSnapshotList length: 1
    [2014-06-12 15:19:21.496] [I]
    [2014-06-12 15:19:21.497] [I] ====================
    [2014-06-12 15:19:21.497] [I] Name: Before 5.1 upgrade
    [2014-06-12 15:19:21.497] [I] Id: 36
    [2014-06-12 15:19:21.497] [I] Description:
    [2014-06-12 15:19:21.498] [I] createTime: Fri Sep 21 2012 21:59:58 GMT-0400 (EDT)
    [2014-06-12 15:19:21.498] [I] quiesced: false
    [2014-06-12 15:19:21.498] [I] replaySupported: null
    [2014-06-12 15:19:21.498] [I] backupManifest: null
    [2014-06-12 15:19:21.499] [I] snapshot id: snapshot-84
    [2014-06-12 15:19:21.499] [I] state: poweredOff
    [2014-06-12 15:19:21.499] [I] childSnapshotList length: 1
    [2014-06-12 15:19:21.499] [I]
    [2014-06-12 15:19:21.500] [I] ====================
    [2014-06-12 15:19:21.500] [I] Name: Before Named Instance
    [2014-06-12 15:19:21.500] [I] Id: 37
    [2014-06-12 15:19:21.501] [I] Description:
    [2014-06-12 15:19:21.501] [I] createTime: Mon Nov 11 2013 13:40:46 GMT-0500 (EST)
    [2014-06-12 15:19:21.501] [I] quiesced: false
    [2014-06-12 15:19:21.501] [I] replaySupported: null
    [2014-06-12 15:19:21.502] [I] backupManifest: null
    [2014-06-12 15:19:21.502] [I] snapshot id: snapshot-236
    [2014-06-12 15:19:21.502] [I] state: poweredOff
    [2014-06-12 15:19:21.502] [I]
    
  • change default location for new virtual machines programmatically

    I know that you can change the default location for new virtual machines through the preferences GUI, but I want to be able to change it for all those who use VMWare Workstation in my company, so that it is more advanced to the personal folder of the user.

    Where exactly is stored?  I don't see in the registry.

    Thank you!

    WS does not use the registry to store settings.

    Set the path in UNK for each user:
    prefvmx.defaultVMPath = "F:\. »

  • Change tracking (CTK) block is supported for this virtual machine, but was refused. This will increase the CPU proxy and consumption of IOP.

    I have problems with a client of VMware image-level in an EMC Avamar backup.  So far, we have not been able to find information about this message in the backup log file.  It is originally the backup to take a very long period of time (on average 10-11 hours).

    2014-02-28 14:20:57 avvcbimage < 14681 > Info: change tracking (CTK) block is supported for this virtual machine, but was refused. This will increase the CPU proxy and consumption of IOP.

    We cannot determine why CBT is "denied".  Has anyone here run across this issue before or seen any other type of backup VMware image have denied CBT?

    Everything I checked watch that CBT is successfully activated since the file vmx for the customer to the Avamar config.

    ESXi host is Enterprise Plus 4.1.0 260247

    After spending some time on this issue, the ultimate resolution withdrew the Avamar vm and then add it again.  After that, CBT began to work properly.  It seems that there is a parameter that has been 'stuck' pertaining to this virtual machine that wasn't behaving properly.

  • Disable the clichés for individual virtual machines?

    Hi all

    Is it possible to disable support for snapshot for individual virtual machines, perhaps via a parameter for it?  Or is the closest answer you to put all its virtual disks in independent mode?  Try to see how to better meet the requirements that certain suppliers impose that the VM/device does not catch instant and thought that the best solution is to disable the feature for the specific VM (s) only.  Thank you!

    You can watch the snapshot.maxSnapshots configuration setting. See KB 1031280 for more information.

  • 'Disable the alarm action' for a virtual machine

    Hello

    I want to disable all actions for a virtual machine alarm, while I have to disable FT to clone a virtual machine. My script are ready for cloning but I have a solution to disable the actions of alarm for a virtual machine via PowerCLI to can´t. Someone knows a solution for PowerCLI 5.1R1?

    Thank you

    Michael

    -Entity parameter requires an inventory of PowerCLI as value object and does not have the names. You can try it like this:

    Get-AlarmActionState-entity (Get-VM-name VMTEST1) - Recurse: $false

Maybe you are looking for