Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for cpuinit (0.31 sec)

  1. platforms/documentation/docs/src/snippets/native-binaries/cunit/groovy/libs/cunit/2.1-2/include/CUnit/CUnit.h

    #ifndef CU_BOOL
      /** Boolean type for CUnit use. */
      #define CU_BOOL int
    #endif
    
    #ifndef CU_TRUE
      /** Boolean TRUE for CUnit use. */
      #define CU_TRUE 1
    #endif
    
    #ifndef CU_FALSE
      /** Boolean FALSE for CUnit use. */
      #define CU_FALSE 0
    #endif
    
    #ifndef CU_UNREFERENCED_PARAMETER
      /** Consistent approach to referencing unused parameters. */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 18.6K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    		if runtimeStatusResources.MemoryLimitInBytes > 0 {
    			memLimit = resource.NewQuantity(runtimeStatusResources.MemoryLimitInBytes, resource.BinarySI)
    		}
    		if cpuLimit != nil || memLimit != nil || cpuRequest != nil {
    			cStatusResources = &kubecontainer.ContainerResources{
    				CPULimit:    cpuLimit,
    				CPURequest:  cpuRequest,
    				MemoryLimit: memLimit,
    			}
    		}
    	}
    	return cStatusResources
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  3. pkg/api/v1/resource/helpers_test.go

    )
    
    func TestResourceHelpers(t *testing.T) {
    	cpuLimit := resource.MustParse("10")
    	memoryLimit := resource.MustParse("10G")
    	resourceSpec := v1.ResourceRequirements{
    		Limits: v1.ResourceList{
    			v1.ResourceCPU:    cpuLimit,
    			v1.ResourceMemory: memoryLimit,
    		},
    	}
    	if res := resourceSpec.Limits.Cpu(); res.Cmp(cpuLimit) != 0 {
    		t.Errorf("expected cpulimit %v, got %v", cpuLimit, res)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:13 UTC 2023
    - 38.3K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/cpumanager/cpu_manager_test.go

    	found     bool
    }
    
    func (psp mockPodStatusProvider) GetPodStatus(uid types.UID) (v1.PodStatus, bool) {
    	return psp.podStatus, psp.found
    }
    
    func makePod(podUID, containerName, cpuRequest, cpuLimit string) *v1.Pod {
    	pod := &v1.Pod{
    		Spec: v1.PodSpec{
    			Containers: []v1.Container{
    				{
    					Resources: v1.ResourceRequirements{
    						Requests: v1.ResourceList{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 42.9K bytes
    - Viewed (0)
  5. pkg/apis/core/fuzzer/fuzzer.go

    		},
    		func(q *core.LimitRangeItem, c fuzz.Continue) {
    			var cpuLimit resource.Quantity
    			c.Fuzz(&cpuLimit)
    
    			q.Type = core.LimitTypeContainer
    			q.Default = make(core.ResourceList)
    			q.Default[core.ResourceCPU] = cpuLimit.DeepCopy()
    
    			q.DefaultRequest = make(core.ResourceList)
    			q.DefaultRequest[core.ResourceCPU] = cpuLimit.DeepCopy()
    
    			q.Max = make(core.ResourceList)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 04:32:01 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/cadvisor_stats_provider.go

    	if !info.Spec.HasCpu || !info.Spec.HasMemory {
    		return false
    	}
    	cstat, found := latestContainerStats(info)
    	if !found {
    		return false
    	}
    	if cstat.CpuInst == nil {
    		return false
    	}
    	return cstat.CpuInst.Usage.Total != 0 && cstat.Memory.RSS != 0
    }
    
    // isContainerTerminated returns true if the specified container meet one of the following conditions
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 16 13:34:22 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  7. pkg/kubelet/stats/provider_test.go

    	cinfo := getTestContainerInfo(seed, podName, podNamespace, containerName)
    	cinfo.Stats[0].Memory.RSS = 0
    	cinfo.Stats[0].CpuInst.Usage.Total = 0
    	cinfo.Stats[0].Network = &cadvisorapiv2.NetworkStats{
    		Interfaces: []cadvisorapiv1.InterfaceStats{{
    			Name:     "eth0",
    			RxBytes:  0,
    			RxErrors: 0,
    			TxBytes:  0,
    			TxErrors: 0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  8. src/hash/crc32/crc32_test.go

    		4030, 4031, 4032, 4033, 4036, 4040, 4048, 4096, 5000, 10000}
    	for _, length := range lengths {
    		p := make([]byte, length)
    		_, _ = rand.Read(p)
    		crcInit := uint32(rand.Int63())
    		crc1 := crcFunc1(crcInit, p)
    		crc2 := crcFunc2(crcInit, p)
    		if crc1 != crc2 {
    			t.Errorf("mismatch: 0x%x vs 0x%x (buffer length %d)", crc1, crc2, length)
    		}
    	}
    }
    
    // TestSimple tests the simple generic algorithm.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  9. pkg/kubelet/stats/helper.go

    		Time:                 metav1.NewTime(cstat.Timestamp),
    		UsageNanoCores:       uint64Ptr(0),
    		UsageCoreNanoSeconds: uint64Ptr(0),
    	}
    	if info.Spec.HasCpu {
    		if cstat.CpuInst != nil {
    			cpuStats.UsageNanoCores = &cstat.CpuInst.Usage.Total
    		}
    		if cstat.Cpu != nil {
    			cpuStats.UsageCoreNanoSeconds = &cstat.Cpu.Usage.Total
    		}
    	}
    	if info.Spec.HasMemory && cstat.Memory != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 17 23:40:02 UTC 2023
    - 14.8K bytes
    - Viewed (0)
  10. src/go/types/stdlib_test.go

    	// type-checking (see golang/go#47729).
    	cpulimit := make(chan struct{}, runtime.GOMAXPROCS(0))
    	var wg sync.WaitGroup
    
    	for dir := range dirFiles {
    		dir := dir
    
    		cpulimit <- struct{}{}
    		wg.Add(1)
    		go func() {
    			defer func() {
    				wg.Done()
    				<-cpulimit
    			}()
    
    			_, err := c.getDirPackage(dir)
    			if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top