- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 105 for cpuIDs (0.14 sec)
-
pkg/kubelet/apis/podresources/types.go
GetPodByName(namespace, name string) (*v1.Pod, bool) } // CPUsProvider knows how to provide the cpus used by the given container type CPUsProvider interface { // GetCPUs returns information about the cpus assigned to pods and containers GetCPUs(podUID, containerName string) []int64 // GetAllocatableCPUs returns the allocatable (not allocated) CPUs GetAllocatableCPUs() []int64 } type MemoryProvider interface {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 17:33:04 UTC 2023 - 2.6K bytes - Viewed (0) -
src/runtime/testdata/testprog/numcpu_freebsd.go
if !ok { return nil, fmt.Errorf("invalid output from '%s', '\\n' not found: %s", cmdline, output) } _, cpus, ok := bytes.Cut(output, []byte(":")) if !ok { return nil, fmt.Errorf("invalid output from '%s', ':' not found: %s", cmdline, output) } var list []string for _, val := range bytes.Split(cpus, []byte(",")) { index := string(bytes.TrimSpace(val)) if len(index) == 0 { continue }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 30 20:09:46 UTC 2022 - 3.4K bytes - Viewed (0) -
src/runtime/os_illumos.go
n := int32(sysconf(__SC_NPROCESSORS_ONLN)) if n < 1 { return 1 } if cents := int32(getcpucap()); cents > 0 { // Convert from a percentage of CPUs to a number of CPUs, // rounding up to make use of a fractional CPU // e.g., 336% becomes 4 CPUs ncap := (cents + 99) / 100 if ncap < n { return ncap } } return n } //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 28 18:06:12 UTC 2019 - 3.9K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_none.go
return nil } // Assignable CPUs are the ones that can be exclusively allocated to pods that meet the exclusivity requirement // (ie guaranteed QoS class and integral CPU request). // Assignability of CPUs as a concept is only applicable in case of static policy i.e. scenarios where workloads // CAN get exclusive access to core(s). // Hence, we return empty set here: no cpus are assignable according to above definition with this policy.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 03 16:26:09 UTC 2023 - 2.3K bytes - Viewed (0) -
pkg/kubelet/kuberuntime/kuberuntime_container_windows_test.go
require.NoError(t, err) limit := int64(3000) expectedCpuMax := 10 * limit / int64(winstats.ProcessorCount()) // Above, we're setting the limit to 3 CPUs. But we can't expect more than 100% of the CPUs // we have. (e.g.: if we only have 2 CPUs, we can't have 150% CPU max). if expectedCpuMax > 10000 { expectedCpuMax = 10000 } expectedWindowsConfig := &runtimeapi.WindowsContainerConfig{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Apr 25 14:24:16 UTC 2024 - 5.3K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/policy_options.go
// We picked "pcpu" because it the established docs hints at vCPU already. FullPhysicalCPUsOnly bool // Flag to evenly distribute CPUs across NUMA nodes in cases where more // than one NUMA node is required to satisfy the allocation. DistributeCPUsAcrossNUMA bool // Flag to ensure CPUs are considered aligned at socket boundary rather than // NUMA boundary AlignBySocket bool }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 27 13:02:15 UTC 2023 - 5.1K bytes - Viewed (0) -
src/runtime/debug.go
// newprocs will be processed by startTheWorld newprocs = int32(n) startTheWorldGC(stw) return ret } // NumCPU returns the number of logical CPUs usable by the current process. // // The set of available CPUs is checked by querying the operating system // at process startup. Changes to operating system CPU allocation after // process startup are not reflected. func NumCPU() int { return int(ncpu)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat May 11 20:38:24 UTC 2024 - 4.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/sys/unix/affinity_linux.go
// If pid is 0 the calling thread is used. func SchedSetaffinity(pid int, set *CPUSet) error { return schedAffinity(SYS_SCHED_SETAFFINITY, pid, set) } // Zero clears the set s, so that it contains no CPUs. func (s *CPUSet) Zero() { for i := range s { s[i] = 0 } } func cpuBitsIndex(cpu int) int { return cpu / _NCPUBITS } func cpuBitsMask(cpu int) cpuMask {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 19 21:26:10 UTC 2020 - 1.9K bytes - Viewed (0) -
cmd/update.go
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 18.7K bytes - Viewed (0) -
src/runtime/cputicks.go
//go:build !arm && !arm64 && !mips64 && !mips64le && !mips && !mipsle && !wasm package runtime // careful: cputicks is not guaranteed to be monotonic! In particular, we have // noticed drift between cpus on certain os/arch combinations. See issue 8976.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 10 12:47:42 UTC 2023 - 437 bytes - Viewed (0)