Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for Microseconds (0.56 sec)

  1. pkg/kubelet/cm/helpers_linux_test.go

    }
    
    func TestResourceConfigForPodWithCustomCPUCFSQuotaPeriod(t *testing.T) {
    	defaultQuotaPeriod := uint64(100 * time.Millisecond / time.Microsecond) // in microseconds
    	tunedQuotaPeriod := uint64(5 * time.Millisecond / time.Microsecond)     // in microseconds
    	tunedQuota := int64(1 * time.Millisecond / time.Microsecond)
    
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.CPUCFSQuotaPeriod, true)
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

      private var nextQueueName = 10000
      private var coordinatorWaiting = false
      private var coordinatorWakeUpAt = 0L
    
      /**
       * When we need a new thread to run tasks, we call [Backend.execute]. A few microseconds later we
       * expect a newly-started thread to call [Runnable.run]. We shouldn't request new threads until
       * the already-requested ones are in service, otherwise we might create more threads than we need.
       *
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/container_manager_linux.go

    			enforceCPULimits:  cm.EnforceCPULimits,
    			// cpuCFSQuotaPeriod is in microseconds. NodeConfig.CPUCFSQuotaPeriod is time.Duration (measured in nano seconds).
    			// Convert (cm.CPUCFSQuotaPeriod) [nanoseconds] / time.Microsecond (1000) to get cpuCFSQuotaPeriod in microseconds.
    			cpuCFSQuotaPeriod: uint64(cm.CPUCFSQuotaPeriod / time.Microsecond),
    		}
    	}
    	return &podContainerManagerNoop{
    		cgroupRoot: cm.cgroupRoot,
    	}
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 21 10:18:16 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  4. pkg/kubelet/kuberuntime/kuberuntime_container_linux.go

    			// kubeGenericRuntimeManager.cpuCFSQuotaPeriod is provided in time.Duration,
    			// but we need to convert it to number of microseconds which is used by kernel.
    			cpuPeriod = int64(m.cpuCFSQuotaPeriod.Duration / time.Microsecond)
    		}
    		cpuQuota := milliCPUToQuota(cpuLimit.MilliValue(), cpuPeriod)
    		resources.CpuQuota = cpuQuota
    		resources.CpuPeriod = cpuPeriod
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  5. docs/en/docs/async.md

    Instead of that, by being an "asynchronous" system, once finished, the task can wait in line a little bit (some microseconds) for the computer / program to finish whatever it went to do, and then come back to take the results and continue working with them.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Mon May 20 00:24:48 UTC 2024
    - 23K bytes
    - Viewed (0)
  6. pilot/pkg/networking/core/networkfilter_test.go

    		}
    		if redisProxy.StatPrefix != "redis" {
    			t.Errorf("redis proxy statPrefix is %s", redisProxy.StatPrefix)
    		}
    		if !redisProxy.LatencyInMicros {
    			t.Errorf("redis proxy latency stat is not configured for microseconds")
    		}
    		if redisProxy.PrefixRoutes.CatchAllRoute.Cluster != "redis-cluster" {
    			t.Errorf("redis proxy's PrefixRoutes.CatchAllCluster is %s", redisProxy.PrefixRoutes.CatchAllRoute.Cluster)
    		}
    	} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 22:20:44 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  7. docs/en/docs/tutorial/bigger-applications.md

        So, behind the scenes, it will actually work as if everything was the same single app.
    
    !!! check
        You don't have to worry about performance when including routers.
    
        This will take microseconds and will only happen at startup.
    
        So it won't affect performance. ⚡
    
    ### Include an `APIRouter` with a custom `prefix`, `tags`, `responses`, and `dependencies`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  8. src/runtime/metrics_test.go

    	name := t.Name()
    
    	t.Run("runtime.lock", func(t *testing.T) {
    		mus := make([]runtime.Mutex, 200)
    		var needContention atomic.Int64
    		delay := 100 * time.Microsecond // large relative to system noise, for comparison between clocks
    		delayMicros := delay.Microseconds()
    
    		// The goroutine that acquires the lock will only proceed when it
    		// detects that its partner is contended for the lock. That will lead to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 45K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go

    func TestMicroTimeUnmarshalJSONAndProtoEqual(t *testing.T) {
    	cases := []struct {
    		name   string
    		input  MicroTime
    		result bool
    	}{
    		{"nanosecond level precision", UnixMicro(123, 123123123), true},
    		{"microsecond level precision", UnixMicro(123, 123123000), true},
    	}
    
    	for _, c := range cases {
    		t.Run(c.name, func(t *testing.T) {
    			jsonData, err := c.input.MarshalJSON()
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  10. src/time/tick_test.go

    	defer wg.Wait()
    
    	// Build up the timer heap.
    	const count = 5000
    	wg.Add(count)
    	for range count {
    		go func() {
    			defer wg.Done()
    			Sleep(10 * Microsecond)
    		}()
    	}
    	for range count {
    		Sleep(1 * Microsecond)
    	}
    
    	// Give ourselves 60 seconds to complete.
    	// This used to reliably fail on a Mac M3 laptop,
    	// which needed 77 seconds.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:10:37 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top