12 Mar 2023 |
Rampoina | [rampoina@nixos:~]$ cpupower frequency-info
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: Cannot determine or is not supported.
hardware limits: 800 MHz - 3.90 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 800 MHz and 3.90 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 800 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
[rampoina@nixos:~]$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
powersave
powersave
powersave
powersave
| 16:50:11 |
Rampoina | that doesn't seem right | 16:50:16 |
Rampoina | 800Mhz ? | 16:50:19 |
Rampoina | lol | 16:50:20 |
Rampoina | I did sudo cpupower frequency-set -d 3.9GHz | 16:59:25 |
Rampoina | to set the minimum CPU frequency and now the xruns are gone | 16:59:38 |
Rampoina | for some reason it wasn't letting me set the frequency directly | 16:59:54 |
Rampoina | now the question is how do I configure that | 17:00:04 |
Minijackson | that's really weird | 17:00:19 |
Rampoina | getting xruns at 800Mhz? :P | 17:01:08 |
Minijackson | that I can understand xD | 17:01:29 |
Rampoina | it's like it has some problem with the CPU
[rampoina@nixos:~]$ sudo cpupower frequency-set -f 3.9GHz
Setting cpu: 0
Error setting new values. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not available,
for example because of hardware which cannot be set to a specific frequency
or because the userspace governor isn't loaded?
| 17:03:16 |
Minijackson | setting the performance governor doesn't change the frequency? | 17:03:58 |
Rampoina | well, now it's changed because I set the minimum one but no | 17:07:39 |
Rampoina | In reply to @rampoina:matrix.org
[rampoina@nixos:~]$ cpupower frequency-info
analyzing CPU 0:
driver: intel_pstate
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: Cannot determine or is not supported.
hardware limits: 800 MHz - 3.90 GHz
available cpufreq governors: performance powersave
current policy: frequency should be within 800 MHz and 3.90 GHz.
The governor "powersave" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 800 MHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
[rampoina@nixos:~]$ cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
powersave
powersave
powersave
powersave
you can see here it was set to performance | 17:07:50 |
Rampoina | but the freq was 800 | 17:08:01 |
Rampoina | oh no nvm | 17:08:08 |
Rampoina | it wasn't performance | 17:08:11 |
Rampoina | duh | 17:08:12 |
Rampoina | shouldn't musnix activate that? | 17:08:22 |
Rampoina | I have
musnix.enable = true;
musnix.kernel.realtime = true;
so why wasn't it set to performance :|
| 17:09:52 |
Rampoina | yeah I just rebooted, it's set to powersave | 17:19:36 |
Rampoina | sudo cpupower frequency-set -g performance works | 17:19:43 |
Rampoina | and it changes the frequency | 17:19:48 |
Minijackson | It might be set in your hardware-configuration.nix | 17:20:20 |
| * Rampoina checks | 17:21:18 |
Minijackson | but it's still weird, the powersave governor shouldn't just set the frequency to the minimum 😕 | 17:21:52 |
Rampoina | it definitely is set there | 17:22:05 |
Minijackson | https://github.com/musnix/musnix/blob/0bac3f9b14ac767d81c8b19134fb23e3959b8cef/modules/base.nix#L85 huh | 17:22:58 |
Rampoina | removing the line from hardware-configuration.nix didn't fix it | 17:45:26 |