Open deifactor opened 3 years ago
I definitely think this should be addressed by TLP changing their defaults and not by us.
We already override the default if config.powerManagement.cpuFreqGovernor
is set (#94064):
which it is if you ran nixos-generate-config.pl
in 17.03 or later (#21423):
Hmm. I wonder if it's reasonable to somehow detect if the CPU is too old and warn the user "hey, this is going to cause very bad performance issues, this is probably not what you want". I don't know how actual Nix maintainers feel, but IMO enabling the default should Just Work, even if that means not doing what upstream does.
@andersk Yeah, I had to make that change in my hardware config too. I don't remember what it was set to on machine init, but I remember I changed it to powersave at some point.
I didn't look around much to verify this, but according to the Arch wiki, CPUs using acpi-cpufreq
driver should default to schedutil
since 5.10. I don't think this is just an upstream issue, and it is going to cause a lot of pain when NixOS 21.05 releases.
I saw this got added to 21.05, but that's already out. Any update on this?
No one is actively working on this. PRs are welcome. I will review and merge a fix if someone has the time to write one.
Is there anything actionable here?
Describe the bug I don't fully understand the details, but according to this reddit comment, the
powersave
scheduler on kernels 5.8+ on a CPU without hardware p-states will always leave the CPU at its minimum clock rate. I haven't confirmed this by looking at the current CPU frequency directly , but I did confirm that switching back to 5.4 fixed the massive performance regression I noticed, as did theintel_pstate=active
fix on 5.10.IMO this should be prevented, though I'm not sure if it's through modifying the upstream TLP config on newer kernels or what.
To Reproduce Steps to reproduce the behavior:
Notify maintainers
@abbradar @lovesegfault
Metadata Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 5.10.29, NixOS, 21.05pre283151.e5cc06a1e80 (Okapi)
yes
yes
nix-env (Nix) 2.3.10
"nixos-21.05pre283151.e5cc06a1e80, home-manager"
""
/nix/var/nix/profiles/per-user/root/channels/nixos
Maintainer information: