lkml.org 
[lkml]   [1997]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Reserved PID's
Date
  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.


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.049 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site