Get Number of CPU Threads on Linux Debian

Posted on May 3, 2020 at 11:07 pm

You can get the number of CPU threads with this command:

nproc --all

Here is an example output on an AMD Ryzen 5 3600 Hexa-Core:


That is correct, the AMD Ryzen 5 3600 has 12 threads.

The command supports also multi-sockets servers.

Get number of CPU cores

Receive updates via email

Other Posts

Updated Posts