$ likwid-topology -g
-------------------------------------------------------------
CPU type: Intel Core 2 45nm processor
*************************************************************
Hardware Thread Topology
*************************************************************
Sockets: 2
Cores per socket: 4
Threads per core: 1
-------------------------------------------------------------
HWThread Thread Core Socket
0 0 0 0
1 0 0 1
2 0 2 0
3 0 2 1
4 0 1 0
5 0 1 1
6 0 3 0
7 0 3 1
-------------------------------------------------------------
Socket 0: ( 0 4 2 6 )
Socket 1: ( 1 5 3 7 )
-------------------------------------------------------------
*************************************************************
Cache Topology
*************************************************************
Level: 1
Size: 32 kB
Cache groups: ( 0 ) ( 4 ) ( 2 ) ( 6 ) ( 1 ) ( 5 ) ( 3 ) ( 7 )
-------------------------------------------------------------
Level: 2
Size: 6 MB
Cache groups: ( 0 4 ) ( 2 6 ) ( 1 5 ) ( 3 7 )
-------------------------------------------------------------
*************************************************************
NUMA Topology
*************************************************************
NUMA domains: 1
-------------------------------------------------------------
Domain 0:
Processors: 0 1 2 3 4 5 6 7
Relative distance to nodes: 10
Memory: 23389.5 MB free of total 24574.5 MB
-------------------------------------------------------------
*************************************************************
Graphical:
*************************************************************
Socket 0:
+-------------------------------------+
| +------+ +------+ +------+ +------+ |
| | 0 | | 4 | | 2 | | 6 | |
| +------+ +------+ +------+ +------+ |
| +------+ +------+ +------+ +------+ |
| | 32kB | | 32kB | | 32kB | | 32kB | |
| +------+ +------+ +------+ +------+ |
| +---------------+ +---------------+ |
| | 6MB | | 6MB | |
| +---------------+ +---------------+ |
+-------------------------------------+
Socket 1:
+-------------------------------------+
| +------+ +------+ +------+ +------+ |
| | 1 | | 5 | | 3 | | 7 | |
| +------+ +------+ +------+ +------+ |
| +------+ +------+ +------+ +------+ |
| | 32kB | | 32kB | | 32kB | | 32kB | |
| +------+ +------+ +------+ +------+ |
| +---------------+ +---------------+ |
| | 6MB | | 6MB | |
| +---------------+ +---------------+ |
+-------------------------------------+