From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Mon, 17 Jan 2005 19:16:11 +0000 Subject: Re: udevd - throttle fork() if we get to many childs in running Message-Id: <1105989371.6336.160.camel@localhost.localdomain> List-Id: References: <1104030808.5805.34.camel@localhost.localdomain> In-Reply-To: <1104030808.5805.34.camel@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Mon, 2005-01-17 at 10:52 -0800, Patrick Mansfield wrote: > Hi Kay - > > On Sun, Jan 16, 2005 at 05:16:39PM +0100, Kay Sievers wrote: > > > If the system reaches a defined limit of processes in running state, udevd > > starts to count its own processes in running state from its session (all > > forked hotplug child processes, subprocesses and callouts) and throttles > > further process forking if the limit is reached. > > Why do you only count running processes? Seems a bit abitrary, since you > don't know when the sleeping processes will become runnable. Good question! :) Hmm, yes it's not a hard limit. If we reach the running maximum, we at least don't fork more childs. My tests with the scsi_debug and a killer- hotplug-script worked very nice that way. > Why not increase the total limit, and count all of its processes? I > doubt that would change timings. The current scripts use sleep calls and I thought it would be nice to let other processes run if they do nothing in the meantime. Some stupid script may completely block the hotplug handling just by sleeping for a long time with that hard limit. Thanks, Kay ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel