Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: can i reserve bandwidth to certain programs?

  1. #1
    Join Date
    May 2009
    Location
    Mumbai, India
    Beans
    491
    Distro
    Ubuntu 11.04 Natty Narwhal

    can i reserve bandwidth to certain programs?

    I have a relatively slow Internet connection. I get around 55 kb/s speeds. When i am updating, which usually takes an hour or mostly two hours, i cannot do anything on the internet. Firefox loads webpages slowly. Apparently, update uses all the 55 kb/s to download. So my question is can i restrict certain programs on internet usage? A kind of speed limit.. I am willing to wait 2-3 hours for the update to finish rather than waiting an hour doing nothing.
    There and back again...

  2. #2
    Join Date
    Jun 2006
    Location
    Nux Jam
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: can i reserve bandwidth to certain programs?

    when you says: very slow, do you mean your provider link is bad ? or is it due to your hardware ? how are you connected ?

    if your provider is not performant, try other dns like opendns and make change into /etc/hosts

    if you cant have better services, well its your own time organization that can be better: i.e. maybe testing is not ideal for you, download when you have nothing else to do with your system.

  3. #3
    Join Date
    Sep 2009
    Beans
    1,293

    Re: can i reserve bandwidth to certain programs?

    i think trickle and iprelay in the repositories do this sort of thing, there may be others in there too

  4. #4
    Join Date
    May 2009
    Location
    Mumbai, India
    Beans
    491
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: can i reserve bandwidth to certain programs?

    Quote Originally Posted by dino99 View Post
    when you says: very slow, do you mean your provider link is bad ? or is it due to your hardware ? how are you connected ?

    if your provider is not performant, try other dns like opendns and make change into /etc/hosts

    if you cant have better services, well its your own time organization that can be better: i.e. maybe testing is not ideal for you, download when you have nothing else to do with your system.
    i'll try to look more into this.

    Quote Originally Posted by SevenMachines View Post
    i think trickle and iprelay in the repositories do this sort of thing, there may be others in there too
    will try. do you know how to make them work?
    There and back again...

  5. #5
    Join Date
    Sep 2009
    Beans
    1,293

    Re: can i reserve bandwidth to certain programs?

    Quote Originally Posted by rahilm View Post
    will try. do you know how to make them work?
    sorry, no. i used trickle a few years back looking at the manpages and documentation in /usr/share/doc/<package> (probably). don't think it was too tricky but i really cant remember. there may be some tutorial/howtos out there, i dont know

  6. #6
    Join Date
    Jan 2009
    Location
    Buenos Aires, Argentina
    Beans
    669

    Re: can i reserve bandwidth to certain programs?


  7. #7
    Join Date
    May 2009
    Location
    Mumbai, India
    Beans
    491
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: can i reserve bandwidth to certain programs?

    Quote Originally Posted by alfplayer View Post
    thanks. i will definitely try it when i get my hard drive back.. and when i update again..
    does this work only for apt-get?
    There and back again...

  8. #8
    Join Date
    Jan 2009
    Location
    Buenos Aires, Argentina
    Beans
    669

    Re: can i reserve bandwidth to certain programs?

    Quote Originally Posted by rahilm View Post
    thanks. i will definitely try it when i get my hard drive back.. and when i update again..
    does this work only for apt-get?
    "... is available whether you use Synaptic, the update manager, or apt-get (aptitude) through the command line interface."

  9. #9
    Join Date
    May 2009
    Location
    Mumbai, India
    Beans
    491
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: can i reserve bandwidth to certain programs?

    thnx.. it works.. it seems my question is partially solved..
    There and back again...

  10. #10
    Join Date
    Jan 2008
    Location
    Manchester UK
    Beans
    13,573
    Distro
    Ubuntu

    Re: can i reserve bandwidth to certain programs?

    When downloading large files use wget and limit the speed
    Code:
    wget --limit-rate=10k http://somewebsite.org/somebigfile.ext
    It`s pretty self explanitory, that will limit the download sppeed to 20 kb/s, choose what ever number you like.

    If you find you need your full bandwith for something else, stop wget, then restart it later on with the -c option

    Code:
    wget -c --limit-rate=10k http://somewebsite.org/somebigfile.ext
    There are loads of options

    Code:
    man wget

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •