Discussion:
How to limit download speed in Firefox tab or new Firefox window/instance?
(too old to reply)
a
2017-07-04 17:02:16 UTC
Permalink
Hi.

Linux Mint 17

I want to limit download speed to 500 kbit?
How to do that?

No download managers or anything like that.

I open link in Firefox, resolve the captcha and downoad speed is at max
speed.
Need to slow it down.
How?

Any extensions for this or somehow setup in linux firefox process (pid
limit)?

Thanks!
lifewoutmilk
2017-07-04 17:13:01 UTC
Permalink
Post by a
Hi.
Linux Mint 17
I want to limit download speed to 500 kbit?
How to do that?
No download managers or anything like that.
I open link in Firefox, resolve the captcha and downoad speed is at max
speed.
Need to slow it down.
How?
Any extensions for this or somehow setup in linux firefox process (pid
limit)?
Thanks!
Try wondershaper:

$ sudo wondershaper eth0 500 256

Will give you 500kbit download, 256kbit upload. Change eth0 to your
network device and adjust the values as needed. The caveat is that
wondershaper doesn't seem to work for IPv6.
Marek Novotny
2017-07-04 17:28:17 UTC
Permalink
Post by lifewoutmilk
Post by a
Hi.
Linux Mint 17
I want to limit download speed to 500 kbit?
How to do that?
No download managers or anything like that.
I open link in Firefox, resolve the captcha and downoad speed is at max
speed.
Need to slow it down.
How?
Any extensions for this or somehow setup in linux firefox process (pid
limit)?
Thanks!
$ sudo wondershaper eth0 500 256
Will give you 500kbit download, 256kbit upload. Change eth0 to your
network device and adjust the values as needed. The caveat is that
wondershaper doesn't seem to work for IPv6.
$ sudo wondershaper $5 500 256 <<< $(set -- $(ip route get 8.8.8.8))
--
Marek Novotny
https://github.com/marek-novotny
Paul
2017-07-04 17:38:24 UTC
Permalink
Post by a
Hi.
Linux Mint 17
I want to limit download speed to 500 kbit?
How to do that?
No download managers or anything like that.
I open link in Firefox, resolve the captcha and downoad speed is at max
speed.
Need to slow it down.
How?
Any extensions for this or somehow setup in linux firefox process (pid
limit)?
Thanks!
The trick is, to find any solution, then ask Google for an alternative
to that solution.

"netlimiter for linux"

https://ubuntuforums.org/showthread.php?t=993210

pyshaper

Wonder Shaper

trickle

Now, trickle looks interesting, because there is evidence
here it is an application-level tool. Instead of wget, you
could always try Firefox instead and see what happens.

http://www.ubuntugeek.com/use-bandwidth-shapers-wondershaper-or-trickle-to-limit-internet-connection-speed.html

Paul
a
2017-07-05 01:35:08 UTC
Permalink
Answer to all.

With your solutions all network get that download speed.
I need to limit download speed of just one firefox tab or just one
firefox window.
Other open firefox tabs/windows must work with full download speed.

Is it possible to do this?
Paul
2017-07-05 02:06:51 UTC
Permalink
Post by a
Answer to all.
With your solutions all network get that download speed.
I need to limit download speed of just one firefox tab or just one
firefox window.
Other open firefox tabs/windows must work with full download speed.
Is it possible to do this?
I could see it happening with Firefox for the first download,
Chrome for the second download, Wget for the third download,
Konqueror for the fourth download.

I don't see how policing individual connections within Firefox
would work, unless you can get a plugin for Firefox to do it.

Firefox already has its own internal policy, as to how it should
treat the set of connections fairly. Any time you have four
different downloads happening in Download Manager, take a look
at the bandwidth each connection gets, to see how it's "regulating"
them. There is a policy evident, and it isn't random. You would
be looking for a plugin which could modify that policy, in an
intelligent way.

And I don't know whether Netflix has a way to signal to a browser,
that it needs more of the total link than the other browser activities.
There's this, but I don't know how many applications would know
about it, and what home routers would support it (diffserv , QOS).

https://en.wikipedia.org/wiki/Differentiated_services

There is a crude way of achieving a management objective, just
with the number of connections. The router tries to treat them
round robin. If one computer opens ten connections in parallel
to download a file, and a second computer opens one connection
to do the same thing, the first computer gets 10/11 of the
link, and the second computer gets 1/11 of the link. I've already
experienced this here on my router, where one stupid program does
that, and virtually freezes out all the other computers. I can't
do a damn thing until it finishes.

But opening an arbitrary number of connections in parallel, is not
a feature every protocol or program has. Some will not have the
protocol features to do that.

I think I may have used wget once, on purpose, to "boost" the
priority of a certain download. A web site was giving me 60KB/sec,
and I did the math and figured out eight connections would max
the link, and the site I was downloading from, let me open those
eight connections. And it "maxxed" my link at the time (low end ADSL).

I thought it was pretty crazy for that server to set such a
low bandwidth per connection (it was using "regulated" connections),
yet allow users to open an arbitrary number of connections in parallel.
I didn't try setting a larger number of connections in parallel,
because I was pretty darn happy at the time, to cut my download
time by a factor of eight. This was the first time I'd ever
seen a browser tell me it would take "more than 24 hours" to do
the download I wanted. And by running eight connections in parallel
to download one file (using Wget instead of Firefox), the time
dropped to only three hours or so.

And you could do that with, say, two copies of wget. Open N connections
with one copy, open M connections with the other, and achieve an
unequal effective download speed for each one. However, there would be
absolutely no desirable balance with respect to any other program. If
you ran Firefox at that point, surfing would be dog slow, with Firefox
only getting 1/(1+N+M) of the link. I'm only mentioning that method
for the sake of completeness. It's not a practical method.

Paul
Kirk_Von_Rockstein
2017-07-05 16:59:58 UTC
Permalink
Post by a
Answer to all.
With your solutions all network get that download speed.
I need to limit download speed of just one firefox tab or just one
firefox window.
Other open firefox tabs/windows must work with full download speed.
Is it possible to do this?
Yes.

Install Flashgot addon
https://addons.mozilla.org/en-US/firefox/addon/flashgot/

Install fatrat downloader
apt-get update;apt-get install fatrat fatrat-data

Confiure Flashgot to use FatRat as downloader.
You can then set download/up speed per each individual
download via fatrat.

Loading...