Skip to content

Extracting hardware information from the kernel

hq6 edited this page Jan 17, 2017 · 3 revisions
  • Extract information about NUMA nodes

     lscpu
    
  • Extract information about caches

     grep . /sys/devices/system/cpu/cpu0/cache/index*/*
    
  • Extract information about hypertwins

     cat /sys/devices/system/cpu/cpu0/topology/thread_siblings_list
     cat /sys/devices/system/cpu/cpu0/topology/core_id
    
  • Get number of online CPUs vs total configured CPUs

     getconf _NPROCESSORS_ONLN
     getconf _NPROCESSORS_CONF
    
Clone this wiki locally