Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 777 for fallocate (0.58 sec)

  1. pkg/kubelet/userns/userns_manager_test.go

    	require.NoError(t, err)
    
    	allocated, length, err := m.allocateOne("one")
    	assert.NoError(t, err)
    	assert.Equal(t, userNsLength, int(length), "m.isSet(%d).length=%v", allocated, length)
    	assert.Equal(t, true, m.isSet(allocated), "m.isSet(%d)", allocated)
    
    	allocated2, length2, err := m.allocateOne("two")
    	assert.NoError(t, err)
    	assert.NotEqual(t, allocated, allocated2, "allocated != allocated2")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  2. src/runtime/HACKING.md

    * fixalloc is a SLAB-style allocator that allocates objects of a fixed
      size. fixalloced objects can be freed, but this memory can only be
      reused by the same fixalloc pool, so it can only be reused for
      objects of the same type.
    
    In general, types that are allocated using any of these should be
    marked as not in heap by embedding `runtime/internal/sys.NotInHeap`.
    
    Objects that are allocated in unmanaged memory **must not** contain
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  3. pkg/volume/util/selinux.go

    		// and all options returned by contextOptions are known.
    		return "", err
    	}
    	// InitLabels() may allocate a new unique SELinux label in kubelet memory. The label is *not* allocated
    	// in the container runtime. Clear it to avoid memory problems.
    	// ReleaseLabel on non-allocated label is NOOP.
    	selinux.ReleaseLabel(processLabel)
    
    	return fileLabel, nil
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 20 14:40:21 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  4. pkg/kubelet/cm/memorymanager/policy_static.go

    		return err
    	}
    	return nil
    }
    
    // Allocate call is idempotent
    func (p *staticPolicy) Allocate(s state.State, pod *v1.Pod, container *v1.Container) (rerr error) {
    	// allocate the memory only for guaranteed pods
    	if v1qos.GetPodQOS(pod) != v1.PodQOSGuaranteed {
    		return nil
    	}
    
    	podUID := string(pod.UID)
    	klog.InfoS("Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Nov 12 07:34:55 UTC 2023
    - 34K bytes
    - Viewed (0)
  5. src/math/big/doc.go

    	sum.Add(sum, x)
    
    to accumulate values x in a sum.
    
    (By always passing in a result value via the receiver, memory use can be
    much better controlled. Instead of having to allocate new memory for each
    result, an operation can reuse the space allocated for the result value,
    and overwrite that value with the new result in the process.)
    
    Notational convention: Incoming method parameters (including the receiver)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 11:59:09 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  6. pilot/pkg/serviceregistry/serviceentry/controller.go

    // IPs allocated to a service entry may differ from istiod to istiod
    // but it does not matter because these IPs only affect the listener
    // IPs on a given proxy managed by a given istiod.
    //
    // NOTE: If DNS capture is not enabled by the proxy, the automatically
    // allocated IP addresses do not take effect.
    //
    // The current algorithm to allocate IPs is deterministic across all istiods.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/dynamicresources/dynamicresources.go

    			clearAllocation := state.informationsForClaim[index].structuredParameters
    
    			// Before we tell a driver to deallocate a claim, we
    			// have to stop telling it to allocate. Otherwise,
    			// depending on timing, it will deallocate the claim,
    			// see a PodSchedulingContext with selected node, and
    			// allocate again for that same node.
    			if !clearAllocation &&
    				state.podSchedulingState.schedulingCtx != nil &&
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 30 15:22:37 UTC 2024
    - 75.9K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/cpumanager/cpu_assignment_test.go

    		},
    		{
    			"allocate 24 full cores with 8 distributed across the last 3 NUMA nodes (even though all 8 could be allocated from the first NUMA node)",
    			topoDualSocketMultiNumaPerSocketHT,
    			mustParseCPUSet(t, "2-29,31-39,42-69,71-79"),
    			48,
    			1,
    			"",
    			mustParseCPUSet(t, "10-17,20-27,31-38,50-57,60-67,71-78"),
    		},
    		{
    			"allocate 8 full cores with 2 distributed across each NUMA node",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 17:31:37 UTC 2023
    - 22.7K bytes
    - Viewed (0)
  9. tensorflow/c/tf_tensor.h

    // memory alignment preferences.
    TF_CAPI_EXPORT extern size_t TF_TensorDefaultAlignment();
    
    // Allocate and return a new Tensor.
    //
    // This function is an alternative to TF_NewTensor and should be used when
    // memory is allocated to pass the Tensor to the C API. The allocated memory
    // satisfies TensorFlow's memory alignment preferences and should be preferred
    // over calling malloc and free.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 06 16:40:30 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. pkg/controller/nodeipam/ipam/range_allocator_test.go

    		// this is a bit of white box testing
    		// pre allocate the cidrs as per the test
    		for idx, allocatedList := range tc.allocatedCIDRs {
    			for _, allocated := range allocatedList {
    				_, cidr, err := netutils.ParseCIDRSloppy(allocated)
    				if err != nil {
    					t.Fatalf("%v: unexpected error when parsing CIDR %v: %v", tc.description, allocated, err)
    				}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top