找不到“/sys/devices/system/cpu/sched_mc_power_savings”

找不到“/sys/devices/system/cpu/sched_mc_power_savings”

我目前正在使用 Ubuntu 12.04 x64。许多有关 Linux 省电的手册都提到了使用参数/sys/devices/system/cpu/sched_mc_power_savings/sys/devices/system/cpu/sched_smt_power_savings,但它们在我的操作系统中并不存在。这与 3.X 内核改进有关吗?在 Ubuntu 12.04 上是否有类似的方法在省电模式下启用 CPU 调度?

答案1

这很奇怪——sched_mc_power_savings 似乎存在于我的系统中。我正在运行 12.04 x64,相当原始的安装。您的 /sys/devices/system/cpu 目录的内容是什么?我的目录如下所示:

mike@cobbler:~$ ls -la /sys/devices/system/cpu/
total 0
drwxr-xr-x 6 root root    0 Aug  5 15:21 .
drwxr-xr-x 7 root root    0 Aug  5 15:21 ..
drwxr-xr-x 6 root root    0 Aug  5 15:21 cpu0
drwxr-xr-x 6 root root    0 Aug  5 15:21 cpu1
drwxr-xr-x 3 root root    0 Aug  5 15:21 cpufreq
drwxr-xr-x 2 root root    0 Aug  5 15:21 cpuidle
-r--r--r-- 1 root root 4096 Aug  5 17:04 kernel_max
-r--r--r-- 1 root root 4096 Aug  5 17:04 offline
-r--r--r-- 1 root root 4096 Aug  5 15:21 online
-r--r--r-- 1 root root 4096 Aug  5 17:04 possible
-r--r--r-- 1 root root 4096 Aug  5 15:36 present
--w------- 1 root root 4096 Aug  5 17:04 probe
--w------- 1 root root 4096 Aug  5 17:04 release
-rw-r--r-- 1 root root 4096 Aug  5 15:21 sched_mc_power_savings

相关内容