package processorinfo

import "github.com/Microsoft/hcsshim/internal/processorinfo"

Index

Functions

func HostProcessorInfo

func HostProcessorInfo(ctx context.Context) (*hcsschema.ProcessorTopology, error)

HostProcessorInfo queries HCS for the host's processor information, including topology and NUMA configuration. This is also used to reliably get the hosts number of logical processors in multi processor group settings.

func ProcessorCount

func ProcessorCount() int32

ProcessorCount calls the win32 API function GetMaximumProcessorCount to get the total number of logical processors on the system. If this fails it will fall back to runtime.NumCPU

Source Files

host_information.go processor_count.go

Version
v0.9.0-rc0
Published
Sep 14, 2021
Platform
js/wasm
Imports
8 packages
Last checked
1 minute ago

Tools for package owners.