Skip to content

Instantly share code, notes, and snippets.

@zao
Created September 18, 2017 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zao/d37066b91c8ec7a584a73319bbf2ec44 to your computer and use it in GitHub Desktop.
Save zao/d37066b91c8ec7a584a73319bbf2ec44 to your computer and use it in GitHub Desktop.
$ sysctl -a | grep hw.cpu_topology
hw.cpu_topology_phys_ids: 1
hw.cpu_topology_core_ids: 4
hw.cpu_topology.tree:
hw.cpu_topology.level_description: 0 - core; 1 - socket; 2 - anything
hw.cpu_topology.members: cpus(0)
hw.cpu_topology.cpu0.physical_id: 0
hw.cpu_topology.cpu0.physical_siblings: cpus(0)
hw.cpu_topology.cpu0.core_id: 0
hw.cpu_topology.cpu0.core_siblings: cpus(0)
hw.cpu_topology.cpu1.physical_id: 0
hw.cpu_topology.cpu1.physical_siblings: cpus(0)
hw.cpu_topology.cpu1.core_id: 1
hw.cpu_topology.cpu1.core_siblings: cpus()
hw.cpu_topology.cpu2.physical_id: 0
hw.cpu_topology.cpu2.physical_siblings: cpus(0)
hw.cpu_topology.cpu2.core_id: 2
hw.cpu_topology.cpu2.core_siblings: cpus()
hw.cpu_topology.cpu3.physical_id: 0
hw.cpu_topology.cpu3.physical_siblings: cpus(0)
hw.cpu_topology.cpu3.core_id: 3
hw.cpu_topology.cpu3.core_siblings: cpus()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment