- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 31 for getncpu (0.22 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) -
pkg/kubelet/apis/podresources/server_v1_test.go
mockPodsProvider.EXPECT().GetPods().Return(tc.pods).AnyTimes() mockDevicesProvider.EXPECT().GetDevices(string(podUID), containerName).Return(tc.devices).AnyTimes() mockCPUsProvider.EXPECT().GetCPUs(string(podUID), containerName).Return(tc.cpus).AnyTimes() mockMemoryProvider.EXPECT().GetMemory(string(podUID), containerName).Return(tc.memory).AnyTimes()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 45.9K bytes - Viewed (0) -
pkg/kubelet/cm/fake_container_manager.go
cm.Lock() defer cm.Unlock() cm.CalledFunctions = append(cm.CalledFunctions, "UpdateAllocatedDevices") return } func (cm *FakeContainerManager) GetCPUs(_, _ string) []int64 { cm.Lock() defer cm.Unlock() cm.CalledFunctions = append(cm.CalledFunctions, "GetCPUs") return nil } func (cm *FakeContainerManager) GetAllocatableCPUs() []int64 { cm.Lock() defer cm.Unlock() return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 14 17:33:04 UTC 2023 - 7.4K bytes - Viewed (0) -
pilot/pkg/networking/core/networkfilter.go
includeMx bool, ) []*listener.Filter { idleTimeout := destinationRule.GetTrafficPolicy().GetConnectionPool().GetTcp().GetIdleTimeout() if idleTimeout == nil { idleTimeout = parseDuration(lb.node.Metadata.IdleTimeout) } tcpProxy := &tcp.TcpProxy{ StatPrefix: statPrefix,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 13.7K bytes - Viewed (0) -
pkg/config/analysis/analyzers/virtualservice/util.go
DestinationIndex int Destination *v1alpha3.Destination } func getRouteDestinations(vs *v1alpha3.VirtualService) []*AnnotatedDestination { destinations := make([]*AnnotatedDestination, 0) for i, r := range vs.GetTcp() { for j, rd := range r.GetRoute() { destinations = append(destinations, &AnnotatedDestination{ RouteRule: "tcp", ServiceIndex: i, DestinationIndex: j,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Aug 07 15:18:05 UTC 2023 - 2.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/timer/SystemMonitorTarget.java
append(buf, "percent", () -> osProbe.getSystemCpuPercent()); final OsStats osStats = osProbe.osStats(); buf.append("},"); append(buf, "load_averages", () -> osStats.getCpu().getLoadAverage()); buf.append("},"); } private void appendFesenStats(final StringBuilder buf) { String stats = null; try {
Registered: Wed Jun 12 13:08:18 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 7.5K bytes - Viewed (0) -
pkg/kubelet/cm/container_manager_stub.go
return topologymanager.NewFakeManager() } func (cm *containerManagerStub) UpdateAllocatedDevices() { return } func (cm *containerManagerStub) GetCPUs(_, _ string) []int64 { return nil } func (cm *containerManagerStub) GetAllocatableCPUs() []int64 { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 15 02:26:59 UTC 2023 - 5.9K bytes - Viewed (0) -
pkg/kubelet/apis/podresources/server_v1.go
containerResources := &podresourcesv1.ContainerResources{ Name: container.Name, Devices: p.devicesProvider.GetDevices(string(pod.UID), container.Name), CpuIds: p.cpusProvider.GetCPUs(string(pod.UID), container.Name), Memory: p.memoryProvider.GetMemory(string(pod.UID), container.Name), } if utilfeature.DefaultFeatureGate.Enabled(kubefeatures.KubeletPodResourcesDynamicResources) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Feb 21 13:00:09 UTC 2024 - 6.2K bytes - Viewed (0) -
pkg/kubelet/cm/cpumanager/cpu_assignment.go
// The 'getCPU()' parameter defines the function that should be called to // retrieve the list of available CPUs for the type being referenced. If two // NUMA nodes/sockets/cores/cpus have the same number of available CPUs, they // are sorted in ascending order by their id. func (a *cpuAccumulator) sort(ids []int, getCPUs func(ids ...int) cpuset.CPUSet) { sort.Slice(ids,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu Jan 25 23:56:21 UTC 2024 - 36.3K bytes - Viewed (0) -
src/internal/syscall/windows/syscall_windows.go
const ( LOCKFILE_FAIL_IMMEDIATELY = 0x00000001 LOCKFILE_EXCLUSIVE_LOCK = 0x00000002 ) const MB_ERR_INVALID_CHARS = 8 //sys GetACP() (acp uint32) = kernel32.GetACP //sys GetConsoleCP() (ccp uint32) = kernel32.GetConsoleCP
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 26 22:55:25 UTC 2024 - 15.5K bytes - Viewed (0)