I am running an Ubuntu Lucid guest inside VMWare Player on a Windows XP machine, using a shared folder. git status
is slow in the VM (24 seconds) but fast on the host machine (0.06 seconds) Any idea why?
More details:
du -hs .
in the guest OS)git gc
as described here, but it made no difference:Counting objects: 3604, done.
Compressing objects: 100% (1069/1069),
done. Writing objects: 100%
(3604/3604), done. Total 3604 (delta 2143), reused 3604 (delta 2143)
Removing duplicate objects: 100%
(256/256), done.
PortableGit-1.7.2.3-preview20100911
nosmp noapic nolapic
as described here.Shared Folders have a fair amount of overhead, since you're crossing the guest<>host boundary. I'm not super-familiar with the internals of git, but I would assume it does a lot of fairly small operations, involving a relatively high amount of per-operation overhead. You could try doing a git repack
to reduce the amount of individual objects (files), might help a bit.
Is it imperative that you share the repository between guest and host?
1/ Read access are generally slower through a VM than a native OS
2/ git status
is slow when the repo has submodules: do you have any?
With git1.7.2+, you can ignore those with the --ignore-submodules
option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With