4 Replies Latest reply on Aug 23, 2019 9:44 AM by wila

    vmx CPU on Mac constantly 20%+

    vmskydave Lurker

      I'm looking in Activity Monitor and two vmware-vmx processes are constantly using around 20% CPU (with thousands of Idle Wake Ups), and a third typically less than 1% when idle (with just dozens of Idle Wake Ups), however when I ssh into the servers and run the `top` command, their CPUs are typically 0% when idle.

       

      I'm not seeing what's going on; I'm not seeing anything in VMWare (8.x or 10.x for us) that's causing this.

       

      What do I look for or do at this point? We're using Macs anywhere from Sierra to Mojave, same behavior for these two servers.

        • 1. Re: vmx CPU on Mac constantly 20%+
          wila Guru
          Community WarriorsUser ModeratorsvExpert

          Hi,

           

          Do your VMs have more than 1 virtual CPU assigned?

          If so try dropping the amount of CPUs on your VM configuration.

           

          --

          Wil

          | Author of Vimalin. The virtual machine Backup app for VMware Desktop Products
          | Vimalin : Automated backups for VMware Fusion and VMware Workstation Professional
          | More info at https://www.vimalin.com
          | Twitter @wilva
          | VMware Wiki at http://www.vi-toolkit.com
          • 2. Re: vmx CPU on Mac constantly 20%+
            dlhotka Virtuoso

            Seeing something similar - vmware-vmx on the host is at 55-75%, but the guest shows only 15% utilization.

             

            Haven't updated, so this is new behavior from an old VM.  Very strange.

            • 3. Re: vmx CPU on Mac constantly 20%+
              vmskydave Lurker

              One of them is using 2 processors, the other isn't. I shut down all of them and set it to 1 processor.

               

              Of the 4 VMs I use, they're all now using 1 processor. Of the 4 VMs I use, they're all at 1 processor, but 1 of the vmware-vmx processes is using around 25% CPU constantly, another (the one I changed to 1 CPU) is using about 10% constantly, and the others are as idle as anything.

               

               

              I'm just not sure what to try or think at this point. I'd really like my Mac to not have 1/4th of its CPU on an idle VMWare VM.

              • 4. Re: vmx CPU on Mac constantly 20%+
                wila Guru
                User ModeratorsCommunity WarriorsvExpert

                Hi,

                 

                Those wake ups are really high.

                 

                This is my current load:

                with all VMs idle as well.

                 

                The VM at the top has 1 vCPU, the other 2 VMs have 2 vCPUs.  I see the CPU% go anywhere between 20% and 40%, averaging about 30% with idles wake ups around 100 to 200.

                 

                It certainly seems higher as it used to be.

                 

                Note though that you are seeing percentages of a single core, not of your whole CPU.

                 

                Another thing to try to get the VM to use less CPU is to disable 3D as your GPU gets offloaded to the CPU.

                 

                For the idle wake ups. In the past I have seen antivirus statusbar icon to cause that by overriding a system timer and setting it to 1ms.

                Assuming that your VM runs windows, try running the following command from an elevated prompt in your VM.

                powercfg -energy duration 5

                and have a look at the report it runs for any hints.

                 

                If OTOH your guest is running linux, then look at top (which I think you did already), but also take a look at the intel powertop tools.

                --

                Wil

                | Author of Vimalin. The virtual machine Backup app for VMware Desktop Products
                | Vimalin : Automated backups for VMware Fusion and VMware Workstation Professional
                | More info at https://www.vimalin.com
                | Twitter @wilva
                | VMware Wiki at http://www.vi-toolkit.com