虚拟为啥没有/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]#