Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 6 Feb 2002 01:13:58 +0400
From:      nm <nm@wizard.web.am>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: fork rate limit
Message-ID:  <20020205211358.GA407@mail.web.am>
In-Reply-To: <20020204233550.GE88948@dan.emsphone.com>
References:  <20020202201551.GA89061@mail.web.am> <200202022052.g12KqOM17214@apollo.backplane.com> <20020202223546.GA430@mail.web.am> <200202030754.g137saC40573@blackbox.pacbell.net> <20020203160433.A10920@mail.slc.edu> <20020203223946.B13336@mail.slc.edu> <20020204175616.A1056@mail.slc.edu> <20020204181724.B1633@mail.slc.edu> <20020204233550.GE88948@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help

    First of all, thanks to all for telling their opinions :)
	I prefer to enforce both some preventive software measures as well 
	administrative ones. But i do not what that some
	kiddie/newbie/clueless one to take down box that is shared among
	many other students as well. 

	After listening to your all opinions I'm sure that this is to be
	implemented. i'll go on. 

	-skip-
-> Killing off parent procs could really upset a regular user who is
-> running ./configure, which could easily spawn a couple undred processes
-> in 10 seconds.  Maybe simply delay the fork() until the rate drops?
-> 
-> -- 
-> 	Dan Nelson
-> 	dnelson@allantgroup.com

	First of all I suggest not to kill parent, but childs. They must die
	with EAGAIN error, as manual page fork(2) describes. If we will
	delay forks we will exhaust all kernel memory promptly.

	Second - i specially told about 2 limits - how many processes to
	spawn and in what time range - i.e. you can allow '1000 process for
	60 secs' and it'll allow ./conifgure to run.

	[IMPLEMENTATION QUESTIONS] 
	Can i suggest that rlim_t is at least 32 bit long ? 
	I want to pack process limit and period length in one double word. 
	(for example 16 bits for process count limit and 16 - for time,
	 is gives range from 1 fork in 18 hours:) to 2^16 forks in 1 second)

	Or i should create 2 different RLIMIT_ constants ?

	thanx in advance

-- 
Gaspar Chilingarov

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020205211358.GA407>