Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 765 for allocable (0.16 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/ReservedPortRange.groovy

            this.startPort = startPort
            this.endPort = endPort
            current = startPort + new Random().nextInt(endPort - startPort)
        }
    
        /**
         * Allocate an available port
         *
         * @return the port that was allocated
         */
        public int allocate() {
            try {
                lock.lock()
                return getAvailablePort()
            } finally {
                lock.unlock()
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 10 14:46:58 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  2. pkg/kubelet/cm/cpumanager/policy_static.go

    }
    
    func (p *staticPolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) (rerr error) {
    	numCPUs := p.guaranteedCPUs(pod, container)
    	if numCPUs == 0 {
    		// container belongs in the shared pool (nothing to do; use default cpuset)
    		return nil
    	}
    
    	klog.InfoS("Static policy: Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 06 13:16:15 UTC 2023
    - 28.8K bytes
    - Viewed (0)
  3. src/internal/saferio/io.go

    // data but the input may be corrupt, or may be provided by an
    // untrustworthy attacker.
    package saferio
    
    import (
    	"io"
    	"unsafe"
    )
    
    // chunk is an arbitrary limit on how much memory we are willing
    // to allocate without concern.
    const chunk = 10 << 20 // 10M
    
    // ReadData reads n bytes from the input stream, but avoids allocating
    // all n bytes if n is large. This avoids crashing the program by
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 31 00:34:05 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/fit.go

    		insufficientResources = append(insufficientResources, InsufficientResource{
    			ResourceName: v1.ResourceMemory,
    			Reason:       "Insufficient memory",
    			Requested:    podRequest.Memory,
    			Used:         nodeInfo.Requested.Memory,
    			Capacity:     nodeInfo.Allocatable.Memory,
    		})
    	}
    	if podRequest.EphemeralStorage > 0 &&
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  5. src/runtime/textflag.h

    #define WRAPPER 32
    // This function uses its incoming context register.
    #define NEEDCTXT 64
    // Allocate a word of thread local storage and store the offset from the
    // thread local base to the thread local storage in this variable.
    #define TLSBSS	256
    // Do not insert instructions to allocate a stack frame for this function.
    // Only valid on functions that declare a frame size of 0.
    #define NOFRAME 512
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 01 17:28:41 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  6. test/fixedbugs/issue13160.go

    package main
    
    import (
    	"fmt"
    	"runtime"
    )
    
    const N = 100000
    
    func main() {
    	// Allocate more Ps than processors.  This raises
    	// the chance that we get interrupted by the OS
    	// in exactly the right (wrong!) place.
    	p := runtime.NumCPU()
    	runtime.GOMAXPROCS(2 * p)
    
    	// Allocate some pointers.
    	ptrs := make([]*int, p)
    	for i := 0; i < p; i++ {
    		ptrs[i] = new(int)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/node_container_manager_linux_test.go

    			capacity:   tc.capacity,
    		}
    		err := cm.validateNodeAllocatable()
    		if err == nil && tc.invalidConfiguration {
    			t.Fatalf("Expected invalid node allocatable configuration")
    		} else if err != nil && !tc.invalidConfiguration {
    			t.Fatalf("Expected valid node allocatable configuration: %v", err)
    		}
    	}
    
    	ephemeralStorageEvictionThreshold := resource.MustParse("100Mi")
    	ephemeralStorageTestCases := []struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 24 19:47:49 UTC 2021
    - 12.1K bytes
    - Viewed (0)
  8. pkg/kubelet/kubelet_node_status.go

    			existingNode.Status.Capacity = make(map[v1.ResourceName]resource.Quantity)
    		}
    	}
    
    	if existingNode.Status.Allocatable == nil {
    		if initialNode.Status.Allocatable != nil {
    			existingNode.Status.Allocatable = initialNode.Status.Allocatable.DeepCopy()
    			requiresUpdate = true
    		} else {
    			existingNode.Status.Allocatable = make(map[v1.ResourceName]resource.Quantity)
    		}
    	}
    	return requiresUpdate
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 31.1K bytes
    - Viewed (0)
  9. subprojects/core/src/testFixtures/groovy/org/gradle/util/ports/AbstractAvailablePortAllocator.groovy

                for (int i = 0; i < reservations.size(); i++) {
                    ReservedPortRange range = reservations.get(i)
                    int port = range.allocate()
                    if (port > 0) {
                        return port
                    }
                }
                // if we couldn't allocate a port from the existing reserved port ranges, get another range
                reservePortRange()
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 05 16:58:31 UTC 2022
    - 3.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/runtime/serializer/protobuf/protobuf_test.go

    			alloc := &testAllocator{}
    			if err := target.EncodeWithAllocator(tc.obj, writer2, alloc); err != nil {
    				t.Fatal(err)
    			}
    			if alloc.allocateCount != 1 {
    				t.Fatalf("expected the Allocate method to be called exactly 1 but it was executed: %v times ", alloc.allocateCount)
    			}
    
    			// to ensure compatibility of the new method with the old one, serialized data must be equal
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 27 03:17:50 UTC 2022
    - 5K bytes
    - Viewed (0)
Back to top