您的位置:首页 > 运维架构 > Linux

Linux to read the Processor model, physical cores, virtual cores and L1, L2 cache

2016-01-20 10:22 393 查看
The information about the CPU of a Linux computer is stored in the file /proc/cpuinfo(cat /proc/cpuinfo)It is a long file so that we need to use pipeline tool to process our information. In general, the information inside the cpuinfo is about the setting of each processor. Since the Intel company has the technique of hyper-thread. Therefore, the processor here is the virtual cores. About the actual cores is the number displayed in the row of cpu cores of each processor. The model name is also displayed in each processor. If the computer has two CPU, then we can distinguish them by the physical id. If the processors' physical id are the same, then they belong to one CPU.The way to see the L1/ L2 cache is use command:See which level is:
$ cat /sys/devices/system/cpu/cpu0/cache/index0/level
See the size:
cat /sys/devices/system/cpu/cpu0/cache/index0/size
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  linux cpu 缓存