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.
Click to show internal directories.
Click to hide internal directories.