Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
NPROC(1)		FreeBSD	General	Commands Manual		      NPROC(1)

NAME
     nproc -- print the	number of processors

SYNOPSIS
     nproc [--all] [--ignore=count] nproc --help nproc --version

DESCRIPTION
     The nproc utility is used to print	the number of processors limited to
     the cpuset(2) of the current process, unless the --all flag is specified.

     The available flags are:

     --all   Count all processors currently online.

     --ignore=count
	     The result	is decreased by	count, but never below 1.

     --version
	     Print the current program version and exit. Don't use this	op-
	     tion.

     --help  Print usage information and exit.

COMPATIBILITY
     This program is intended to be compatible with nproc as found in GNU
     coreutils.

BUGS
     If	HyperThreading is enabled in BIOS and disabled in the kernel, the
     --all option on Linux will	still report all possible CPU threads.	On
     FreeBSD only active threads will be reported.

SEE ALSO
     cpuset(1)

HISTORY
     The nproc utility first appeared in FreeBSD 14.0.

AUTHORS
     Mateusz Guzik <mjg@FreeBSD.org> wrote the program and Piotr PaweA
     Stefaniak <pstef@FreeBSD.org> wrote this page.

FreeBSD	13.0		       February	15, 2023		  FreeBSD 13.0

NAME | SYNOPSIS | DESCRIPTION | COMPATIBILITY | BUGS | SEE ALSO | HISTORY | AUTHORS

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=nproc&sektion=1&manpath=FreeBSD+13.2-RELEASE+and+Ports>

home | help