1 2 Previous Next 27 Replies Latest reply on Aug 12, 2019 10:07 AM by dlhotka Go to original post
      • 15. Re: slow VM restore of saved state
        dlhotka Virtuoso

        Ugh - the only other idea is that if you use a Fusion drive, it may be shifting the VM off to the metal disk, but short of that, I'm out of ideas.

        • 16. Re: slow VM restore of saved state
          BillBuilt Novice

          Just want to make a note of this. On 7-10-2019 I completely uninstalled and re-installed VM Ware. So far resumes are performing as they should. Time will tell if another complete re-install will be necessary after X number of resumes. They worked fine back when I completely re-installed MacOS and all apps until X number of restores, at which point they starting stalling again, so I'm assuming that will happen this time too. I will update here accordingly.

          • 17. Re: slow VM restore of saved state
            BillBuilt Novice

            Just a note - 7-15-2019 - restores have slowed down somewhat. After a fresh uninstall and reinstall of VMWare on 7-10-2019 they were running around 5 seconds. Today they are taking 30-50 seconds.

            • 18. Re: slow VM restore of saved state
              BillBuilt Novice

              7-25-2019 - Today's restore took over 4 minutes.

               

              Now an interesting observation from yesterday.... yesterday morning's restore took under 2 minutes. After using for 3-4 hours I paused it. About 30 minutes later I remembered something I had forgotten to do, so I resumed it and it took less than 5 seconds. I left it on the rest of the day and paused it before I left for the evening. This morning I got to work and the resume took over 4 minutes.

               

              Just as before when I did a complete machine reinstall, it slowly gets longer and longer until I will eventually need to uninstall and reinstall VMware. I foresee this being a once per month event at the rate it's going right now.

              • 19. Re: slow VM restore of saved state
                dlhotka Virtuoso

                This is just bizzare.   If you were using a Fusion disk, I could understand it, but otherwise it just doesn't make sense.

                 

                Long shot but have you tried timing other large sequential disk reads over time?  i.e. copy large file to the drive?  Wonder if there's something going on at the disk/OS level.

                • 20. Re: slow VM restore of saved state
                  BillBuilt Novice

                  I am using a fusion drive.... ? It was the exact same fusion drive that worked perfectly up until Apple's update that allowed Fusion drives to work with APFS, and they converted the file system. It was about that time I started seeing this behavior. Prior to that everything worked flawlessly every time.

                  • 21. Re: slow VM restore of saved state
                    BillBuilt Novice

                    Yes - all other disk operations work perfectly fine. I use iStat Menus to monitor all activity. When the VM is resuming very slowly, VM Ware is hardly using any resources and HDD activity is very very low. Nothing else however is acting in a diminished way, only VM Ware.

                    • 22. Re: slow VM restore of saved state
                      dlhotka Virtuoso

                      Ahh, ok.  So what's happening is that OSX is moving the data from the SSD to the spinning disk - that's why you're seeing a slowdown over time.  I suspect you have a split VMDK file which, over time, migrates in pieces to the metal disk, which is why the slowdown is gradual and ever changing.

                       

                      APFS made a lot of changes to how the whole disk and file management system works.   First, and most relevant for this, it does more aggressively migrate files based on usage patterns.  Another example is that it also fundamentally changed how time machine works, and now makes extensive use of snapshots.  In the past we could exclude the fusion folder from time machine, but under the new system that just stops it from backing up - the snapshot still captures the entire drive.  Near as I can tell the only way to stop the snapshotting process is to disable time machine completely.    That has caused me to run out of available disk space on my main drive, because it snapshots my large VM's, but if I'm offline from my TM drive, it never clears those and over time, it consumes space.

                       

                      So your problems would be happening with any application that uses large files - it's not a Fusion issue.  And apple hasn't provided a way to 'pin' files to the SSD portion of the drive.

                       

                      For a couple of things to try, if you use the VM regularly, you could go back to a single virtual disk.  That would prevent pieces from being moved, but if it did move, you'd see a massive slow down until it migrates back.  Not sure if this would work.

                       

                      The only sure-fire ways to get it to work are either to partition the Mac so that there is a dedicated drive on the SSD to store the VMs, then use the remainder for a fusion drive, remove the fusion drive and go back to two different drives, or, if you have USB-C, to get an external SSD drive (I use a samsung for this exact purpose) and put the VM there.  I find that performance via USB-C is nearly as fast as my internal SSD.

                       

                      Wish I had better news, but you're kind of at the mercy of how the OS works.

                      • 23. Re: slow VM restore of saved state
                        BillBuilt Novice

                        Well that makes sense - and is the only logical explanation I have received yet - even VMWare support couldn't give me any explanation when I knew it HAD to be something with the APFS update..... except why would uninstalling and reinstalling VMware "reset" the time it takes to resume if the actual virtual machine files were never removed or moved?

                         

                        I am going to convert the split drives into a single file drive and see if that helps too.

                         

                        Thanks!

                        • 24. Re: slow VM restore of saved state
                          dlhotka Virtuoso

                          Did you happen to shut down (instead of suspend) the VM before doing the uninstall/reinstall cycle?  That'd likely recreate the virtual memory image on the SSD portion of the drive.  Otherwise, the cycle might force a re-read of the files, which would also move them back.

                           

                          I'd be curious to know if moving to a single file helps (or hurts) the suspend - it may be the virtual memory image file that's the entire culprit in which case you're probably out of luck as long as the fusion drive is active.

                          • 25. Re: slow VM restore of saved state
                            BillBuilt Novice

                            "Did you happen to shut down (instead of suspend) the VM before doing the uninstall/reinstall cycle?"

                            I can't remember, but I probably had shut it down simply because back then it was taking 30+ minutes to resume and that was the only way to use the VM - shutting down instead of pausing. Although if the reinstall had no effect, the first time I tried pausing/resuming after the reinstall should have taken the 30+ minutes that it was taking prior. However it did not, it worked great and, just as before the reinstall, slowly started taking longer and longer.

                             

                            I will post my findings on the conversion to a single drive file here - I will likely need to wait until morning to see how well it resumes. And if it's good, then see how well it performs over time.

                            • 26. Re: slow VM restore of saved state
                              BillBuilt Novice

                              So, after nearly 2 weeks of having the VM HDD converted from multiple files to a single file I can report that resumes have been fairly quick and consistently so. It seems, at least for now, that going to a single file HDD definitely helped.

                              • 27. Re: slow VM restore of saved state
                                dlhotka Virtuoso

                                Great news!  We'll keep fingers crossed :-)

                                1 2 Previous Next