Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webtorrent freezes with high speeds #1142

Closed
Deenoking opened this issue Jun 7, 2017 · 8 comments
Closed

Webtorrent freezes with high speeds #1142

Deenoking opened this issue Jun 7, 2017 · 8 comments
Labels

Comments

@Deenoking
Copy link

@Deenoking Deenoking commented Jun 7, 2017

What version of WebTorrent?
0.18.0

What operating system and Node.js version?
Windows 10 (64bit)

What browser and version? (if using WebTorrent in the browser)
Google Chrome

What did you expect to happen?
Download to complete

What actually happened?
Downloading a few torrents at the moment but for some reason the down speed goes insanely high (78Mbs etc.) and then my torrent stays like that with no progress

@DiegoRBaquero

This comment has been minimized.

Copy link
Member

@DiegoRBaquero DiegoRBaquero commented Jun 7, 2017

Are you using WebTorrent Desktop? If so, please open an issue in its repository.

@paulhobbel

This comment has been minimized.

Copy link

@paulhobbel paulhobbel commented Jun 11, 2017

I can confirm that when the download speed goes over 10MB/s the download speed drops to around 20kb/s and will stay there. I have tested this with both webtorrent and webtorrent-hybrid.

@CallMeRev

This comment has been minimized.

Copy link

@CallMeRev CallMeRev commented Jun 16, 2017

i can confirm that too , i seeded from a windows server vm with a 1gb/s net big buck bunny
and used this on a diffrent box on again a windows server vm .
I used a counter to mesure how long it would take for the webtorrent to download the file and on that server i installed utorrent and did the same test again .

Utorrent : 50 secornds to complite .
WebTorrent : 1 minute and 30 seconds .

*webtorrent seems to get stable arrount 1.5 mb download speed and it has some very tempory "speed boosts" that go to the actuall seeding upload speed but that only last 1-2 seconds , then it drops again to 1-1.5.mb

@multimedialstudio

This comment has been minimized.

Copy link

@multimedialstudio multimedialstudio commented Jun 20, 2017

I can confirm speed drop.

Tested on Ubuntu Linux 16,Google Chrome latest. Performed an lo0 interface test in order to isolate the problem from network connection.

Opened several Chrome incognito windows, seeding and peering. Download speed ramped up to 12 MBps (which should be equivalent to the 100 Mbps speed of lo0) then fell to 1-2 MBps and stable, with very temporary "speed boosts" up to 7-8 MBps for 1-2 seconds, then again back to 1-2 MBps.

I would suggest others repeat the local test on different systems in order to assess if the issue is browser and/or OS dependant.

@andreapaiola

This comment has been minimized.

Copy link
Contributor

@andreapaiola andreapaiola commented Jul 2, 2017

I'm testing the average download speed with a big file (Ubuntu ISO) which I find more interesting...

https://github.com/andreapaiola/P2P-CDN/blob/master/P2p-Cdn.js#L128

https://github.com/andreapaiola/P2P-CDN/blob/master/examples/big.php

Average download speed 7734624.712501531

Average download speed 8729442.606295217

Sure, it's CPU intensive :D sorry I'm testing locally because I don't have much space on the server....

@andreapaiola

This comment has been minimized.

Copy link
Contributor

@andreapaiola andreapaiola commented Jul 2, 2017

Average download speed 7142826.576713005
Average download speed 7110193.8568471735
Average download speed 6590948.408349137
(also memory intensive)

@kmoe

This comment has been minimized.

Copy link

@kmoe kmoe commented Sep 17, 2017

This happens when using webtorrent from nodejs as well. My download is stuck at:

info: download speed: 419430.4
info: progress: 0.9794758739306746
info: just downloaded:  524288
info: total downloaded: 50041346
info: download speed: 314572.8
info: progress: 0.9794758739306746
info: just downloaded:  524288
info: total downloaded: 50041346
info: download speed: 419430.4
info: progress: 0.9794758739306746
info: just downloaded:  524288
info: total downloaded: 50041346
info: download speed: 419430.4
info: progress: 0.9794758739306746
info: just downloaded:  524288
info: total downloaded: 50041346
info: download speed: 419430.4
info: progress: 0.9794758739306746
info: just downloaded:  524288
info: total downloaded: 50041346
info: download speed: 419430.4
info: progress: 0.9794758739306746
info: just downloaded:  524288
info: total downloaded: 50041346
info: download speed: 314572.8
info: progress: 0.9794758739306746
info: just downloaded:  524288
info: total downloaded: 50041346
info: download speed: 419430.4
info: progress: 0.9794758739306746
info: just downloaded:  524288
info: total downloaded: 50041346
info: download speed: 104857.6
info: progress: 0.9794758739306746
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented May 4, 2018

I've also noticed this jumpy download speed behavior from time-to-time. My guess is that we're downloading too fast for WebTorrent to handle processing the data (we're doing something inefficient somewhere). This spikes the CPU to 100% during which time we're blocked and not acknowledging data from peers, so they lower their speeds.

This "slowing down" response from peers could be happening at the TCP level (we don't support uTP yet) or it could be at the protocol level (we're not acknowledging the received pieces quickly when we're blocked)

Duplicate: #810

@feross feross closed this May 4, 2018
@webtorrent webtorrent deleted a comment from stale bot May 4, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Aug 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.