Skip to main content

Module sys

Module sys 

Source
Expand description

System information utilities.

Provides cross-platform detection for cgroups, CPU info, and other system-level queries used across the Batuta stack.

Functionsยง

cpu_count
Get the number of available CPU cores.
get_cpu_info
Get CPU model name (best effort).
is_cgroup_available
Check if cgroup v1 or v2 CPU controllers are available.