查看cpu0的cache参数,首先ls一下:
ls /sys/devices/system/cpu/cpu0/cache
会发现有index0~index3几个目录,分别对应着L0~L3的cache。进入后会有以下项目:
coherency_line_size physical_line_partition size
level shared_cpu_list type
number_of_sets shared_cpu_map ways_of_associativity然后就cat一下咯~
本文详细介绍了如何通过命令行工具查看CPU0的缓存参数,包括各层级缓存的大小、共享CPU列表等关键信息。
1449

被折叠的 条评论
为什么被折叠?



