package processorinfo
import "github.com/Microsoft/hcsshim/internal/processorinfo"
Index ¶
- func HostProcessorInfo(ctx context.Context) (*hcsschema.ProcessorTopology, error)
- func ProcessorCount() int32
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.6
- Published
- Dec 12, 2022
- Platform
- js/wasm
- Imports
- 8 packages
- Last checked
- 17 minutes ago –
Tools for package owners.