Linux下cache参数的获取

来源:互联网 发布:软件许可管理 编辑:程序博客网 时间:2024/06/04 17:42

查看cpu0的cache参数,首先ls一下:

ls /sys/devices/system/cpu/cpu0/cache

会发现有index0~index3几个目录,分别对应着L0~L3的cache。进入后会有以下项目:

coherency_line_size  physical_line_partition  sizelevel                shared_cpu_list          typenumber_of_sets       shared_cpu_map           ways_of_associativity

然后就cat一下咯~

0 0
原创粉丝点击