虚拟为啥没有/sys/devices/system/cpu/cpufreq节点

YYQSH 2020-01-17 02:19:19


发现虚拟机里面没有cpufreq节点,这是为啥呢?
在虚拟机里面有这么查看cpu频率呀?

[root@VM_0_4_centos cpu]# ll /sys/devices/system/cpu/
total 0
drwxr-xr-x 5 root root 0 Jan 17 14:14 cpu0
drwxr-xr-x 2 root root 0 Jan 17 14:14 cpuidle
-r--r--r-- 1 root root 4096 Jan 17 14:14 isolated
-r--r--r-- 1 root root 4096 Jan 17 14:14 kernel_max
-r--r--r-- 1 root root 4096 Jan 17 14:14 modalias
-r--r--r-- 1 root root 4096 Jan 17 14:14 nohz_full
-r--r--r-- 1 root root 4096 Jan 17 14:14 offline
-r--r--r-- 1 root root 4096 Jan 17 14:14 online
-r--r--r-- 1 root root 4096 Jan 17 14:14 possible
drwxr-xr-x 2 root root 0 Jan 17 14:14 power
-r--r--r-- 1 root root 4096 Jan 17 14:14 present
drwxr-xr-x 2 root root 0 Jan 17 14:14 smt
-rw-r--r-- 1 root root 4096 Jan 17 14:14 uevent
drwxr-xr-x 2 root root 0 Jan 17 14:14 vulnerabilities
[root@VM_0_4_centos cpu]# ll /sys/devices/system/cpu/cpu0/
total 0
drwxr-xr-x 5 root root 0 Dec 25 18:27 cache
-r-------- 1 root root 4096 Jan 17 14:15 crash_notes
-r-------- 1 root root 4096 Jan 17 14:15 crash_notes_size
lrwxrwxrwx 1 root root 0 Jan 17 14:15 driver -> ../../../../bus/cpu/drivers/processor
lrwxrwxrwx 1 root root 0 Jan 17 14:15 firmware_node -> ../../../LNXSYSTM:00/device:00/LNXCPU:00
lrwxrwxrwx 1 root root 0 Jan 17 14:15 node0 -> ../../node/node0
-rw-r--r-- 1 root root 4096 Dec 25 18:27 online
drwxr-xr-x 2 root root 0 Jan 17 14:15 power
lrwxrwxrwx 1 root root 0 Dec 25 18:27 subsystem -> ../../../../bus/cpu
drwxr-xr-x 2 root root 0 Dec 25 18:27 topology
-rw-r--r-- 1 root root 4096 Dec 25 18:27 uevent
[root@VM_0_4_centos cpu]#
...全文
792 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

4,436

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 内核源代码研究区
社区管理员
  • 内核源代码研究区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧