Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Slow FTP Transfers on LAN
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Sun Sep 28, 2003 3:22 pm    Post subject: Slow FTP Transfers on LAN Reply with quote

I'm using ncftp to transfer files between my Gateway (Linux) and my Windows 2003 Server installation. I can't reach speeds higher than 5mb/s
The computers are connected to eachother with regular TP cable with a 100mb Netgear switch.
The reason I'm using FTP for tranferring files instead of samba is that i just can't get samba to reach as high speeds as I can with ftp.

Here are some values for you to work with ;)

Code:
/dev/hdb:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 14593/255/63, sectors = 234441648, start = 0

Code:
/dev/hda:
 multcount    = 16 (on)
 IO_support   =  0 (default 16-bit)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
 keepsettings =  0 (off)
 readonly     =  0 (off)
 readahead    =  8 (on)
 geometry     = 2193/255/63, sectors = 35239680, start = 0

Code:
root@pr0nstar:/home/teddy# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:E0:4C:B0:5C:91
          inet addr:194.236.144.187  Bcast:194.236.144.255  Mask:255.255.255.0
          inet6 addr: fe80::2e0:4cff:feb0:5c91/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:24901852 errors:2369 dropped:0 overruns:0 frame:0
          TX packets:25678850 errors:0 dropped:0 overruns:0 carrier:0
          collisions:449351 txqueuelen:100
          RX bytes:4248673754 (4051.8 Mb)  TX bytes:3420871715 (3262.3 Mb)
          Interrupt:10 Base address:0xd000

eth1      Link encap:Ethernet  HWaddr 00:00:E8:75:0B:01
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::200:e8ff:fe75:b01/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:11173800 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20532926 errors:0 dropped:0 overruns:5 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:768771999 (733.1 Mb)  TX bytes:3440447083 (3281.0 Mb)
          Interrupt:5 Base address:0xf400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3402 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3402 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:173847 (169.7 Kb)  TX bytes:173847 (169.7 Kb)

The connection to the LAN is on eth1 while the internetconnection houses on eth0 :)
Code:
root@pr0nstar:/home/teddy# mii-tool
eth0: autonegotiation failed, link ok
eth1: negotiated 100baseTx-FD flow-control, link ok

It bugs me I can't reach higher speeds. If I had another Windows installation this wouldn't be an issue :¨/
But since I hate Windows I really want to solve this :lol:
Thank you in advance
/Sail@
Code:
Back to top
View user's profile Send private message
Diorf
n00b
n00b


Joined: 05 Jun 2003
Posts: 52
Location: Paris

PostPosted: Sun Sep 28, 2003 6:41 pm    Post subject: Reply with quote

first you can do an mii-tool on your eth0 card to get it working at 100M-FD (this could increase transfert rate)
first simply emerge it
Code:
emerge mii-tool


and after you can see all supported mode on your network card by launching:
Code:
mii-tool -v


and then just type:
Code:
mii-tool -F 100baseTx-FD eth0


to get eth0 working in 100M-FD

hope that helps
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sun Sep 28, 2003 7:12 pm    Post subject: Reply with quote

He is on 100M/FD. :) eth0 is the Internet connection, eth1 is his LAN connection. I doubt he is FTPing files across the Internet and expecting 100Mbps transfer rates. ;)
Sail@ wrote:
Code:
eth1: negotiated 100baseTx-FD flow-control, link ok
Back to top
View user's profile Send private message
Sail@
n00b
n00b


Joined: 06 Sep 2003
Posts: 36

PostPosted: Sun Sep 28, 2003 7:40 pm    Post subject: Reply with quote

But it would have been cool though :lol:
Any suggestions of what to do?
As I said, I have lousy samba performance as well.
I don't think my hdd:s are the bottlenecks either, any suggestions?
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Sun Sep 28, 2003 7:58 pm    Post subject: Reply with quote

Maybe you should raise tcp window sizes a bit higher? At least in a gigabit LAN that sure is an issue to look at. Try to increase values in the following locations:

/proc/sys/net/core/rmem_default
/proc/sys/net/core/wmem_default
/proc/sys/net/core/rmem_max
/proc/sys/net/core/wmem_max
/proc/sys/net/ipv4/tcp_rmem
/proc/sys/net/ipv4/tcp_wmem

On the other hand, if you are using ProFTPd as your ftp-daemon, make sure it's using bigger window than the default 8192 bytes. Add to proftpd.conf lines

Code:
SocketOptions rcvbuf 262144
SocketOptions sndbuf 262144

_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum