Messages in this thread | | | From | (Matthias Urlichs) | Subject | Re: Reserved PID's | Date | 25 Jul 1997 00:02:26 +0200 |
| |
Jon Lewis <jlewis@inorganic5.fdt.net> writes: > > Isn't that already basically done via: > if (nr_tasks >= NR_TASKS - MIN_TASKS_LEFT_FOR_ROOT) { > in include/linux/tasks.h MIN_TASKS_LEFT_FOR_ROOT defaults to 4, but I > generally raise it to 64. Ideally, this should stop anyone but root (or > root owned processes) from filling the process table...if you have enough > processes reserved for root. > inetd _is_ a root-owned process.
If you have problems with inetd spawning too many processes, either patch inetd do support counting and limiting the number of active processes per socket, or use something like tcpserver which already has this code built-in, or change the process in question to be its own daemon and implement counting and limiting yourself. The first option actually is the most difficult, assuming nobody has done this yet.
| |