我只想设置我的 CPU 的最大频率,它可以从 1.7GHz 到 2.4GHz,我使用了 cpufrequtils 并尝试了“性能”和“用户空间”,但没有用。这是我的 cpufreq-info 输出:
它说 ”硬件限制:768 MHz - 2.40 GHz“但随后它说”当前策略:频率应在 1.70 GHz 和 1.70 GHz 之间。调控器“用户空间”可决定在此范围内使用哪种速度。“所以我不知道该怎么做。我还发现,cpufrequtils 可能无法在我的英特尔 CPU 上使用默认 pstate
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to [email protected], please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 768 MHz - 2.40 GHz
available frequency steps: 2.40 GHz, 2.40 GHz, 2.30 GHz, 2.20 GHz, 2.00 GHz, 1.90 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz, 768 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 1.70 GHz and 1.70 GHz.
The governor "userspace" may decide which speed to use
within this range.
current CPU frequency is 1.70 GHz.
cpufreq stats: 2.40 GHz:0,00%, 2.40 GHz:0,00%, 2.30 GHz:0,00%, 2.20 GHz:0,00%, 2.00 GHz:0,00%, 1.90 GHz:0,00%, 1.70 GHz:31,70%, 1.60 GHz:0,02%, 1.50 GHz:0,00%, 1.40 GHz:0,00%, 1.30 GHz:0,00%, 1.20 GHz:0,00%, 1.10 GHz:0,00%, 900 MHz:0,00%, 800 MHz:0,00%, 768 MHz:68,28% (7)
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 1
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 10.0 us.
hardware limits: 768 MHz - 2.40 GHz
available frequency steps: 2.40 GHz, 2.40 GHz, 2.30 GHz, 2.20 GHz, 2.00 GHz, 1.90 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz, 768 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 768 MHz and 1.70 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 1.70 GHz.
cpufreq stats: 2.40 GHz:0,00%, 2.40 GHz:0,00%, 2.30 GHz:0,00%, 2.20 GHz:0,00%, 2.00 GHz:0,00%, 1.90 GHz:0,00%, 1.70 GHz:99,98%, 1.60 GHz:0,02%, 1.50 GHz:0,00%, 1.40 GHz:0,00%, 1.30 GHz:0,00%, 1.20 GHz:0,00%, 1.10 GHz:0,00%, 900 MHz:0,00%, 800 MHz:0,00%, 768 MHz:0,00% (3)
analyzing CPU 2:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 2
CPUs which need to have their frequency coordinated by software: 2
maximum transition latency: 10.0 us.
hardware limits: 768 MHz - 2.40 GHz
available frequency steps: 2.40 GHz, 2.40 GHz, 2.30 GHz, 2.20 GHz, 2.00 GHz, 1.90 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz, 768 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 768 MHz and 1.70 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 1.70 GHz.
cpufreq stats: 2.40 GHz:0,00%, 2.40 GHz:0,00%, 2.30 GHz:0,00%, 2.20 GHz:0,00%, 2.00 GHz:0,00%, 1.90 GHz:0,00%, 1.70 GHz:99,98%, 1.60 GHz:0,02%, 1.50 GHz:0,00%, 1.40 GHz:0,00%, 1.30 GHz:0,00%, 1.20 GHz:0,00%, 1.10 GHz:0,00%, 900 MHz:0,00%, 800 MHz:0,00%, 768 MHz:0,00% (3)
analyzing CPU 3:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 3
CPUs which need to have their frequency coordinated by software: 3
maximum transition latency: 10.0 us.
hardware limits: 768 MHz - 2.40 GHz
available frequency steps: 2.40 GHz, 2.40 GHz, 2.30 GHz, 2.20 GHz, 2.00 GHz, 1.90 GHz, 1.70 GHz, 1.60 GHz, 1.50 GHz, 1.40 GHz, 1.30 GHz, 1.20 GHz, 1.10 GHz, 900 MHz, 800 MHz, 768 MHz
available cpufreq governors: conservative, ondemand, userspace, powersave, performance
current policy: frequency should be within 768 MHz and 1.70 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 1.70 GHz.
cpufreq stats: 2.40 GHz:0,00%, 2.40 GHz:0,00%, 2.30 GHz:0,00%, 2.20 GHz:0,00%, 2.00 GHz:0,00%, 1.90 GHz:0,00%, 1.70 GHz:99,98%, 1.60 GHz:0,02%, 1.50 GHz:0,00%, 1.40 GHz:0,00%, 1.30 GHz:0,00%, 1.20 GHz:0,00%, 1.10 GHz:0,00%, 900 MHz:0,00%, 800 MHz:0,00%, 768 MHz:0,00% (3)
这是我使用“grep . /sys/devices/system/cpu/cpu*/cpufreq/*”时得到的结果
/sys/devices/system/cpu/cpu0/cpufreq/affected_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/bios_limit:1700000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq:1700000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq:2401000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq:768000
/sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_transition_latency:10000
/sys/devices/system/cpu/cpu0/cpufreq/freqdomain_cpus:0 1 2 3
/sys/devices/system/cpu/cpu0/cpufreq/related_cpus:0
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies:2401000 2400000 2300000 2200000 2000000 1900000 1700000 1600000 1500000 1400000 1300000 1200000 1100000 900000 800000 768000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance
/sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq:1700000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:userspace
/sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq:1700000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq:1700000
/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed:1700000
/sys/devices/system/cpu/cpu1/cpufreq/affected_cpus:1
/sys/devices/system/cpu/cpu1/cpufreq/bios_limit:1700000
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_cur_freq:1700000
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_max_freq:2401000
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_min_freq:768000
/sys/devices/system/cpu/cpu1/cpufreq/cpuinfo_transition_latency:10000
/sys/devices/system/cpu/cpu1/cpufreq/freqdomain_cpus:0 1 2 3
/sys/devices/system/cpu/cpu1/cpufreq/related_cpus:1
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_frequencies:2401000 2400000 2300000 2200000 2000000 1900000 1700000 1600000 1500000 1400000 1300000 1200000 1100000 900000 800000 768000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance
/sys/devices/system/cpu/cpu1/cpufreq/scaling_cur_freq:1700000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu1/cpufreq/scaling_governor:performance
/sys/devices/system/cpu/cpu1/cpufreq/scaling_max_freq:1700000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_min_freq:768000
/sys/devices/system/cpu/cpu1/cpufreq/scaling_setspeed:<unsupported>
/sys/devices/system/cpu/cpu2/cpufreq/affected_cpus:2
/sys/devices/system/cpu/cpu2/cpufreq/bios_limit:1700000
/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_cur_freq:1700000
/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_max_freq:2401000
/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_min_freq:768000
/sys/devices/system/cpu/cpu2/cpufreq/cpuinfo_transition_latency:10000
/sys/devices/system/cpu/cpu2/cpufreq/freqdomain_cpus:0 1 2 3
/sys/devices/system/cpu/cpu2/cpufreq/related_cpus:2
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_frequencies:2401000 2400000 2300000 2200000 2000000 1900000 1700000 1600000 1500000 1400000 1300000 1200000 1100000 900000 800000 768000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance
/sys/devices/system/cpu/cpu2/cpufreq/scaling_cur_freq:1700000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu2/cpufreq/scaling_governor:performance
/sys/devices/system/cpu/cpu2/cpufreq/scaling_max_freq:1700000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_min_freq:768000
/sys/devices/system/cpu/cpu2/cpufreq/scaling_setspeed:<unsupported>
/sys/devices/system/cpu/cpu3/cpufreq/affected_cpus:3
/sys/devices/system/cpu/cpu3/cpufreq/bios_limit:1700000
/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_cur_freq:1700000
/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_max_freq:2401000
/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_min_freq:768000
/sys/devices/system/cpu/cpu3/cpufreq/cpuinfo_transition_latency:10000
/sys/devices/system/cpu/cpu3/cpufreq/freqdomain_cpus:0 1 2 3
/sys/devices/system/cpu/cpu3/cpufreq/related_cpus:3
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_frequencies:2401000 2400000 2300000 2200000 2000000 1900000 1700000 1600000 1500000 1400000 1300000 1200000 1100000 900000 800000 768000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_available_governors:conservative ondemand userspace powersave performance
/sys/devices/system/cpu/cpu3/cpufreq/scaling_cur_freq:1700000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_driver:acpi-cpufreq
/sys/devices/system/cpu/cpu3/cpufreq/scaling_governor:performance
/sys/devices/system/cpu/cpu3/cpufreq/scaling_max_freq:1700000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_min_freq:768000
/sys/devices/system/cpu/cpu3/cpufreq/scaling_setspeed:<unsupported>