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

Upload speed #58

Closed
sunilrx opened this issue Jan 17, 2017 · 10 comments
Closed

Upload speed #58

sunilrx opened this issue Jan 17, 2017 · 10 comments

Comments

@sunilrx
Copy link

sunilrx commented Jan 17, 2017

Hi,
While executing js code
client.add(torrentId,{ path: '/path'}, function (torrent) {
var upload_interval = setInterval(function () {
console.log('Upload Speed: ' + torrent.uploadSpeed);
}, 5000);
})
is there any way to manage(increase) the upload speed?

@sunilrx sunilrx changed the title Seeding speed Upload speed Jan 17, 2017
@DiegoRBaquero
Copy link
Member

In theory, it should max out the uplink.

@sunilrx
Copy link
Author

sunilrx commented Jan 17, 2017

Hi DiegoRBaquero,

But for me its very rarely touches 2 to 3MB/s, in most other case upload speed is less than 100KB/s

hoping for a solution.

@DiegoRBaquero
Copy link
Member

Are you seeding locally (same computer)? in the LAN? Internet?

Can you show me results from http://www.speedtest.net/?

@sunilrx
Copy link
Author

sunilrx commented Jan 18, 2017

I am running the above as js in a Debian server.

@feross
Copy link
Member

feross commented Jan 18, 2017

@sunilrx This is most likely an issue with your connection, or with your server's disk speed. Can you test your server speed using speedtest.net or https://www.npmjs.com/package/fast-cli ?

@brambox
Copy link

brambox commented Apr 6, 2020

There is no such thing as the maxing connection speed with the webrtc.
The seeding over Webrtc using webtorrent taxes, insane CPU resources and the faster network speed the more CPU it will use. Eventually Nodejs or something is limiting it. It will rarely go over 20 Mbit.

The crazy CPU usage has been issue since day one and still there is no fix and this is the main reason why webtorrent has not become anything big.
Well there is always a hope someone will find a way!

@jumpersdevice
Copy link

jumpersdevice commented Apr 17, 2020

@brambox Hi,

EDIT: there seems to have a limitation around 2/3Mbit (200-300kb/s) per peer when seeding, no matter if using desktop app or webtorrent-hybrid cli. I also tried this browser to browser and the speed limit was still there. The weird thing is when i try this within my LAN, it does max the uplink.

@feross @DiegoRBaquero any comment about this, what it might be happening here or where to look ?

my fast-cli speed was 500mbps so the issue isn't there.

I will keep testing and commenting.

Thanks for this wonderful piece of software. I really appreciate it guys.

Nicolas

@jumpersdevice
Copy link

Did a little more testing today, fired up serveral instances of webtorrent-hybrid seeding the same torrent on the same computer and speed increased dramatically when requesting it from browser. It certainly looks like some kind of limitation now.

@feross
Copy link
Member

feross commented Nov 19, 2020

fired up serveral instances of webtorrent-hybrid seeding the same torrent on the same computer and speed increased dramatically when requesting it from browser

I think this is because the wrtc implementation is different from browser implementations -- currently it's following Chrome M81 -- and it's not quite the same quality, much as the maintainers there try. It's really hard to work with libwebrtc.

Perhaps we can try testing another webrtc implementation that has Node.js bindings. Does anyone have suggestions?

@github-actions
Copy link

github-actions bot commented Feb 3, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants