Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 1,076 for fallocate (0.13 sec)

  1. 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)
  2. pkg/controller/nodeipam/ipam/controller_test.go

    				continue TestCase
    			}
    			cidrs = append(cidrs, cidr)
    		}
    		// No allocated CIDR range should intersect with serviceCIDR.
    		for _, c := range cidrs {
    			if c.Contains(serviceCIDR.IP) || serviceCIDR.Contains(c.IP) {
    				t.Errorf("test case %+v: allocated CIDR %v from service range", tc, c)
    			}
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jan 04 20:48:08 UTC 2018
    - 1.9K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/FakeDns.kt

      }
    
      fun assertRequests(vararg expectedHosts: String?) {
        assertThat(requestedHosts).containsExactly(*expectedHosts)
        requestedHosts.clear()
      }
    
      /** Allocates and returns `count` fake IPv4 addresses like [255.0.0.100, 255.0.0.101].  */
      fun allocate(count: Int): List<InetAddress> {
        val from = nextAddress
        nextAddress += count
        return (from until nextAddress)
          .map {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. test/fixedbugs/issue67255.go

    	for i := 10; i < 200; i++ {
    		// The objects we're allocating here are pointer-ful. Some will
    		// max out their size class, which are the ones we want.
    		// We also allocate from small to large, so that the object which
    		// maxes out its size class is the last one allocated in that class.
    		// This allocation pattern leaves the next object in the class
    		// unallocated, which we need to reproduce the bug.
    		objs = append(objs, make([]*byte, i))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 922 bytes
    - Viewed (0)
  5. pkg/kubelet/cm/memorymanager/memory_manager.go

    	// 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
    	// container. After this call, any memory allocated to the container is freed.
    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. 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. pkg/kubelet/cm/memorymanager/fake_memory_manager.go

    	klog.InfoS("Start()")
    	return nil
    }
    
    func (m *fakeManager) Policy() Policy {
    	klog.InfoS("Policy()")
    	return NewPolicyNone()
    }
    
    func (m *fakeManager) Allocate(pod *v1.Pod, container *v1.Container) error {
    	klog.InfoS("Allocate", "pod", klog.KObj(pod), "containerName", container.Name)
    	return nil
    }
    
    func (m *fakeManager) AddContainer(pod *v1.Pod, container *v1.Container, containerID string) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  8. 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)
  9. pkg/controller/nodeipam/ipam/range_allocator.go

    	// NodeController restart will return all falsely allocated CIDRs to the pool.
    	if !apierrors.IsServerTimeout(err) {
    		logger.Error(err, "CIDR assignment for node failed. Releasing allocated CIDR", "node", klog.KObj(node))
    		for idx, cidr := range allocatedCIDRs {
    			if releaseErr := r.cidrSets[idx].Release(cidr); releaseErr != nil {
    				logger.Error(releaseErr, "Error releasing allocated CIDR for node", "node", klog.KObj(node))
    			}
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 10:06:15 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  10. src/runtime/arena_test.go

    				t.Errorf("expected zero-sized type to be allocated as zerobase: got %x, want %x", v, ZeroBase)
    			}
    			arena.Free()
    		})
    		t.Run("[]struct{}", func(t *testing.T) {
    			arena := NewUserArena()
    			var sl []struct{}
    			arena.Slice(&sl, 10)
    			if v := unsafe.Pointer(&sl[0]); v != ZeroBase {
    				t.Errorf("expected zero-sized type to be allocated as zerobase: got %x, want %x", v, ZeroBase)
    			}
    			arena.Free()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top