發現虛擬機里面沒有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]#
轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/59242.html
標籤:內核源代碼研究區
上一篇:Linux題,求解答
