You are not logged in.

#1 2007-07-19 21:16:10

Davigetto
Member
From: In your mind
Registered: 2007-05-10
Posts: 266

How Can I limit the bandwith of my internet connection on linux?

Hello, I have 2 Pc's, one for my brother, and the other for me. And well, always we have problems about downloads and lags when we are playing.

For example, when I download packages from pacman, it is done at maximum speed "eating" all connection, and my brother has lag.

Is there anyway to limit the bandwith that use my programs to half, for example? If maximum download speed is 100KB/s, pacman only can download 50 KB/s maximum.

Greetings


Only deaths can see the end of battles.

Blog: http://djmartinez.co.cc -> The life of a Computer Engineer

Offline

#2 2007-07-19 21:40:13

tardo
Member
Registered: 2006-07-15
Posts: 526

Re: How Can I limit the bandwith of my internet connection on linux?

wget has a --limit-rate option that you can use (man wget). You can modify the XferCommand in pacman.conf and use that instead. The other option is using iptables which is a painstaking learning process.

Offline

#3 2007-07-20 09:38:25

shinlun
Member
From: Taipei, Taiwan
Registered: 2007-05-16
Posts: 61

Re: How Can I limit the bandwith of my internet connection on linux?

You might be interested in how to use 'tc' (it's in 'iproute' package) and here is a tutorial:
http://www.rns-nis.co.yu/~mps/linux-tc.html

But as tardo stated, the learning curve is pretty steep for users.

Offline

#4 2007-07-20 22:04:23

Martyr
Member
From: Out there
Registered: 2006-10-04
Posts: 103
Website

Re: How Can I limit the bandwith of my internet connection on linux?

There are some tools which can make this proces more easy, but they aren't yet packaged.
I've put up a request tho.

Offline

#5 2007-07-20 22:44:55

tuxing
Member
From: Berlin/Germany
Registered: 2007-06-27
Posts: 34

Re: How Can I limit the bandwith of my internet connection on linux?

@ shinlun

ThankX!

That's really interesting!

Have a nice day!


GNU/Linux is not only another operating system. It is freedom from any point view!

Offline

#6 2007-07-21 01:39:13

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: How Can I limit the bandwith of my internet connection on linux?

Depending on your router you may be able to set Ingress Rate Limit under QoS. Also have a look into trickle: http://aur.archlinux.org/packages.php?d … s=0&SeB=nd

http://monkey.org/~marius/pages/?page=trickle

Last edited by somairotevoli (2007-07-21 01:42:55)

Offline

Board footer

Powered by FluxBB