Opened 14 years ago
Closed 11 years ago
#8369 closed defect (obsolete)
NAT: CIFS connection to host is terribly slow
Reported by: | Artem S. Tashkinov | Owned by: | |
---|---|---|---|
Component: | network/NAT | Version: | VirtualBox 4.0.4 |
Keywords: | nat | Cc: | |
Guest type: | Linux | Host type: | Linux |
Description (last modified by )
Probably NAT is not meant for transferring data between host OS and guest OS, but since it's possible I suppose such a connection should have a speed comparable to Host-only connection.
However it's not the case.
When copying data from Fedora 14 guest to Fedora 14 host (both have i686 arch) I get 196KB/sec connection speed on average. Both hosts are 100% idle when copying (host OS exports SMB shares, guest OS has them mounted via CIFS).
When I copy data using Host-only adapter the speed soars to 20-30MB/sec.
P.S. Guest additions are not installed. Guest OS has Intel PRO/1000MT Desktop (82540EM) adapter.
Attachments (5)
Change History (16)
by , 14 years ago
Attachment: | copying.png added |
---|
follow-up: 4 comment:3 by , 14 years ago
Please, give me a ffsb profile to test. There are eight exemplary ones, I've no idea which one to use.
comment:4 by , 14 years ago
Replying to birdie:
Please, give me a ffsb profile to test. There are eight exemplary ones, I've no idea which one to use.
please use profile_everything config with replacing location property with path to some test folder on smb/cifs share.
[filesystem] location =
follow-up: 6 comment:5 by , 14 years ago
I don't know how these results can be helpful - since that's exactly what I've said in the first post.
comment:6 by , 14 years ago
Replying to birdie:
I don't know how these results can be helpful - since that's exactly what I've said in the first post.
Benchmark is more obvious to simplify the test case than real application (in case if benchmark has the same behavior as application ofc). Particular this benchmark do several operations, and more flexible with initial parameters, and shows wider specter of CIFS related issues.
BTW: If the behavior of mc is the same for NFS share for you?
follow-up: 8 comment:7 by , 14 years ago
I did a better and cleaner test (while using NAT connection):
On host:
$ nc -l 1234 > file.temp
On guest
$ time nc 10.0.2.2 1234 < /proc/kcore real : 1m10s
kcore weighs 1,032,188K, so we're getting 14,745KB/sec speed which is (I suppose) close to the theoretical maximum since guest is eating 100% of the host CPU at this moment.
So, actually I don't know what to do with this bug report - it's 100% reproducible using CIFS connection, it doesn't hold true when I use direct TCP connection (e.g. using nc/netcat).
follow-up: 10 comment:8 by , 14 years ago
Replying to birdie:
So, actually I don't know what to do with this bug report - it's 100% reproducible using CIFS connection, it doesn't hold true when I use direct TCP connection (e.g. using nc/netcat).
I'll just change the header to mark as CIFS specific.
comment:9 by , 14 years ago
Summary: | NAT connection to host is terribly slow → NAT: CIFS connection to host is terribly slow |
---|
comment:10 by , 14 years ago
Replying to birdie:
So, actually I don't know what to do with this bug report - it's 100% reproducible using CIFS connection, it doesn't hold true when I use direct TCP connection (e.g. using nc/netcat).
Does it look host/guest specific, e.g. you don't see the same effects with CIFS on other guests or hosts? Here on Mac and Ubuntu hosts I don't see such dramatical performance slowdown on CIFS.
comment:11 by , 11 years ago
Description: | modified (diff) |
---|---|
Resolution: | → obsolete |
Status: | new → closed |
Low speed when copying a file from a guest OS to a host OS - screenshot