Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for cadvisorapi (0.22 sec)

  1. pkg/kubelet/cm/topologymanager/numa_info_test.go

    */
    
    package topologymanager
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    	"testing"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    	"k8s.io/kubernetes/pkg/kubelet/cm/topologymanager/bitmask"
    )
    
    func TestNUMAInfo(t *testing.T) {
    	tcases := []struct {
    		name             string
    		topology         []cadvisorapi.Node
    		expectedNUMAInfo *NUMAInfo
    		expectedErr      error
    		opts             PolicyOptions
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 09 16:52:14 UTC 2022
    - 11.6K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/topology/topology_test.go

    		},
    		{
    			name: "DualSocketNoHT",
    			machineInfo: cadvisorapi.MachineInfo{
    				NumCores:   4,
    				NumSockets: 2,
    				Topology: []cadvisorapi.Node{
    					{Id: 0,
    						Cores: []cadvisorapi.Core{
    							{SocketID: 0, Id: 0, Threads: []int{0}},
    							{SocketID: 0, Id: 2, Threads: []int{2}},
    						},
    					},
    					{Id: 1,
    						Cores: []cadvisorapi.Core{
    							{SocketID: 1, Id: 1, Threads: []int{1}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 31.7K bytes
    - Viewed (0)
  3. pkg/kubelet/winstats/network_stats.go

    		packetsOutboundDiscardedCounter: packetsOutboundDiscardedCounter,
    		packetsOutboundErrorsCounter:    packetsOutboundErrorsCounter,
    		adapterStats:                    map[string]cadvisorapi.InterfaceStats{},
    	}, nil
    }
    
    func (n *networkCounter) getData() ([]cadvisorapi.InterfaceStats, error) {
    	packetsReceivedPerSecondData, err := n.packetsReceivedPerSecondCounter.getDataList()
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    }
    
    func returnMachineInfo() cadvisorapi.MachineInfo {
    	return cadvisorapi.MachineInfo{
    		NumCores: 12,
    		Topology: []cadvisorapi.Node{
    			{Id: 0,
    				Cores: []cadvisorapi.Core{
    					{SocketID: 0, Id: 0, Threads: []int{0, 6}},
    					{SocketID: 0, Id: 1, Threads: []int{1, 7}},
    					{SocketID: 0, Id: 2, Threads: []int{2, 8}},
    				},
    			},
    			{Id: 1,
    				Cores: []cadvisorapi.Core{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/memorymanager/memory_manager.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package memorymanager
    
    import (
    	"context"
    	"fmt"
    	"sync"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	"k8s.io/apimachinery/pkg/util/sets"
    	runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
    	"k8s.io/klog/v2"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 00:50:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/topologymanager/topology_manager_test.go

    			topology: []cadvisorapi.Node{
    				{
    					Id: 0,
    				},
    			},
    		},
    		{
    			description:    "more than 8 NUMA nodes",
    			policyName:     "best-effort",
    			expectedPolicy: "best-effort",
    			expectedError:  fmt.Errorf("unsupported on machines with more than %v NUMA Nodes", maxAllowableNUMANodes),
    			topology: []cadvisorapi.Node{
    				{
    					Id: 0,
    				},
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 11 13:04:32 UTC 2023
    - 13.8K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    			expectedError:              fmt.Errorf("the static policy requires systemreserved.cpu + kubereserved.cpu to be greater than zero"),
    		},
    	}
    
    	mockedMachineInfo := cadvisorapi.MachineInfo{
    		NumCores: 4,
    		Topology: []cadvisorapi.Node{
    			{
    				Cores: []cadvisorapi.Core{
    					{
    						Id:      0,
    						Threads: []int{0},
    					},
    					{
    						Id:      1,
    						Threads: []int{1},
    					},
    					{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  8. pkg/kubelet/server/server.go

    	return a.host.GetRequestedContainersInfo(containerName, options)
    }
    func (a prometheusHostAdapter) GetVersionInfo() (*cadvisorapi.VersionInfo, error) {
    	return a.host.GetVersionInfo()
    }
    func (a prometheusHostAdapter) GetMachineInfo() (*cadvisorapi.MachineInfo, error) {
    	return a.host.GetCachedMachineInfo()
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 40.1K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/cpu_manager.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package cpumanager
    
    import (
    	"context"
    	"fmt"
    	"math"
    	"sync"
    	"time"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/util/wait"
    	runtimeapi "k8s.io/cri-api/pkg/apis/runtime/v1"
    	"k8s.io/klog/v2"
    
    	"k8s.io/kubernetes/pkg/kubelet/cm/containermap"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 03 16:26:09 UTC 2023
    - 19.9K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/memorymanager/policy_static.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package memorymanager
    
    import (
    	"fmt"
    	"reflect"
    	"sort"
    
    	cadvisorapi "github.com/google/cadvisor/info/v1"
    
    	v1 "k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    	utilfeature "k8s.io/apiserver/pkg/util/feature"
    	"k8s.io/klog/v2"
    	podutil "k8s.io/kubernetes/pkg/api/v1/pod"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
Back to top