On Thursday, 5 March 2015 11:08:33 UTC-5, Thomas Ferris Nicolaisen wrote:
>
> On Wednesday, March 4, 2015 at 9:11:45 PM UTC+1, Stephen Morton wrote:
>>
>> I'm experiencing very slow git pushes. On the order of 1 minute to push a 
>> trivial one-line change. When I set GIT_TRACE=1, I see that it seems to be 
>> taking a lot of time in the pack-objects phase. 
>>
>> Others are not seeing this with the same repo, but I'm the only one 
>> working in a VM.
>> ...
>>
>> Any ideas?
>>
>>
> Could have something to do with the filesystem. Is your Git repository 
> located in a folder shared from the host system, using some kind of virtual 
> fs? This could be a performance bottleneck:
>
> http://mitchellh.com/comparing-filesystem-performance-in-virtual-machines
>
> If you can't figure out the filesystem type, please paste us the output of 
> `pwd` while the repo is current directory, along with the output of `mount`.
>


It is an ext4 filesystem on the guest linux drive.
On the host side, it is a .vmdk file and the virtualization software used 
is virtualbox. While the drive is dynamically allocated, after I ran into 
this issue, I used fallocate to create a 50GB dummy file and then delete it 
to ensure that there was headroom in the drive and that dynamic allocation 
slowness was not the issue, and subsequent pushes were still slow.
I have not experienced any filesystem slowness issues in the months I've 
been using this vm.

I'm very linux knowledgeable, and becoming more git knowledgeable, so feel 
free to ask me questions as technical as you want.

Steve


 

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to