Searched refs:ncpu (Results 51 - 66 of 66) sorted by relevance

123

/freebsd-current/usr.sbin/bhyve/aarch64/
H A Dbhyverun_machdep.c69 #define GIC_REDIST_SIZE(ncpu) ((ncpu) * 2 * PAGE_SIZE_64K)
/freebsd-current/tools/test/stress2/misc/
H A Dcrossmp5.sh35 N=`sysctl -n hw.ncpu`
H A Dchurn.sh40 /tmp/churn `sysctl -n hw.ncpu` `sysctl -n hw.usermem`
H A Dsched.sh50 cpus=`sysctl hw.ncpu | sed 's/.*: //'`
H A Dnamecache2.sh40 [ `sysctl hw.ncpu | sed 's/.* //'` -eq 1 ] && exit 0
H A Dmmap43.sh145 n=$((`sysctl -n hw.ncpu`))
/freebsd-current/usr.sbin/mptable/
H A Dmptable.c146 static int ncpu; variable
516 ncpu = 2;
584 ncpu = 0;
742 ++ncpu;
/freebsd-current/usr.bin/systat/
H A Dvmstat.c135 static int ncpu; variable
405 etime /= ncpu;
781 size = sizeof(ncpu);
782 if (sysctlbyname("hw.ncpu", &ncpu, &size, NULL, 0) < 0 ||
783 size != sizeof(ncpu))
784 ncpu = 1;
/freebsd-current/tools/tools/sysbuild/
H A Dsysbuild.sh74 ncpu=`sysctl -n kern.smp.cpus`
75 if [ $ncpu -gt 1 ] ; then
76 JARG="-j $ncpu"
/freebsd-current/usr.sbin/nfsd/
H A Dnfsd.c989 int ncpu, error, tuned_nfsdcnt; local
992 ncpu_size = sizeof(ncpu);
993 error = sysctlbyname("hw.ncpu", &ncpu, &ncpu_size, NULL, 0);
995 warnx("sysctlbyname(hw.ncpu) failed defaulting to %d nfs servers",
999 tuned_nfsdcnt = ncpu * 8;
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_linux_libcdep.cpp783 u32 ncpu; local
785 uptr len = sizeof(ncpu);
788 CHECK_EQ(internal_sysctl(req, 2, &ncpu, &len, NULL, 0), 0);
789 return ncpu;
/freebsd-current/usr.sbin/bhyve/
H A Dacpi.c730 acpi_build(struct vmctx *ctx, int ncpu) argument
732 basl_ncpu = ncpu;
/freebsd-current/tests/ci/
H A DMakefile25 PARALLEL_JOBS!=sysctl -n hw.ncpu 2>/dev/null || nproc 2>/dev/null
/freebsd-current/tools/tools/nanobsd/
H A Ddefaults.sh69 NANO_NCPU=$(sysctl -n hw.ncpu)
/freebsd-current/sys/kern/
H A Dkern_mib.c169 SYSCTL_INT(_hw, HW_NCPU, ncpu, CTLFLAG_RD|CTLFLAG_CAPRD,
/freebsd-current/
H A DMakefile.inc11254 _ncpu_cmd=sysctl -n hw.ncpu 2>/dev/null || nproc 2>/dev/null || echo unknown
1266 echo ">>> World built in $$seconds seconds, ncpu: $$(${_ncpu_cmd})${.MAKE.JOBS:S/^/, make -j/}"
1842 echo ">>> Kernel(s) ${BUILDKERNELS} built in $$seconds seconds, ncpu: $$(${_ncpu_cmd})${.MAKE.JOBS:S/^/, make -j/}"

Completed in 308 milliseconds

123