如果要看CPU拓扑,lscpu,numastat都可以看,今天发现hwloc,会更直观些,下面摘抄官网介绍,简单点说,hwloc可以显示CPU拓扑,比较方面地查看CPU各级缓存以及各个核、物理CPU之间,可以共享哪一级别的CPU cacheThe Portable Hardware Locality (hwloc) software package provides a portable abstraction (across OS, versions, architectures, …) of the hierarchical topology of modern architectures, including NUMA memory nodes, sockets, shared caches, cores and simultaneous multithreading.简单使用hwloc-ls如果是文本界面,则会输出文字,如果是桌面环境,则会弹窗一个窗口引用一张官方的图:
...
继续阅读
(7)