-
Notifications
You must be signed in to change notification settings - Fork 30
restrictSize performance issue #205
Comments
attaching 2 lodestar profiles above
|
@wemeetagain you're right, I wrote a benchmark and there's no different with or without the |
reopening the issue, I disabled "async stack trace" and it still shows 4% of cpu time is used for restrictSize Detail No async hook there @wemeetagain The version used in lodestar is @libp2p/mplex@5.2.4 |
Triage notes: probably a side effect of not queuing up messages (which needs to be fixed). |
Not sure about this - |
What happens when you expand the tree all the way down? From what I can see |
I've refactored I don't think it's going to change the amount of CPU usage significantly as we're still doing the same operations so it might be worth re-running the benchmark after that PR is merged. |
This has been shipped now - could you please re-run the benchmarks with |
@tuyennhv Please re-run the benchmarks when you get a chance 🙏 |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days. |
@tuyennhv will you have time to re-run these benchmarks soon? |
sorry I missed this, this was found during profiling a lodestar node. There's a work-in-progress to upgrade libp2p ChainSafe/lodestar#4717 , will double check there |
Oops, seems like we needed more information for this issue, please comment with more details or this issue will be closed in 7 days. |
This issue was closed because it is missing author input. |
Description
restrictSize()
in libp2p-mplex@0.10.5 has taken 5% of cpu time in lodestarrestrictSize()
even took more than 11% of cpu timeThe text was updated successfully, but these errors were encountered: