3 Replies Latest reply on May 18, 2020 10:15 AM by dlhotka

    One directory slower than another directory with identical contents

    DavidGriffiths Lurker

      Hi, I'm using Fusion 11.5.3 on 2015 MacBook Pro running Catalina. It has a replacement 1TB SSD drive. I have Ubuntu 16.04 and run maven compiles inside the VM but referencing host files. So the directory where I'm running maven from is /mnt/hgfs/david/current. (I know there is a penalty for this but am happy with that). So I've been aware for a while that builds were slow but put that down to ever increasing code. Anyway, I just checked out a copy of our current source tree into another directory /mnt/hgfs/david/current_copy and did the exact same build. It completed 3 times faster than the normal build. Why?

        • 1. Re: One directory slower than another directory with identical contents
          dariusd Virtuoso
          VMware EmployeesUser Moderators

          Interesting.  My first thought would be to check if there are hidden files somewhere in the old directory tree...  If there are a large number of files in one directory, all sorts of directory operations can definitely slow down, and if they are hidden files, they might not be showing up in whatever method you are using to compare the trees.  (And I am assuming the slowdown isn't due to build products accumulating somewhere... You have cleaned the builds and compared the full directory hierarchies?)


          If they are really truly identical directories (including hidden files, subdirectories, etc.), then ... hmmm ... there are so many layers at which a slowdown might potentially occur.  To try to narrow it down:  How long as the VM been running for?  Do you, for example, leave it running 24x7x365, or do you suspend it when you're done with it for a while and resume it next time you need it, or do you shut down the OS and boot it up when needed?  Just trying to figure out which parts might be likely to have become "gummed up" so severely, and the list of possible culprits could depend a lot on how you use the VM.





          • 2. Re: One directory slower than another directory with identical contents
            wila Guru
            Community WarriorsvExpertUser Moderators



            In addition to what Darius says, check your antivirus settings.


            You might want to consider excluding that network share from antivirus checks.




            | 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
            • 3. Re: One directory slower than another directory with identical contents
              dlhotka Virtuoso

              Good catch - and it's possible that it's AV external to the VM as well, running on the NAS host, but only on one directory rather than another.