Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have multiple user on a server, they upload and download their file through FTP, sometimes some heavy transfer make high load on server, I am wondering is there any way to limit ftp speed to avoid high load?

Any help would be much appreciated.

share|improve this question
1  
Some FTP servers have builtin support for that. Which is yours? Is CPU, network bandwith or disk access bandwidth the issue here? You could also nice and ionice -c 3 your FTP server. –  Stéphane Chazelas Sep 18 '12 at 13:21

2 Answers 2

The keyword is bandwidth management and the Linux Kernel has direct support of it. I dealed with this long time ago and have forgotten much about that but there is a great online book that covers the topic extensively. It's called

To get a foretaste of what you want to achieve take a look at

Perhaps there are (software) servers which support bandwidth control directly!?


Supplement:

share|improve this answer
up vote 1 down vote accepted

I found a way to limit ftp speed:

In the /etc/proftpd.conf insert this line:

TransferRate RETR,STOR,APPE,STOU 2000 

This will limit ftp speed to 2 megabyte per second.

After changing the file you should restart the proftpd service:

/etc/init.d/proftpd restart
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.