-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
panic upload rate limiter #759
Comments
it may happen when not enough RAM |
Thank you, I believe I know the cause and fix for this. It's triggered by performance increases in uploads in v1.45.0. You can use the previous version temporarily until I add the fix. |
I didn't realise you were using v1.44.0 and seeing this. Is that correct? |
Could you check Line 51 in fd8995d
Line 1007 in 32cdaf4
|
I'm working on some tests and fixes for this. |
After fix, I see much
and
My settings (and settings of previous versions):
Means requested chunk |
Are you setting ChunkSize anywhere, to anything other than the default? Are both uploader and downloader running erigon? It seems like you have the chunk size set to the piece length, which probably isn't what you want to do. |
Yeah I can see that is what's happening: https://github.com/ledgerwatch/erigon/search?q=DefaultNetworkChunkSize. I recommend leaving the ChunkSize alone unless you know that it improves performance to go higher (and even then you will likely go up doubling each time and only sparingly). |
Yes, i set to all torrents chinkSize to DefaultNetworkChunkSize. Actually I wan’t increase even further: chunkSize to 2*pieceSize My target: reduce amount of random reads from seeder, reduce amount of network requests. Soon we will serve 300 files ~1tb total |
Reducing random reads seems like a reasonable reason. In that case, maybe try setting your chunk size to something that minimizes overlap in files, and is reasonably large. Note that large chunks reduce responsitivity in the protocol, control and data messages share the same stream. |
Do I need to do something about #759 (comment) |
I don't think there's anything actionable there: I suspect you have some clients that have burst sizes taht are smaller than your other clients chunk sizes (maybe old ones?). You could change the log level to something lower, but I'm not sure how you can get that message if all your clients are set up correctly. Let me know if there's some way I can reproduce it more accurately. |
trace:
my upload burst:
4 * 1024 * 1024
another similar panic:
The text was updated successfully, but these errors were encountered: