GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
* Sign Up! *

Support
Customer Portal
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
NPROC(1) FreeBSD General Commands Manual NPROC(1)

nprocprint the number of processors

nproc [--all] [--ignore=count]

nproc --help

nproc --version

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:

Count all processors currently online.
=count
The result is decreased by count, but never below 1.
Print the current program version and exit. Do not use this option.
Print usage information and exit.

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

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.

The nproc utility first appeared in FreeBSD 13.2.

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

June 2, 2023 FreeBSD 15.1-RELEASE-p1

Search for    or go to Top of page |  Section 1 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.