Table of Contents
Was this article helpful?
Try Vultr Today with

$50 Free on Us!

Want to contribute?

You could earn up to $300 by adding new articles!

How To Limit Download and Upload Speeds on CentOS

Last Updated: Sat, Jul 18, 2015
CentOS Linux Guides Server Apps

As a system administrator, you may encounter times where you need to limit bandwidth on a running process. For example, you're downloading a Linux ISO file and you don't want it to take up all of the server's bandwidth. You may also want to limit speeds while using an FTP utility on the server.

This article explains how to limit bandwidth on CentOS 5/6 using a utility called Trickle.

Step 1: Installing Trickle

Execute the following command as root.

yum install epel-release && yum install trickle

Really, there isn't much to installing this software. Let's get to the uses.

Step 2: Using Trickle

Now that you have Trickle installed, it's time to see what it can do. To start, I'll show you an example of a normal wget download.

trickle -s -d 1000 wget

You may press Ctrl+C after you've seen the speed of the download. In that example, Trickle limited the bandwidth to 1000kb/s (1mb/s). You can adjust the "1000" parameter to fit your needs.

To limit FTP, or anything within a shell session, use the following commands.

trickle -s -d 1000 /bin/bash
ftp <ftphost>

Anything run in that shell session will be limited to 1mb/s. Therefore, FTP would be limited. When you're done, you can type exit on the bash session.


As the examples above show, Trickle makes it very easy to prevent your server from being tied up by bandwidth-heavy processes.

Want to contribute?

You could earn up to $300 by adding new articles