Searched refs:ncpu (Results 26 - 31 of 31) sorted by relevance

12

/freebsd-13-stable/usr.bin/systat/
H A Dvmstat.c142 static int ncpu; variable
412 etime /= ncpu;
795 size = sizeof(ncpu);
796 if (sysctlbyname("hw.ncpu", &ncpu, &size, NULL, 0) < 0 ||
797 size != sizeof(ncpu))
798 ncpu = 1;
/freebsd-13-stable/tools/tools/sysbuild/
H A Dsysbuild.sh75 ncpu=`sysctl -n kern.smp.cpus`
76 if [ $ncpu -gt 1 ] ; then
77 JARG="-j $ncpu"
/freebsd-13-stable/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-13-stable/usr.sbin/bhyve/
H A Dacpi.c964 acpi_build(struct vmctx *ctx, int ncpu) argument
969 basl_ncpu = ncpu;
/freebsd-13-stable/sys/kern/
H A Dkern_mib.c173 SYSCTL_INT(_hw, HW_NCPU, ncpu, CTLFLAG_RD|CTLFLAG_CAPRD,
/freebsd-13-stable/
H A DMakefile.inc11167 _ncpu_cmd=sysctl -n hw.ncpu 2>/dev/null || nproc 2>/dev/null || echo unknown
1180 echo "ncpu: $$(${_ncpu_cmd})${.MAKE.JOBS:S/^/, make -j/}"
1711 echo "ncpu: $$(${_ncpu_cmd})${.MAKE.JOBS:S/^/, make -j/}"

Completed in 140 milliseconds

12