Code Yarns ‍👨‍💻
Tech BlogPersonal Blog


📅 2016-Mar-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 📚 Archive


lstopo is a tool provided by the Portable Hardware Locality (HWLOC) project. It shows the hierarchical topology of the architecture of your computer in many beautiful formats. This is an excellent visual method to learn more about the details of any computer you access. Information that is shown includes, processor hierarchy, number of physical cores, virtual cores, cache hierarchy, size and details of each cache, the memory, buses and components on the buses.

$ sudo apt install hwloc
$ lstopo
$ lstopo -.txt
$ lstopo --of console

The topology can also be exported to various image (PNG), document (PDF) and markup (XML) formats.

Tried with: HWLoc 1.8-1 and Ubuntu 14.04