- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for PreferClosestNUMA (0.27 sec)
-
pkg/kubelet/cm/topologymanager/numa_info_test.go
}, opts: PolicyOptions{ PreferClosestNUMA: true, }, }, { name: "negative test 1 node, no distance file with PreferClosestNUMA", topology: []cadvisorapi.Node{ { Id: 9, }, }, expectedNUMAInfo: nil, expectedErr: fmt.Errorf("error getting NUMA distances from cadvisor"), opts: PolicyOptions{ PreferClosestNUMA: true, }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 16:52:14 UTC 2022 - 11.6K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy_options.go
return fmt.Errorf("Topology Manager Policy Beta-level Options not enabled, but option %q provided", option) } return nil } type PolicyOptions struct { PreferClosestNUMA bool } func NewPolicyOptions(policyOptions map[string]string) (PolicyOptions, error) { opts := PolicyOptions{} for name, value := range policyOptions { if err := CheckPolicyOptionAvailable(name); err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 13:02:15 UTC 2023 - 2.4K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy_options_test.go
expectedErr error expectedOptions PolicyOptions }{ { description: "return TopologyManagerOptions with PreferClosestNUMA set to true", featureGate: pkgfeatures.TopologyManagerPolicyBetaOptions, featureGateEnable: true, expectedOptions: PolicyOptions{ PreferClosestNUMA: true, }, policyOptions: map[string]string{ PreferClosestNUMANodes: "true", }, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 5.9K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy_restricted_test.go
} func TestPolicyRestrictedMergeClosestNUMA(t *testing.T) { numaInfo := commonNUMAInfoEightNodes() policy := &restrictedPolicy{bestEffortPolicy{numaInfo: numaInfo, opts: PolicyOptions{PreferClosestNUMA: true}}} tcases := commonPolicyMergeTestCases(numaInfo.Nodes) tcases = append(tcases, policy.mergeTestCases(numaInfo.Nodes)...) tcases = append(tcases, policy.mergeTestCasesClosestNUMA(numaInfo.Nodes)...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:25 UTC 2022 - 2.6K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy_best_effort_test.go
testPolicyMerge(policy, tcases, t) } func TestPolicyBestEffortMergeClosestNUMA(t *testing.T) { numaInfo := commonNUMAInfoEightNodes() opts := PolicyOptions{ PreferClosestNUMA: true, } policy := &bestEffortPolicy{numaInfo: numaInfo, opts: opts} tcases := commonPolicyMergeTestCases(numaInfo.Nodes) tcases = append(tcases, policy.mergeTestCases(numaInfo.Nodes)...)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:25 UTC 2022 - 2.1K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/numa_info.go
var numaNodes []int distances := map[int][]uint64{} for _, node := range topology { numaNodes = append(numaNodes, node.Id) var nodeDistance []uint64 if opts.PreferClosestNUMA { nodeDistance = node.Distances if nodeDistance == nil { return nil, fmt.Errorf("error getting NUMA distances from cadvisor") } } distances[node.Id] = nodeDistance }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 09 16:52:14 UTC 2022 - 2.7K bytes - Viewed (0) -
pkg/kubelet/cm/topologymanager/policy.go
return current } // Otherwise compare the hints, based on the policy options provided var best bitmask.BitMask if (policyName != PolicySingleNumaNode) && opts.PreferClosestNUMA { best = numaInfo.Closest(current.NUMANodeAffinity, candidate.NUMANodeAffinity) } else { best = numaInfo.Narrowest(current.NUMANodeAffinity, candidate.NUMANodeAffinity) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Nov 03 09:45:25 UTC 2022 - 12.7K bytes - Viewed (0)