Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestCapacityFromMachineInfoWithHugePagesEnable (0.3 sec)

  1. pkg/kubelet/cadvisor/util_test.go

    	"github.com/google/cadvisor/container/crio"
    	info "github.com/google/cadvisor/info/v1"
    	"github.com/stretchr/testify/assert"
    	"k8s.io/api/core/v1"
    	"k8s.io/apimachinery/pkg/api/resource"
    )
    
    func TestCapacityFromMachineInfoWithHugePagesEnable(t *testing.T) {
    	machineInfo := &info.MachineInfo{
    		NumCores:       2,
    		MemoryCapacity: 2048,
    		HugePages: []info.HugePagesInfo{
    			{
    				PageSize: 5,
    				NumPages: 10,
    			},
    		},
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 04 05:08:20 UTC 2023
    - 1.7K bytes
    - Viewed (0)
Back to top