Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 547 for allocable (0.54 sec)

  1. pkg/scheduler/framework/plugins/noderesources/balanced_allocation.go

    			resources:    args.Resources,
    		},
    	}, nil
    }
    
    func balancedResourceScorer(requested, allocable []int64) int64 {
    	var resourceToFractions []float64
    	var totalFraction float64
    	for i := range requested {
    		if allocable[i] == 0 {
    			continue
    		}
    		fraction := float64(requested[i]) / float64(allocable[i])
    		if fraction > 1 {
    			fraction = 1
    		}
    		totalFraction += fraction
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  2. src/debug/elf/file.go

    		s.Size = binary.BigEndian.Uint64(b[4:12])
    		zrd = zlib.NewReader
    
    	} else if s.Flags&SHF_ALLOC != 0 {
    		return errorReader{&FormatError{int64(s.Offset),
    			"SHF_COMPRESSED applies only to non-allocable sections", s.compressionType}}
    	}
    
    	switch s.compressionType {
    	case COMPRESS_ZLIB:
    		zrd = zlib.NewReader
    	case COMPRESS_ZSTD:
    		zrd = func(r io.Reader) (io.ReadCloser, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 23 16:49:58 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  3. 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)
  4. pkg/kubelet/cm/memorymanager/fake_memory_manager.go

    }
    
    func (m *fakeManager) State() state.Reader {
    	return m.state
    }
    
    // GetAllocatableMemory returns the amount of allocatable memory for each NUMA node
    func (m *fakeManager) GetAllocatableMemory() []state.Block {
    	klog.InfoS("Get Allocatable Memory")
    	return []state.Block{}
    }
    
    // GetMemory returns the memory allocated by a container from NUMA nodes
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. pkg/kubelet/cm/memorymanager/memory_manager.go

    	AddContainer(p *v1.Pod, c *v1.Container, containerID string)
    
    	// Allocate is called to pre-allocate memory resources during Pod admission.
    	// This must be called at some point prior to the AddContainer() call for a container, e.g. at pod admission time.
    	Allocate(pod *v1.Pod, container *v1.Container) error
    
    	// RemoveContainer is called after Kubelet decides to kill or delete a
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 00:50:45 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  6. pkg/kubelet/cm/devicemanager/manager.go

    // without a prior Start.
    func (m *ManagerImpl) Stop() error {
    	return m.server.Stop()
    }
    
    // Allocate is the call that you can use to allocate a set of devices
    // from the registered device plugins.
    func (m *ManagerImpl) Allocate(pod *v1.Pod, container *v1.Container) error {
    	// The pod is during the admission phase. We need to save the pod to avoid it
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 12:01:56 UTC 2024
    - 43K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/memorymanager/policy_static_test.go

    					MemoryMap: map[v1.ResourceName]*state.MemoryTable{
    						v1.ResourceMemory: {
    							Allocatable:    1536 * mb,
    							Free:           1536 * mb,
    							Reserved:       0,
    							SystemReserved: 512 * mb,
    							TotalMemSize:   3 * gb,
    						},
    						hugepages1Gi: {
    							Allocatable:    gb,
    							Free:           gb,
    							Reserved:       0,
    							SystemReserved: 0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 17 05:49:15 UTC 2023
    - 100.4K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/memorymanager/policy_static.go

    		allocatable := node.Memory - systemReserved
    		// remove memory allocated by hugepages
    		if allocatedByHugepages, ok := nodeHugepages[node.Id]; ok {
    			allocatable -= allocatedByHugepages
    		}
    		defaultMachineState[node.Id].MemoryMap[v1.ResourceMemory] = &state.MemoryTable{
    			Allocatable:    allocatable,
    			Free:           allocatable,
    			Reserved:       0,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/devicemanager/types.go

    	// Allocate configures and assigns devices to a container in a pod. From
    	// the requested device resources, Allocate will communicate with the
    	// owning device plugin to allow setup procedures to take place, and for
    	// the device plugin to provide runtime settings to use the device
    	// (environment variables, mount points and device files).
    	Allocate(pod *v1.Pod, container *v1.Container) error
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 5K bytes
    - Viewed (0)
  10. pkg/kubelet/cm/container_manager.go

    	GetCapacity(localStorageCapacityIsolation bool) v1.ResourceList
    
    	// GetDevicePluginResourceCapacity returns the node capacity (amount of total device plugin resources),
    	// node allocatable (amount of total healthy resources reported by device plugin),
    	// and inactive device plugin resources previously registered on the node.
    	GetDevicePluginResourceCapacity() (v1.ResourceList, v1.ResourceList, []string)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top