http://xmodulo.com/identify-cpu-processor-architecture-linux.html
¸®´ª½º¿¡¼ ¸í·É¾î¸¦ °¡Áö°í ¾ÆÅ°ÅØó ½Äº°¹æ¹ý
CPU ¾ÆÅ°ÅØó´Â ¹°¸®Àû ¼ÒÄÏ/ ÇÁ·Î¼¼¼ °¹¼ö, ÇÁ·Î¼¼¼´ç Äھ¼ö, L1/L2/L3 Cache, NUMA(Non-UNIFORM MOMORY ACCESS) ±¸¼ºµîÀÌ ÇØ´çµË´Ï´Ù.
ÃÑ 6°¡Áö ¹æ¹ýÀ¸·Î Á¤¸®ÇÏ¿´½À´Ï´Ù.
# git clone https://github.com/rrze-likwid/likwid.git
# cd likwid
# make ; make install
# likwid-topology -g
likwid-topology: Display the NUMA and cache topology.
likwid-perfctr: Display the hardware performance counters of processors.
likwid-features: Display and change hardware prefetch control bits on Intel Core 2 processors.
likwid-pin: Pin a multi-threaded application to a specific CPU.
likwid-bench: Benchmarking tool for rapid prototyping of threaded assembly kernels.
likwid-mpirun: script enabling CPU pinning of MPI and MPI/threaded hybrid applications.
likwid-perfscope: Frontend for likwid-perfctr which allows real-time plotting of performance metrics.
likwid-powermeter: Tool for accessing RAPL counters and query Turbo mode steps on Intel processor.
likwid-memsweeper: Tool to clean up ccNUMA (cache-coherent NUMA) memory domains.
Ubuntu / Debian
# apt-get install hwloc
RHEL / CentOS
# yum install hwloc
# lstopo -no-io
3. numactl
Ubuntu / Debian
# apt-get install numactl
RHEL / CentOS
# yum install numactl
# numactl --hardware
4. lscpu
# lscpu
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0-5
Thread(s) per core: 1
Core(s) per socket: 6
Socket(s): 1
NUMA node(s): 1
Vendor ID: AuthenticAMD
CPU family: 16
Model: 10
Stepping: 0
CPU MHz: 2800.000
BogoMIPS: 5625.70
Virtualization: AMD-V
L1d cache: 64K
L1i cache: 64K
L2 cache: 512K
L3 cache: 6144K
NUMA node0 CPU(s): 0-5
5. /proc/cpuinfo
# cat /proc/cpuinfo
6. dmicode