Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Provided I do not edit the file : /proc/sys/kernel/pid_max. Therefore, I assume the maximum PID would be 32768.

What happens if I create 32769 simultaneous processes?

share|improve this question
up vote 0 down vote accepted

From man fork on OS X (and BSD based systems in general):

 Fork() will fail and no child process will be created if:

 [EAGAIN]    The system-imposed limit on the total number of processes under
             execution would be exceeded.
             This limit is configuration-dependent.

 [EAGAIN]    The system-imposed limit MAXUPRC (<sys/param.h>) on the total number
             of processes under execution by a single user would be exceeded.

 [ENOMEM]    There is insufficient swap space for the new process.
share|improve this answer
Thanks a lot.... – Phelodas May 4 '13 at 5:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.