shared folder performance - tips to speed up?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
weberjn
Posts: 6
Joined: 17. Jun 2018, 14:40
Primary OS: MS Windows 10
VBox Version: OSE other
Guest OSses: Fedora
Location: Germany

shared folder performance - tips to speed up?

Post by weberjn »

I mounted a folder from my windows drive with VirtualBox shared folders in Fedora 28 guest (W10 on Thinkpad T460s).

java /java vboxsf uid=weberjn,gid=weberjn 0 0

I cloned https://github.com/git/git.git
and timed local clone of this in Msys2 and Fedora guest. Cloning in Msys2 only took half the time.

Is there a way to speed up virtual folders?

I tried to mount the folder via cifs, but then git clone fails.

Thanks,
Jürgen

Code: Select all

weberjn@Kuno MSYS /c/java/gittest
$ time git clone git git.msys2
Cloning into 'git.msys2'...
done.
Checking out files: 100% (3260/3260), done.

real    0m27.745s
user    0m1.827s
sys     0m12.278s

[weberjn@kunix gittest]$ time git clone git git.share
Cloning into 'git.share'...
done.
Checking out files: 100% (3260/3260), done.

real    1m0.937s
user    0m0.733s
sys     0m10.696s

sudo mount -t cifs //kuno/java /java -o user=weberjn,uid=weberjn,gid=weberjn
weberjn@kunix:/java/gittest>  time git clone git git.cfs
Cloning into 'git.cfs'...
done.
fatal: failed to read object 53f9a3e157dbbc901a02ac2c73346d375e24978c: Invalid argument
fatal: The remote end hung up unexpectedly

real    0m22.923s
user    0m0.058s
sys     0m1.597s
Last edited by socratis on 24. Jun 2018, 15:10, edited 1 time in total.
Reason: Enclosed the information in [code] tag for better readability
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Mostly XP

Re: shared folder performance - tips to speed up?

Post by mpack »

Performance is not the goal of GA shared folders, simplicity is.

If you want better performance then consider setting up a true network share, using a virtio-net NIC and appropriate drivers in the guest.
Post Reply