package processor

  1. Overview
  2. Docs

Module Processor.QuerySource

Query the system for cpu, core, and socket count.

Sourceval cpu_count : int

cpu_count is the total number of logical cpus, also sometimes referred as cpu threads.

Sourceval core_count : int

core_count is the total number of physical cores, a core might have more than one logical cpu if smt/hyperthreading is available.

Sourceval socket_count : int

socket_count is the total number of physical sockets (processor dies), a socket might have more than one physica l core, which in turn might have more than one logical cpus/threads.

OCaml

Innovation. Community. Security.