- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for getncpu (0.26 sec)
-
src/runtime/os_openbsd_arm.go
// license that can be found in the LICENSE file. package runtime func checkgoarm() { // TODO(minux): FP checks like in os_linux_arm.go. // osinit not called yet, so ncpu not set: must use getncpu directly. if getncpu() > 1 && goarm < 7 { print("runtime: this system has multiple CPUs and must use\n") print("atomic synchronization instructions. Recompile using GOARM=7.\n") exit(1) } } //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 662 bytes - Viewed (0) -
src/runtime/os_netbsd_arm.go
mc.__gregs[_REG_R2] = uint32(fn) } func checkgoarm() { // TODO(minux): FP checks like in os_linux_arm.go. // osinit not called yet, so ncpu not set: must use getncpu directly. if getncpu() > 1 && goarm < 7 { print("runtime: this system has multiple CPUs and must use\n") print("atomic synchronization instructions. Recompile using GOARM=7.\n") exit(1) } } //go:nosplit
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 1.1K bytes - Viewed (0) -
src/runtime/os_freebsd_arm.go
print("a binary compiled for VFPv3 hard floating point. Recompile adding ,softfloat\n") print("to GOARM or changing GOARM to 6.\n") exit(1) } // osinit not called yet, so ncpu not set: must use getncpu directly. if getncpu() > 1 && goarm < 7 { print("runtime: this system has multiple CPUs and must use\n") print("atomic synchronization instructions. Recompile using GOARM=7.\n") exit(1) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 1.4K bytes - Viewed (0) -
src/runtime/os_openbsd.go
return 0, false } return out, true } //go:linkname internal_cpu_sysctlUint64 internal/cpu.sysctlUint64 func internal_cpu_sysctlUint64(mib []uint32) (uint64, bool) { return sysctlUint64(mib) } func getncpu() int32 { // Try hw.ncpuonline first because hw.ncpu would report a number twice as // high as the actual CPUs running on OpenBSD 6.4 with hyperthreading // disabled (hw.smt=0). See https://golang.org/issue/30127
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:53:03 UTC 2024 - 6.2K bytes - Viewed (0) -
src/runtime/os_dragonfly.go
// From DragonFly's <sys/sysctl.h> const ( _CTL_HW = 6 _HW_NCPU = 3 _HW_PAGESIZE = 7 ) var sigset_all = sigset{[4]uint32{^uint32(0), ^uint32(0), ^uint32(0), ^uint32(0)}} func getncpu() int32 { mib := [2]uint32{_CTL_HW, _HW_NCPU} out := uint32(0) nout := unsafe.Sizeof(out) ret := sysctl(&mib[0], 2, (*byte)(unsafe.Pointer(&out)), &nout, nil, 0) if ret >= 0 { return int32(out) } return 1
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 20:34:30 UTC 2023 - 7.1K 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/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)