-
Notifications
You must be signed in to change notification settings - Fork 176
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
Set default DHT num_workers = 4 #342
Conversation
Co-authored-by: justheuristic <[email protected]> Co-authored-by: Denis Mazur <[email protected]>
Codecov Report
@@ Coverage Diff @@
## master #342 +/- ##
==========================================
- Coverage 83.27% 83.13% -0.15%
==========================================
Files 66 66
Lines 5974 5976 +2
==========================================
- Hits 4975 4968 -7
- Misses 999 1008 +9
|
@deniskamazur Thanks for the measurements! Can I ask you to:
for i in {4..16}; do pkill -f p2pd && HIVEMIND_DHT_NUM_WORKERS="$i" python benchmark_dht.py <params>; done
|
Already discussed with @deniskamazur
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😎
Co-authored-by: Max Ryabinin <[email protected]>
This change seems to speed up (a) DHT get requests by 3.6x and (b) DHT creation by 1.2x (probably due to speeding up the communication with initial nodes).
benchmark_dht.py
nora, this PR, max_workers = 8:
nora, master (fb48133, see #318), max_workers = 1: