Very slow speed in upload

121 views
Skip to first unread message

mario rossi

unread,
Jan 13, 2016, 10:18:20 AM1/13/16
to Vagrant
Hi, I recently updated to the latest version of Vagrant (1.8.1) and for some reasons it is now _very_ slow to upload files via http.

I use NFS and I can successfully copy huge files between shared mounts at a decent speed, but port 80 is really really slow.

I tried different uploaders, so it's not something with the code. do you have any idea of what it could be? 

VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  config.vm.hostname = "poorthing"
  config.vm.synced_folder ".", "/localhost", type:"nfs", :mount_options => ['nolock,vers=3,udp,noatime']
  config.vm.network "forwarded_port", guest: 80, host: 8080
  config.vm.network "forwarded_port", guest: 15672, host: 15672
  # Required for NFS to work, pick any local IP
  config.vm.network "private_network", type: "dhcp"
end


 thank you

Alvaro Miranda Aguilera

unread,
Jan 14, 2016, 12:35:13 AM1/14/16
to vagra...@googlegroups.com
Hello. if you are using the port 8080 that goes over the nat of virtualbox.

Try to use the ip set from private_network. ifconfig will show you the ip, and try with that ip as test.

If does better, you can put a fixed ip, and use that ip that will be directly from host to vm without nat.
You will be using a virtual nic on the guest, so you could test different virtual nics and see if that does any better.

Alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/13f3833c-5c5d-49ff-b1b4-784aa0b6b681%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mario rossi

unread,
Jan 14, 2016, 4:27:46 AM1/14/16
to Vagrant
Hey!
that was clever:

Thank you very much 

> 411.20 Mbit/s | 00:00:00 | 73.11 % | 133.30 MB / 182.32 MB

Alvaro Miranda Aguilera

unread,
Jan 14, 2016, 6:11:37 AM1/14/16
to vagra...@googlegroups.com
Hello

Cool that worked for you.

My other suggestion was that you can test other virtual nics and see what goes faster.

Lots of things to test, example:

  config.vm.provider "virtualbox" do |vb|

    vb.customize ["modifyvm", :id, "--memory", "2048"]

    vb.customize ["modifyvm", :id, "--cpus", "2"]

    vb.customize ["modifyvm", :id, "--nictype2", "Am79C973"]

  end

2 is for the 2nd nic, the first one after the nat .. 

Types of nic:

                            [--nictype<1-N>Am79C970A|Am79C973|82540EM|82543GC|82545EM|virtio]

You can also test hw assisted virtualization:

                            [--paravirtprovider none|default|legacy|minimal|hyperv|kvm]

none is what is used today, but kvm should do the trick in new linux kernel

    vb.customize ["modifyvm", :id, "--paravirtprovider""kvm"]


Alvaro.


Reply all
Reply to author
Forward
0 new messages