Ask Your Question
1

ftp transfer eats all my bandwidth

asked 2011-12-15 11:47:10 -0500

ztank1013 gravatar image

updated 2011-12-15 12:25:55 -0500

Every time I use Nautilus in my fedora 16 to connect (ftp with authentication) to a remote server and make an upload, it works but while the file is transfered from my machine to the remote server I have my upload bandwidth totally used (which I believe is the expected behavior) but downloading bandwidth is almost unused.

Here's come the annoying part: as a side effect my web navigation and any other incoming network traffic is incredibly slowed down. Loading a 100KB html page may take minutes.

Of course everything gets back to normality once the ftp upload ends. I already tried to re-nice (20) the ftp process to see if this will give a little more space/bandwidth to other processes (for example firefox) but it didn't work...

Any thoughts?

edit retag flag offensive close merge delete

Comments

Are you on xDSL?

lzap gravatar imagelzap ( 2011-12-15 13:47:18 -0500 )edit
2

I recommend using FileZilla instead, with it you can limit your upload rate, and this way you will not choke your BW.

P.S Rule of thumb, limit your upload to 80% of your total upload BW.

i.e I have a Cable connection of 2.5Mb/250kb so i limit my upload to 25KiB

The IceMan Blog gravatar imageThe IceMan Blog ( 2011-12-15 18:33:53 -0500 )edit

@The IceMan Blog Nice option, I did not know Filezilla had that option. I usually use scp .

bodhi.zazen gravatar imagebodhi.zazen ( 2011-12-16 10:18:54 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-12-15 14:30:53 -0500

updated 2011-12-15 14:33:47 -0500

The problem you are having is that your ftp transfer is using your upload bandwidth (as you can see).

What you want to do to help with the problem is called traffic shaping.

You can use a number of tools to help.

1) lftp

edit /etc/lftp.conf and add a line

set net:limit-rate <bytes per sec>

2) trickle - you will need to install trickle first

trickle -d <kbytes/sec> ftp

Edit : trickle tutorial - http://www.go2linux.org/traffic-shaping-with-linux

3) tc is a bit more complex. See See http://www.cyberciti.biz/faq/linux-traffic-shaping-using-tc-to-control-http-traffic/

You will have to try adjusting the limits for your network.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-12-15 11:47:10 -0500

Seen: 2,109 times

Last updated: Dec 15 '11