Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upWebtorrent freezes with high speeds #1142
Comments
This comment has been minimized.
This comment has been minimized.
|
Are you using WebTorrent Desktop? If so, please open an issue in its repository. |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
i can confirm that too , i seeded from a windows server vm with a 1gb/s net big buck bunny Utorrent : 50 secornds to complite . *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 |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
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.... |
This comment has been minimized.
This comment has been minimized.
|
Average download speed 7142826.576713005 |
This comment has been minimized.
This comment has been minimized.
|
This happens when using webtorrent from nodejs as well. My download is stuck at:
|
This comment has been minimized.
This comment has been minimized.
|
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 |
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