processorinfo

package
v0.9.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostProcessorInfo added in v0.8.13

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

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL