I’ve been using the following for about a year now:
sudo systemctl stop docker containerd
sudo ip link del dev docker0 2>/dev/null || true
Also not helped is I think the docker crowd never got the memo about dynticks. Even when completely idle and with no containers running, its daemons just wakeup the kernel ~100hz; probably just someone not understanding an idle loop can actually be idle with a bit of work.
This sounds like a great blog post.
Other than lobbying folks they should make strace part of their tooling (alongside gdb, tcpdump, …) the hard part is persuading them why they should care in face of all the other problems they are tackling.
Besides, I would need to get a blog on which to post such material and grumpysysadmin.com seems to already be taken. :)
Or maybe just gist or self post. Exposing the problem and showing how to measure it can go a long way, your post need not be exhaustive. Change is very slow with humans. Reducing the idle load is a noble goal.
What else needs to be said about it?
Not sure but I’ve disabled docker autostart since a long time ( sudo systemctl disable docker ) and can’t find any docker0 device in ifconfig upon bootup.
Edit: Retried it, works.
If you disable auto-start from docker daemon you won’t have a docker0 device.
You can get docker (and also the docker0 device) back via sudo systemctl start docker
I own a number of thinkpads, also have a bench power supply than can source 5a @ 20v, so I can do some analysis next week by removing the battery and looking at the current consumption under various configurations and workloads.
The power management system on modern laptops should be able track power usage with a fairly fine granularity.
yes, actual measurement would be much more helpful than my anecdata. Although, even if I’ve just enabled more accurate estimate reporting, I’ll take it.
I don’t have a thinkpad any more, but won’t most modern laptops’ battery management system give you a measurement of battery current draw when they’re disconnected from a charger? On my current Dell it’s at /sys/class/power_supply/BAT0/current_now. PowerTop shows this metric as well, I think.
I would expect this could be as accurate as measuring the average draw with a bench supply, if not more accurate (the BMS needs a reasonably accurate measurement of battery discharge current for “gas gauge” state of charge estimation.)
I’ll take a look the next time I boot up my x220, I had planned on removing the battery and only operate it off the bench supply so load wouldn’t be conflated with any power going directly to charging.
Yeah, I got that - it’s a good idea, I just thought this option might also be useful to know about (has the similar-but-opposite problem that the battery’s internal current meter is not useful if external power is connected to the battery).
I think there’s something else going on.
I’ve had this same problem, used the same solution, and several extra watts moved to some other device or task. After doing this repeatedly, I’ve seen the screen or sometimes the Ethernet claim to use four watts. The power usage is still there, but moves.
I’ve seen this on four Thinkpad models I own. Either powertop is confused or something is masquerading as another device or process.
Maybe the Intel management engine is mining Bitcoin?
heh. The accounting is definitely obscure, but the reported drain drop for me is consistent. Early days though.
My newer linux systems use ip and ifconfig docker0 down doesn’t change anything. What’s the equivalent command with ip ?
ifconfig docker0 down
ip link set down docker0 i think
ip link set down docker0