Re: [Q] cannot fork w/ 1000s of procs (but still mem avail.)

Albert D. Cahalan (acahalan@cs.uml.edu)
Thu, 25 Oct 2001 01:04:31 -0400 (EDT)


It would be nice to do as follows:

1. have a process limit, with a default based on memory size
2. have a pid limit, 2x the above + 300, rounded up to 9999, 99999, etc.

So if we require 32 kB per process, then...

0 to 11 MB --> 3-digit
12 MB to 155 MB --> 4-digit
156 MB to 1.6 GB --> 5-digit (max kernel memory on x86)
1.7 GB to 16 GB --> 6-digit

The 15-bit limit isn't so bad though, as you can see from the
above. On x86, you get 1 PID for every 28 kB of kernel memory.
You will have some other uses for kernel memory too, if we may
assume that this box has some real work to do. So more likely,
you can't really have anywhere near that many processes anyway.

Thus there isn't any good reason to break the old user apps.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/