Tuesday, December 30, 2014

How to identify CPU processor architecture on Linux

hwloc  is a command-line suite that gathers various attributes of the underlying processor architecture, such as NUMA memory nodes, multi-level caches, processor sockets, processor cores, PCI devices/bridges, etc.

To install hwloc run the following command in Terminal.

sudo apt-get install hwloc 

Now that you have installed hwloc you can run the following commands.

$ lstopo

The lstopo command visualizes the topology of the system which is composed of CPUs, cache, memory and I/O devices. This command is useful to identify the processor architecture and NUMA topology of the system.

$ lstopo --no-io

That's it.

No comments:

Post a Comment