network first fast, then *really* slow

Discussions related to using VirtualBox on Windows hosts.
Hachiman
Posts: 94
Joined: 18. Dec 2008, 21:04
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Linux, Solaris, NetBSD

Post by Hachiman »

Sasquatch wrote:
Hachiman wrote:
Sasquatch wrote: NAT isn't that slow. It's only a tiny bit slower, because of the additional translation step, but shouldn't be any slower than when you use a router for your internet connection for the Host, compared to direct connection and NAT on the Guest.
It could be if NAT engine being the TCP/IP stack communicating with HOST network stack by Ethernet or other type of packets, instead of operating with socket interface (which massively interact host TCP/IP stack)
But a drop from, let's say 500 KB/s, to only 10% of that is not normal. Even if you would go from one network stack to another, you should not have an overhead of 90%. Usually, an overhead of 10% is normal. I don't have much experience with other network stacks, but every computer runs TCP/IP, so that should not be the problem for the TS. And it doesn't explain why it's fast from the start, but slows down later.
You're right still there're lazy fruits for optimizations (like expanding MTU), but there're still a lot of limitations e.g. TCP and IP packets options (especially first one). You're able get them from socket stack only via set/getsockopt system calls.
About fading speed, it isn't really fade I've admired wave character, that could be influenced by connections that not closed (waiting to be closed), actually select and WSAWaitForMultipleEvents are sensitive to number of serviced connections.
--
Kind regards
Sr. Software Engineer
Oracle Corporation
Vasily Levchenko

PS. Happy VBoxing.
sluk
Posts: 4
Joined: 21. Dec 2008, 04:31

Post by sluk »

esmail9 wrote: when I changed the networking to HOST (from the default NAT) it seems to have fixed things for me. (Or so I hope :-)
Same problem here Windows XP SP3 Host with VirtualBox v2.1 and Ubuntu 7.1 and 8.1 guest. Freezing gone after changed networking to HOST but download at first very fast then drop to very slow and stopped. Nothing can be download inside the Ubuntu guest.
Post Reply