Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 38 for allocable (0.2 sec)

  1. pkg/kubelet/cm/devicemanager/manager_test.go

    				t.Fatalf("timeout while waiting for manager update")
    			}
    			capacity, allocatable, _ := m.GetCapacity()
    			resourceCapacity := capacity[v1.ResourceName(testResourceName)]
    			resourceAllocatable := allocatable[v1.ResourceName(testResourceName)]
    			require.Equal(t, resourceCapacity.Value(), resourceAllocatable.Value(), "capacity should equal to allocatable")
    			require.Equal(t, int64(2), resourceAllocatable.Value(), "Devices are not updated.")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 65K bytes
    - Viewed (0)
  2. pkg/kubelet/nodestatus/setters_test.go

    					},
    					Allocatable: v1.ResourceList{
    						v1.ResourceCPU:    *resource.NewMilliQuantity(2000, resource.DecimalSI),
    						v1.ResourceMemory: *resource.NewQuantity(1024, resource.BinarySI),
    						v1.ResourcePods:   *resource.NewQuantity(10, resource.DecimalSI),
    					},
    				},
    			},
    		},
    		{
    			desc:    "allocatable should equal capacity minus reservations",
    			node:    &v1.Node{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 21:47:24 UTC 2024
    - 76.1K bytes
    - Viewed (0)
  3. pkg/apis/storage/validation/validation_test.go

    				TopologyKeys: []string{"company.com/zone1", "company.com/zone2"},
    				Allocatable:  &storage.VolumeNodeResources{Count: utilpointer.Int32(20)},
    			}, {
    				Name:         "io.kubernetes.storage.csi.driver-3",
    				NodeID:       nodeID,
    				TopologyKeys: []string{"company.com/zone1", "company.com/zone2"},
    				Allocatable:  &storage.VolumeNodeResources{Count: utilpointer.Int32(30)},
    			}},
    		},
    	}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 69.7K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/noderesources/fit_test.go

    			nodeInfo: framework.NewNodeInfo(
    				newResourcePod(framework.Resource{MilliCPU: 0, Memory: 0, ScalarResources: map[v1.ResourceName]int64{extendedResourceA: 5}})),
    			name:       "extended resource allocatable enforced",
    			wantStatus: framework.NewStatus(framework.Unschedulable, getErrReason(extendedResourceA)),
    			wantInsufficientResources: []InsufficientResource{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 57.4K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/defaults_test.go

    		allocatable:         allocatable,
    		expectedAllocatable: allocatable,
    	}, { // Allocatable set, no defaulting.
    		capacity:            nil,
    		allocatable:         allocatable,
    		expectedAllocatable: allocatable,
    	}, { // Capacity set, allocatable defaults to capacity.
    		capacity:            capacity,
    		allocatable:         nil,
    		expectedAllocatable: capacity,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  6. src/runtime/malloc.go

    // persistentChunkSize is the number of bytes we allocate when we grow
    // a persistentAlloc.
    const persistentChunkSize = 256 << 10
    
    // persistentChunks is a list of all the persistent chunks we have
    // allocated. The list is maintained through the first word in the
    // persistent chunk. This is updated atomically.
    var persistentChunks *notInHeap
    
    // Wrapper around sysAlloc that can allocate small chunks.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  7. src/runtime/mheap.go

    	if needPhysPageAlign {
    		// Overallocate by a physical page to allow for later alignment.
    		extraPages := physPageSize / pageSize
    
    		// Find a big enough region first, but then only allocate the
    		// aligned portion. We can't just allocate and then free the
    		// edges because we need to account for scavenged memory, and
    		// that's difficult with alloc.
    		//
    		// Note that we skip updates to searchAddr here. It's OK if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:31:00 UTC 2024
    - 78K bytes
    - Viewed (0)
  8. src/runtime/mgc.go

    // goroutine needs another span, it first attempts to reclaim that much memory
    // by sweeping. When a goroutine needs to allocate a new small-object span, it
    // sweeps small-object spans for the same object size until it frees at least
    // one object. When a goroutine needs to allocate large-object span from heap,
    // it sweeps spans until it frees at least that many pages into heap. There is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62K bytes
    - Viewed (0)
  9. src/runtime/map.go

    // high-order bits of each hash to distinguish the entries
    // within a single bucket.
    //
    // If more than 8 keys hash to a bucket, we chain on
    // extra buckets.
    //
    // When the hashtable grows, we allocate a new array
    // of buckets twice as big. Buckets are incrementally
    // copied from the old bucket array to the new bucket array.
    //
    // Map iterators walk through the array of buckets and
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 57.6K bytes
    - Viewed (0)
  10. cmd/erasure-object.go

    	var buffer []byte
    	switch size := data.Size(); {
    	case size == 0:
    		buffer = make([]byte, 1) // Allocate at least a byte to reach EOF
    	case size >= fi.Erasure.BlockSize:
    		buffer = globalBytePoolCap.Load().Get()
    		defer globalBytePoolCap.Load().Put(buffer)
    	case size < fi.Erasure.BlockSize:
    		// No need to allocate fully blockSizeV1 buffer if the incoming data is smaller.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:51:27 UTC 2024
    - 78.6K bytes
    - Viewed (0)
Back to top