Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 765 for allocable (0.44 sec)

  1. src/cmd/compile/internal/ssa/regalloc.go

    		}
    	}
    
    	// Figure out which registers we're allowed to use.
    	s.allocatable = s.f.Config.gpRegMask | s.f.Config.fpRegMask | s.f.Config.specialRegMask
    	s.allocatable &^= 1 << s.SPReg
    	s.allocatable &^= 1 << s.SBReg
    	if s.f.Config.hasGReg {
    		s.allocatable &^= 1 << s.GReg
    	}
    	if buildcfg.FramePointerEnabled && s.f.Config.FPReg >= 0 {
    		s.allocatable &^= 1 << uint(s.f.Config.FPReg)
    	}
    	if s.f.Config.LinkReg != -1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 17:49:56 UTC 2023
    - 87.2K bytes
    - Viewed (0)
  2. pkg/controller/nodeipam/ipam/cidrset/cidr_set_test.go

    		}
    	}
    
    	// Make sure that we can allocate exactly `numAllocatable24s` elements.
    	for i := 0; i < numAllocatable24s; i++ {
    		_, err := a.AllocateNext()
    		if err != nil {
    			t.Fatalf("Expected to be able to allocate %d CIDRS, failed after %d", numAllocatable24s, i)
    		}
    	}
    
    	_, err = a.AllocateNext()
    	if err == nil {
    		t.Fatalf("Expected to be able to allocate exactly %d CIDRS, got one more", numAllocatable24s)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 11 08:53:03 UTC 2023
    - 29.5K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_resources.go

    	if err != nil {
    		return nil, nil, fmt.Errorf("failed to find node object, expected a node")
    	}
    	allocatable := node.Status.Allocatable
    	klog.InfoS("Allocatable", "allocatable", allocatable)
    	outputPod := pod.DeepCopy()
    	for idx := range outputPod.Spec.Containers {
    		resource.MergeContainerResourceLimits(&outputPod.Spec.Containers[idx], allocatable)
    	}
    
    	var outputContainer *v1.Container
    	if container != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 15 22:42:34 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  4. pkg/registry/storage/csinode/strategy_test.go

    		expected *storage.CSINode
    	}{
    		{
    			"allow empty allocatable when it's not set",
    			emptyAllocatable,
    			emptyAllocatable,
    			emptyAllocatable,
    		},
    		{
    			"allow valid allocatable when it's already set",
    			valid,
    			differentAllocatable,
    			differentAllocatable,
    		},
    		{
    			"allow valid allocatable when it's not set",
    			emptyAllocatable,
    			valid,
    			valid,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 09:24:44 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/util/ports/ReservedPortRangeTest.groovy

                range.allocate()
            }
    
            then:
            10 * portDetector.isAvailable(_) >> { true }
    
            and:
            range.allocate() == -1
        }
    
        def "ports are allocated in sequence" () {
            when:
            def port1 = range.allocate()
            def port2 = range.allocate()
            def port3 = range.allocate()
    
            then:
            port2 == next(port1)
            port3 == next(port2)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 06 13:37:30 UTC 2015
    - 3.1K bytes
    - Viewed (0)
  6. pkg/registry/core/service/allocator/storage/storage_test.go

    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	// Allocate an item in the local bitmap only but not in the storage
    	// emulating it's out of sync with the storage
    	if _, err := backing.Allocate(2); err != nil {
    		t.Fatal(err)
    	}
    
    	// It should be able to allocate it
    	// because it's free in the storage
    	ok, err := storage.Allocate(2)
    	if !ok || err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 01 20:54:26 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  7. pkg/registry/core/service/portallocator/storage/storage_test.go

    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	// Allocate a port inside the valid port range
    	if err := storage.Allocate(30100); err != nil {
    		t.Fatal(err)
    	}
    
    	// Try to allocate the same port in the local bitmap
    	// The local bitmap stores the offset of the port
    	// offset = port - base (30100 - 30000 = 100)
    	ok, err := backing.Allocate(100)
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 08 07:15:02 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/node_container_manager_linux.go

    )
    
    // createNodeAllocatableCgroups creates Node Allocatable Cgroup when CgroupsPerQOS flag is specified as true
    func (cm *containerManagerImpl) createNodeAllocatableCgroups() error {
    	nodeAllocatable := cm.internalCapacity
    	// Use Node Allocatable limits instead of capacity if the user requested enforcing node allocatable.
    	nc := cm.NodeConfig.NodeAllocatableConfig
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  9. pkg/kubelet/eviction/memory_threshold_notifier_test.go

    func nodeSummary(available, workingSet, usage resource.Quantity, allocatable bool) *statsapi.Summary {
    	availableBytes := uint64(available.Value())
    	workingSetBytes := uint64(workingSet.Value())
    	usageBytes := uint64(usage.Value())
    	memoryStats := statsapi.MemoryStats{
    		AvailableBytes:  &availableBytes,
    		WorkingSetBytes: &workingSetBytes,
    		UsageBytes:      &usageBytes,
    	}
    	if allocatable {
    		return &statsapi.Summary{
    			Node: statsapi.NodeStats{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  10. pkg/kubelet/lifecycle/predicate_test.go

    						Requests: requests,
    						Limits:   limits,
    					},
    				},
    			},
    		},
    	}
    }
    
    func makeTestNode(allocatable v1.ResourceList) *v1.Node {
    	return &v1.Node{
    		Status: v1.NodeStatus{
    			Allocatable: allocatable,
    		},
    	}
    }
    
    var (
    	extendedResourceA = v1.ResourceName("example.com/aaa")
    	hugePageResourceA = v1helper.HugePageResourceName(resource.MustParse("2Mi"))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 23:13:50 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top