(1)第壹種方法:
dmesg | grep緩存
(2)第二種方法:
[root @ GC 15 ~]# ls/sys/devices/system/CPU/CPU 0/cache/index
索引0/索引1/索引2/索引3/
壹級緩存
Index0和Index1是壹級緩存中的數據和指令緩存。
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 0/level
1
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 0/type
數據
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 0/size
32K
指令緩存
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 1/level
1
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 1/type
指令
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 1/size
32K
二級緩存,* * * *
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 2/level
2
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 3/type
統壹的
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 2/size
256K
三級緩存,用於* * *
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 3/level
三
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 3/type
統壹的
[root @ GC 15 ~]# cat/sys/devices/system/CPU/CPU 0/cache/index 3/size
12288K