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

Webseed download extremely slow #869

Open
gaobo9109 opened this issue Sep 15, 2023 · 1 comment
Open

Webseed download extremely slow #869

gaobo9109 opened this issue Sep 15, 2023 · 1 comment

Comments

@gaobo9109
Copy link

I am trying to figure out why download using webseed is extremely slow.

When I try to download with tracker enabled, the client will try to download from three seed nodes. The download speed looks normal at this point.

image

However, when I disabled tracker and force the client to download only from webseed url, the speed is very slow.

image

It looks like the client only manages to acquire one to three pieces every second, where as with tracker enabled, the client is able to acquire 100 pieces every second.

I have tried to download the file directly from the server using http request, able to achieve above 100 MB/s download speed, so server latency is not an issue.

Why is there such a drastic difference between downloading from normal seed nodes as compared to webseed?

@anacrolix
Copy link
Owner

The webseeding implementation is not very efficient. It makes small HTTP byte range requests to the webseed endpoints that are not efficient, but structured to shoehorn the webseed client into the same request prioritization algorithm used for regular peers. BEP 19 describes a more efficient way to do this that is not implemented here.

Generally I would advise to use webseeding as a last resort (not many peers, or not all data is available from regular peers) in it's current form.

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

No branches or pull requests

2 participants