-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
abstract_tcp_server2: fix busy calling of idle IO service #3970
Conversation
This would make monerod use 100% CPU when running with torsocks without Tor running
Thanks for looking into this issue. The issue still persists. Tested on Tails with the local Tor proxy with the following command: We have some new/improved info. If you configure iptables to drop monerod traffic to Tor and allow it again monerod will establish new connections with Tor and will have normal cpu use. However if you do a simple restart the of the Tor process monerod won't create new connections to Tor and will keep using 100% of the cpu. |
There's no need to torsocks behind a local transproxy.
Don't play with iptables rules unless you know what you're doing. Flushing and then restarting rules on a local transproxy leaves a potential window for application leaks. If you must, use a sandboxed internal network machine with gateway transproxy. |
Does #3997 help ? |
OK, then run "sudo perf top -p `pidof monerod`" while it's doing this, let it run for 20 seconds, then paste the state. |
Tested on Debian Stretch x64 with PR #3997. Action: stop Tor process
Action: stop Tor process
Action: drop traffic to Tor with iptables
Action: drop traffic to Tor with iptables
Action: run without 'DNS_PUBLIC=tcp', drop traffic to Tor with iptables
Action: run without 'DNS_PUBLIC=tcp', drop traffic to Tor with iptables
|
What command(s) are you using for "drop traffic to Tor with iptables" ? |
1 similar comment
What command(s) are you using for "drop traffic to Tor with iptables" ? |
Well, that patch fixes at least one case so let's add it for now. |
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.
Reviewed
3381b65 abstract_tcp_server2: fix busy calling of idle IO service (moneromooo-monero)
This would make monerod use 100% CPU when running with torsocks
without Tor running