Searching for Tao

Limiting Bandwidth in Gentoo

My office isn't so much a web shop as a investment banking training company that doesn't really use the internet locally. As a result, we have corporate DSL of questionable quality from KPN and whenever I do a software update (like the big one today that pushed KDE to 4.6.2) the few people in the office using the internet get upset. So I poked around looking for options for limiting bandwidth in Gentoo's Portage system.

Most of what I found were dead links to the old Gentoo Wiki, and the one link I found had stale/inaccurate information so I thought that I'd post something here in the hopes that one day it will be useful to someone.

To limit Portage's bandwidth usage to 50K/s just add these lines to make.conf:

FETCHCOMMAND="/usr/bin/wget -t 5 --limit-rate=50k \${URI} --output-document=\${DISTDIR}/\${FILE}"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --limit-rate=50k \${URI} --output-document=\${DISTDIR}/\${FILE}"
PORTAGE_RSYNC_EXTRA_OPTS="--bwlimit=50"

Random Favourites

Most Commented

Tags

Activism Advertising Agriculture Amsterdam Anarchy Animals Anime Appnovation Art Atheism Blasphemy Bloc Québécois Blogger British Columbia Broadway Canada Capitalism Career CBC CCTV Charity Christians Chrystal Cities Civil Rights Climate Change Coalition Code Snippets Communism Conservatives Consumerism Copyright Corporations Costumes Creative Commons Culture Cycling Death Democracy Diplomacy Django Dreams Dream Vancouver Drupal Economy Emily-Jane Energy Environment Ethics Facebook Family Food Free Software Friends Fun Stuff Gentoo Linux George Bush Germany Graffiti Green Party Hacking Health Health Care Homelessness Ideas Imager Iraq Israel Italy Japan Javascript Job Hunting KDE Korea Language Learning Liberals Linux Maps Marketing Media Melanie Memes Moments In Time Money Movies Moving Multiculturalism Munich Municipal Collective My Future Nationalism NDP Netherlands Net Neutrality New Mind Space Noreen Nuclear Olympics Oxyor/Marketsims Passing Thoughts Patents Perl Photography PHP Police Politics Prejudice Primus Privacy Programming Protests Provincial Campaign 2009 Public Space Published Python Racism Recipes Reinvent Religion Riptown 'Round-the-World Rydium Scams Science and Nature Scrubby Seattle Self Development Self Reflection Sex Socialism Software Solitude Sovereignty SSH Star Trek Stephanie Stephen Harper Street Furniture Stress Stupid People STV Suburbia Susan Switzerland Technology TED Television Terrorism The Arts TheChange.com The Economy The Toronto Public Space Committee The United States Toronto Transit Translink Travel Twitter Unemployment Urban Design Utrecht Vancouver Vancouver Public Space Network Violence War Weather Web Development Who Am I Wikipedia Windows Women Wordpress Work [at] Play Writing

Twitter Feed

Support Wikipedia