Track tasks and feature requests
Join 40 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprisesCPU bound at high download speeds – need resource management #1026
Comments
This comment has been minimized.
This comment has been minimized.
|
@feross two ideas:
|
This comment has been minimized.
This comment has been minimized.
|
My guess is that the hashing to verify the pieces is the CPU-consuming monster. |
This comment has been minimized.
This comment has been minimized.
|
@dcposch We ought to do both IMO |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@catchstar |
This comment has been minimized.
This comment has been minimized.
|
@sliterok |
This comment has been minimized.
This comment has been minimized.
|
I have the same issue. Can't release memory after remove torrent. |
This comment has been minimized.
This comment has been minimized.
|
Solved, this issue is caused by |
This comment has been minimized.
This comment has been minimized.
|
@crzidea |
This comment has been minimized.
This comment has been minimized.
|
@catchstar No need to set the option to false, just tune the numbers for |
This comment has been minimized.
This comment has been minimized.
|
@crzidea |
This comment has been minimized.
This comment has been minimized.
|
Here is a trace I did back in April for webtorrent-cli. The process becomes so CPU-bound, that the player can't even request more chunks quickly enough for continuous playback, despite webtorrent-cli having already downloaded a big % of the file. Looking at the trace, it looks like |
This comment has been minimized.
This comment has been minimized.
|
subscribing (from #1224 ) What's your DHT tuned option? I'm only using this so far: Streamer.client = new (require('webtorrent'))({
maxConns: 40,
tracker: {
wrtc: false
}
}); |


What version of WebTorrent?
WebTorrent Desktop 0.17.2
What operating system and hardware?
MacOS Sierra
2016 12" Macbook, plugged in
What did you expect to happen?
Download speed limited only by available network bandwidth and peers.
What actually happened?
It looks like WebTorrent is saturating the CPU during fast downloads: