Fork fails

Michael Still mikal at
Thu Sep 19 16:47:19 EST 2002


I have an app which forks 4500 times or so (don't ask, it's a long story).
The run cycle looks like:

- fork
- do some stuff
- kill child
- go back to top

I am finding that about half of the forks return -1, and it looks like
this might mostly be the last half or so. Is there some sort of prcoess
limit I am bumping up against that I might not be aware of (this is on
2.4.18 x86 if that matters)?

Is it safe to assume this is just temporary resource exhaustion, wait a
couple of seconds, and then try again?



Michael Still (mikal at     UTC +10 hours

More information about the linux mailing list