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

QUESTION:Is the files being seeded loaded into the memory? #1343

Closed
hz0324 opened this issue Mar 29, 2018 · 2 comments
Closed

QUESTION:Is the files being seeded loaded into the memory? #1343

hz0324 opened this issue Mar 29, 2018 · 2 comments

Comments

@hz0324
Copy link

@hz0324 hz0324 commented Mar 29, 2018

I wondered, if I seed a file using webTorrent desktop app. Is the file loaded into memory? Or it just need a file path?
Because I want to seed 1000 files, their size can be really big.

@KayleePop

This comment has been minimized.

Copy link
Contributor

@KayleePop KayleePop commented Mar 31, 2018

No, the file is loaded chunk by chunk from the filesystem using fs-chunk-store

Here's the relevant bit of code https://github.com/webtorrent/webtorrent/blob/master/lib/torrent.js#L1088

@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Apr 18, 2018

@hz0324 Even though we don't load the file into memory, it's worth pointing out that seeding 1000 files will likely perform poorly because WebTorrent does not do any kind of resource management. Each torrent instance will just try to use as many resources (connections, CPU, etc.) as it needs. Practically, anything over 10-100 torrents is likely to perform poorly until we fix that.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 17, 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
4 participants
You can’t perform that action at this time.