-
Notifications
You must be signed in to change notification settings - Fork 977
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
🐛 BUG: Power consumption/many wake-ups in laptop use case #983
Comments
Hi @inducer - Thanks for the report. I see you're running What kind of traffic is your laptop receiving/sending through Nebula? Each packet Nebula processes is going to incur some overhead!
Powertop isn't a tool that we've used before (for observing Nebula, or otherwise.) Have you compared Nebula against other similar tools (with the same traffic sent/received)? Packet processing does require some processing power and without context, it's hard to say whether the wakeups you're saying are abnormal or not. |
I'll retry with 1.7.2 when I have a chance. It's reasonable that processing packets will cost energy, but in my case, the link was quiescent, i.e. no packets going either direction. I was expecting Nebula to have close to zero cost (in terms of wakeups/power) in that scenario. This matters (to me at least) in that it would allow me to just leave Nebula running in the background and not having to manually turn it off and on whenever power consumption matters. |
Thanks for explaining. Here are some of the jobs that Nebula continues to perform even when no traffic is flowing:
You may consider increasing some of these values to see if it improves your energy performance. Do note that increasing these values may increase the time it takes for a new connection to form or for a failed connection to recover. |
Hi @inducer - I was wondering if you had any updates to share. In October you mentioned you'd re-test with the latest version of Nebula (now v1.8.2). Additionally, I wondered if you had tweaked any of the intervals mentioned, and if it had a positive effect on the numbers you're seeing. Cheers! |
Hi @inducer - I'm still not clear on what a successful outcome for this ticket looks like. Without comparing power consumption to other similar utilities, it's not clear to me that there's excessive power consumption occurring here. And without testing various configurations, I don't know whether it's due to the specific tuning of your config. If you are able to test with some tools similar to Nebula and see a significant difference, please let us know! Additionally, if you test out changing some of those intervals I mentioned, I'd love to hear the results. In the meantime, I'm closing this ticket out for inactivity. |
What version of
nebula
are you using?1.6.1+dfsg-3+b6
What operating system are you using?
Debian Linux
Describe the Bug
When I run a Nebula node (with a quiescent link) on my laptop when running on battery (and while connected to the Internet), it is the number one cause of wake-ups, using to the tune of a half Watt, all according to powertop. (This is on a Raptor Lake Thinkpad, in case it matters.) There are about 60 wakeups per second, which seems kind of excessive. Is there anything that could be done to reduce this number?
Since, according to the examples, laptops are part of the intended use case, this may be an important contribution to making Nebula more usable in that setting.
Logs from affected hosts
No response
Config files from affected hosts
The text was updated successfully, but these errors were encountered: