lstopo is a tool provided by the Portable Hardware Locality(HWLOC) project.
它可以图片的形式显示计算机的结构。包括处理图的结构,物理核心数,虚拟核心数,和对应的各级缓存,还有总线上的元件。
安装:
1 |
sudo apt install hwloc |
显示:
1 |
lstopo |
用文字方式显示:
1 |
lstopo -.txt |
用文本显示:
1 |
lstopo --of console |
保存为png格式图片:
1 |
lstopo --of png mycomputer.png |
保存为pdf格式文件:
1 |
lstopo --of pdf mycomputer.pdf |
保存为xml格式文件:
1 |
lstopo --of xml mycomputer.xml |
上图是一台笔记本电脑的结果,不知道树莓派上是什么,有时间开来看看。