![]() If you want to understand more about these problems this article has some good background, although they fixed a real bug in the scheduler here the background will give you the general idea and it's still a problem to some extent if all of those threads/processes are trying to contend on a single shared lock. It would be ideal to have a standard utility or library that would also check that. you may have 12 active cores but only a budget of 4 CPUs worth of CPU time. nproc specifically does not currently check your CFS CPU cgroup quota, i.e. To reiterate, it takes Linux 7.0 Watts to idle with the screen on, something that Macos can do for 3.2 Watts on the same computer.This is 100% a problem I was working on for a customer recently. ![]() With the screen blanked total power usage goes down to 4.5 Watts according to intel_gpu_top 2.3W of this is used by the CPU (and 0 Watts by the GPU). I've found intel_gpu_top what gives some insights about what is going on: GPU is almost idle consuming no energy, CPU is 99.7% idle consuming 3.0 Watts. ![]() brightnessctl set 21Įcho powersupersave > /sys/module/pcie_aspm/parameters/policyĮcho active > /sys/devices/system/cpu/intel_pstate/statusĮcho teo > /sys/devices/system/cpu/cpuidle/current_governorĮcho 1 > /sys/devices/system/cpu/intel_pstate/no_turboĮcho powersave > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governorĮcho powersave > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governorĮcho powersave > /sys/devices/system/cpu/cpu2/cpufreq/scaling_governorĮcho powersave > /sys/devices/system/cpu/cpu3/cpufreq/scaling_governorĮcho power > /sys/devices/system/cpu/cpu0/power/energy_perf_biasĮcho power > /sys/devices/system/cpu/cpu1/power/energy_perf_biasĮcho power > /sys/devices/system/cpu/cpu2/power/energy_perf_biasĮcho power > /sys/devices/system/cpu/cpu3/power/energy_perf_bias Measured on a fairly simplified debian system running sway displaying a terminal. Here's my current powersave script that reduces idle power usage from 9 Watts to 7.0W. I am fine with this and ready to search, ask and make extra steps to achieve low idle power usage) (It is indeed largely eroded as I can use all the devices in the laptop even though the out-of-the-box experience is close but do not reach what macos provided about 8 years ago). On the other hand years passed and this inbalance towards macos should have been eroded. #Proc cpuinfo mac software#I understand that mac software and hardware is very closely tied and information on this is somewhat walled. Idle macos uses 3.2 Watts, while idle Linux uses 8-9 Watts. removing all pci (subsequently usb) devices via sysfs (except vga and host:dram).On linux these did not or marginally lower power usage: Similar measurements on a 4GB 2015 macbook air.Fan makes the same, almost inaudible noise.Tested with two version of macos: mavericks and big sur and 3 linux distros: antix, pop_os, fedora.Power usage is measured running on battery, querying the internal battery for voltage, current, and charge left.Display brightness set to barely visible with auto brightness off, screensaver off. ![]() ![]() Top and powertop shows minimal CPU and no GPU usage.I noticed when I just edit text files in vi running in terminal, the battery runs out about twice as fast on linux. Recently I switched from macos to linux on a mid 2014 8GB retina macbook pro. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |