Linux – the range of a PID on Linux and Solaris

linuxpidsolaris

What is the maximum and minimum value for a PID (Process ID) on Linux and Solaris?

Best Answer

From http://www.alexxoid.com/blog/linux/getting-the-max-pid-value-for-linux-process.html:

To get the max PID value that can be assigned to Linux process, run the following command:

cat /proc/sys/kernel/pid_max

On most Linux machines, the default value is 32768 (= 215).

However, it can be set to any value up to 4194304 (= 222) if necessary. Servers might have a larger limit to avoid PID collisions, for example.

Related Topic