-
Notifications
You must be signed in to change notification settings - Fork 13
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
Investigate overconsumption of CPU with latest master #287
Comments
instead of "sleeping" before inserting an observable, would be better to attach specific options to each observable that will dictate the behavior ie. when to trigger. In #276 we introduce this topic better and I think that would be the definitive solution. |
Don't ask me why, following this comment Adding this microsecond of sleep in |
On a amazon ec2 the Now with the latest |
@tiero u can check CPU profile by doing as follows:
Another way:
Please find attachment of CPU profile that i did if u dont want to bother. In picture u can see that unblindingUtxo method is 'killing' us, more precisely confidential.UnblindOutputWithKey. |
Closing, altough we may need to lower the depenedency on many cgo calls @altafan |
You can see the change in the CPU consumption just switching from commit
b3965b316a5ed37fe5ff53781dc9db6a254e34b3
to0ab84f87237a1023258401d8e0d168f4ef59bcc9
I tried to "drop" only that commit (ie.
git revert --strategy resolve 0ab84f87237a1023258401d8e0d168f4ef59bcc9
), but every subsequent commit is too tangled to that, so would be better to inverstigate how to make it less expensive.golang/go#27707
https://stackoverflow.com/questions/55367231/golang-for-select-loop-consumes-100-of-cpu
I suspect time.Sleep introdcued in the for loop is not the best strategy here
The text was updated successfully, but these errors were encountered: