-
Notifications
You must be signed in to change notification settings - Fork 989
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
Why txhashset download response is so resource heavy #2787
Comments
this could be optimized by #2813 |
@garyyu In addition to CPU and network use, there are disk space use issues. I routinely see my grin server generate many gigabytes of txhashset zip files per hour. Those files are left to fill up the disk. I have resorted to adding a cronjob to clean them up. Ex:
|
@bladedoyle this is fixed in 1.1 |
After taking #2813, I can investigate this issue again. And very interesting new graph of CPU usage vs network traffic: This time, there's no txhashset creating and packaging CPU load (thanks for @cadmuspeverell 's 12 hours The lower the network traffic (remote node downloading the txhashset zip file) speed must lead to a higher CPU load, that's quite strange and doesn't make sense. And considering the recent finding about the Rust In
So, an easy "fix" is to change this Perhaps the perfect fixing solution is to switch from non-blocking stream to blocking stream as in #2855, but that need more discussion and test. Before #2855 got a conclusion, I will write a two-lines PR for this improvement. |
After a fix (changing above Note: Each sharp increasing on the network traffic means a txhashset request from a remote node. And another good point for this |
Closed by #2855 |
Look at this picture, the CPU load during the txhashset downloading (server side) is quite high, we need check if it's reasonable and whether there's any optimization possibility.
The text was updated successfully, but these errors were encountered: