LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-04-2010, 04:41 AM   #1
jkeertir
Member
 
Registered: Mar 2008
Posts: 70

Rep: Reputation: 15
ways to increase ftp transter speed


Dear All,

I can transfer file at 2MBps using ftp.I need to increase it to 5MBps,I tried changing following values in /etc/sysctl.conf
# increase TCP max buffer size setable using setsockopt()
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
# increase Linux autotuning TCP buffer limits
# min, default, and max number of bytes to use
# set max to at least 4MB, or higher if you use very high BDP paths
net.ipv4.tcp_rmem = 4096 87380 16777216
net.ipv4.tcp_wmem = 4096 65536 16777216


and then executed sysctl -p,

but then too there is no change in the transfer speed.Can anyone please guide me how to increase the ftp transfer speed.I am using vsftp.

With Regrads,
Keerti
 
Old 02-04-2010, 05:05 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Have you checked whether the limit is within the network ? ... where are the client and server located ? .. same lan ? .. over the internet ?
 
Old 02-05-2010, 04:54 AM   #3
jkeertir
Member
 
Registered: Mar 2008
Posts: 70

Original Poster
Rep: Reputation: 15
hi kbp,

My client and server are in the same lan.

With regards,
Keerti
 
Old 02-05-2010, 05:07 AM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Then I would suggest that the path between them has restrictions, are there any firewalls between the two machines ? ... also can you ensure both machines are connected at least at 100 Mb full duplex ?
 
Old 02-05-2010, 08:53 AM   #5
jkeertir
Member
 
Registered: Mar 2008
Posts: 70

Original Poster
Rep: Reputation: 15
hi kbp,

no i dont have any firewall between two machines

With regards,
Keerti
 
Old 02-06-2010, 04:08 AM   #6
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
How about speed/duplex settings ? ... ( ethtool ethX )
 
Old 02-07-2010, 04:10 AM   #7
jkeertir
Member
 
Registered: Mar 2008
Posts: 70

Original Poster
Rep: Reputation: 15
hi kbp,

This is the output of mii-diag command

Using the default interface 'eth0'.
Basic registers of MII PHY #1: 3100 786d 0243 0c54 01e1 4de1 0003 0003.
The autonegotiated capability is 01e0.
The autonegotiated media type is 100baseTx-FD.
Basic mode control register 0x3100: Auto-negotiation enabled.
You have link beat, and everything is working OK.
Your link partner advertised 4de1: Flow-control 100baseTx-FD 100baseTx 10baseT.
End of basic transceiver information.

I have tested ftp transfer without I/O transfer as
ftp> put "|dd if=/dev/zero bs=1M count=100" /dev/null,
I am getting ftp transfer speed upto 37MB/s.

I am accessing the files from pendrive for ftp transfer,
and the output of hdparm -t /dev/sda1 is

hdparm -t /dev/sda1

/dev/sda1:
Timing buffered disk reads: 28 MB in 3.09 seconds = 9.07 MB/sec

so ,accessing pendrive dumping my ftp speed?

With regards,
Keerti
 
Old 02-07-2010, 04:31 AM   #8
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,758

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Most likely... try testing the write speed to your pen drive as well, it'll probably be slower than the read performance
 
  


Reply

Tags
ftp, rate, transfer


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ways to increase the reliability of wireless networking wanted cantab Linux - Wireless Networking 17 01-27-2010 07:11 PM
LXer: Six ways to speed up Yum on Fedora LXer Syndicated Linux News 0 01-05-2009 07:50 PM
are there ways to speed X operation up? pellicle Linux - Newbie 11 07-30-2008 05:19 AM
SPEED : How to increase? isone Linux - Newbie 1 10-29-2003 04:29 AM
increase hd speed saavik Linux - Hardware 3 07-23-2003 10:54 AM


All times are GMT -5. The time now is 09:42 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration