Slow single file transfer, fast multiple transfer
I have a debain box (with gnome), and the network seems to work as it should except for one bizarre issue... When transferring files from another device over the network the transfer speed is only around 1MB/s... If I start another file transfer the rate of the first immediately jumps to around 5MB/s, and the second transfer runs at roughly the same for a combined speed of around 10MB/s... which is what I would expect to see on single transfers as well.
So I can speed up a file transfer by a factor 5 by simply starting another (pointless) transfer... and though I could live with a transfer rate of 5MB, I don't feel like it is a very permanent solution. Does anyone have any logical explanation for this very strange behaviour? -Or just ideas on how to troubleshoot? I considered posting output from tcpdump, netstat, ifconfig and all the other commands I've tried over the past couple of weeks to figure this out... but decided it would be a bit overwhelming for my first post ever... So what information would be most relevant here? |
Thats freaky. First a few questions:
1) are you using ssh, scp, vpn? (or something that'll encrypt while transfer) 2) are the two computer close to each other? (switch with cat5, 14.4 modem dialup, etc) 3) have you cleared iptables just to see if that has any effect? |
Quote:
Quote:
I only have SSH access to the machine at the time of writing, but will try moving the NAS next to the router with a short cat5 cable when I can physically get to them, although I very much doubt it will change anything as the cable is clearly capable of transferring at higher speeds. Quote:
Meanwhile I have done some additional testing: The problem only affects transfers through ethernet, not wifi. If I enable wifi on the debian machine, and disable cabled network completely (leaving everything else unchanged), then I get transfer rates around 4MB/s for a single transfer and it drops rather than rises if I run several transfers simultaneously. This strongly suggests to me that the problem is something related to the cabled connection between debian and the router. However, I can transfer files from other machines to the debian machine at full speed, which I guess clears the debian-router connection as a suspect. But then again, I can also fetch the same files (well, it probably affects all files, but is only noticable on large files) from the NAS on any other machine without issues, 10-11MB/s on a single transfer and roughly half if I have two transfers. I really don't understand the logic in this issue at all. Basically everything works, only the transfer rate is behaving in a very unexpected way. Perhaps I should look into the CIFS mount or autofs...? Would that make sense, and how would I go about it (easiest way to eliminate)? Is it possible that one of those could behave so differently depending on whether they "go through" a ethernet or wifi? |
On both boxes, can you run: ethtool eth0
(or "mii-tool eth0" which ever works, and use the right adapter, eth1, eth2, whatever.) We are looking for the speed and duplex. It'd be something like: Speed: 1000Mb/s Duplex: Full (or you just paste the entire thing.) On my laptop, when it boots, it doesnt detect the link right, so in the init script I: ifdown eth0 ifup eth0 ethtool --negotiate eth0 dhcp eth0 (that's from memory, so its not correct) Instead of file copy, you could try a netcat or iperf benchmark. (google: netcat benchmark) It might shed some more light. Also, in ethtool, you can play with the offloads. (--show-offload and --offload options) I've heard of some of the offloads being enabled, but causing problems. All off would be slowest but most compatible. |
Quote:
Code:
Supported ports: [ TP ] Quote:
Code:
Offload parameters for eth0: Code:
Offload parameters for eth0: Quote:
|
Quote:
The ethtool looks good. I agree that since wifi works fine, that the cifs mount is probably not the problem. We have eliminated everything... except... Aliens! :-) Sorry, I don't think I can help you out on this one. |
Alright then, everything is eliminated... thanks for the effort anyways...
I'll blame it on the aliens and switch to wifi... bizarre problems call for bizarre solutions I suppose. |
All times are GMT -5. The time now is 11:36 PM. |