Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13305 - WISH: Limit download rate option in the emerge command
Summary: WISH: Limit download rate option in the emerge command
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs-user
Classification: Unclassified
Component: Portage User Guide (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-05 11:38 UTC by Edulix
Modified: 2003-05-22 10:15 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edulix 2003-01-05 11:38:05 UTC
Hello guys!

  I'm using a shared internet connection and sometimes when I wants to download
a file with portage there' other people connected to internet in my intranet,
and I don't want to ralentize them. So I have to change in /etc/make.globals the
wget command. But sometimes I'd like to use the whole connection for me, and I
have to change one more time the FETCHCOMMAND.

  I think there' more people that would like an option in the emerge command
that limit the use of the connection. Wget have this option (wget
-limit-rate=20k http://way.com/to/the/file.extension, for example), and I think
other download managers have this option too.

 So, I wish a emerge command like the wget one, it could look like "emerge 
-speed-limit=20k".

  The code will see if the actual download manager support the limit-rate option
with a list of downloader managers that yes, and, if the limit-rate isn't
already in the fetchcommand. If both are true, the function add temporaly the
correct option to the fetchcommand, for example. This isn't very serious, and it
could be only a patch. A more elaborate and serious way,could be to limit the
rate without the options of the download manager, but I don't know nothing about
how to do this.

  So, what do you thing about this ??

  See you and appologies for my bad english,

Happy 2003!
Comment 1 SpanKY gentoo-dev 2003-01-08 15:36:48 UTC
FETCHCOMMAND in /etc/make.{conf,globals} takes care of this ...
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-01-08 15:43:01 UTC
docs-team: maybe you could add this into faq
Comment 3 Edulix 2003-01-10 08:27:04 UTC
I know that fetchcommand take care of this and I have mentioned it in the post,
 I was searching something more.
Comment 4 Nicholas Jones (RETIRED) gentoo-dev 2003-02-22 11:23:43 UTC
No. Do it in make.conf.
Comment 5 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-02-23 00:48:19 UTC
i think we should at least update make.conf to include the following (just before the "# Lukemftp..." line). this way, users will know how they can rate-limit downloads:

# Default fetch command (5 tries, passive ftp for firewall compatibility)
#FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp \${URI} -P \${DISTDIR}"
#RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp \${URI} -P \${DISTDIR}"
#
# Using wget, ratelimiting downloads
#FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp \${URI} -P \${DISTDIR}"
#RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp --limit-rate=200k \${URI} -P \${DISTDIR}"

carpaski: if not, reassign the bug to me and i'll add it to the faq.


Comment 6 Nicholas Jones (RETIRED) gentoo-dev 2003-02-23 02:37:43 UTC
Added to cvs.
rajiv: You should probably add it to the faq anyway.
Comment 7 Rajiv Aaron Manglani (RETIRED) gentoo-dev 2003-05-21 02:39:41 UTC
a little note about this needs to be added to the portage guide.
Comment 8 Sven Vermeulen (RETIRED) gentoo-dev 2003-05-21 03:06:11 UTC
I'll add a chapter to the Portage User Guide (portage-user.xml) which talks about changing portage's behaviour. I will only mention these things briefly by giving an overview of the variables, what they stand for and with some small examples (such as the download rate for FETCHCOMMAND). For more in-depth information on Portage, the user is always welcome to read the Portage Manual (portage-manual.xml).
Comment 9 Sven Vermeulen (RETIRED) gentoo-dev 2003-05-22 10:15:58 UTC
Note added. Closing bug.