From owner-freebsd-security Tue Sep 4 9:31:49 2001 Delivered-To: freebsd-security@freebsd.org Received: from www.suntop-cn.com (www.suntop-cn.com [61.140.76.155]) by hub.freebsd.org (Postfix) with ESMTP id 958F837B40B for ; Tue, 4 Sep 2001 09:31:43 -0700 (PDT) Received: from win ([61.144.144.96]) (authenticated) by www.suntop-cn.com (8.11.3/8.11.3) with ESMTP id f84GVWB07605; Wed, 5 Sep 2001 00:31:32 +0800 (CST) (envelope-from slack@suntop-cn.com) Message-ID: <003801c1355f$115912e0$9201a8c0@home.net> From: "edwin chan" To: "Nickolay A.Kritsky" , References: <48396009431.20010904114449@internethelp.ru> Subject: Re: Need help with limits(1) Date: Wed, 5 Sep 2001 00:31:36 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org maybe lower you apache or perl processes by "renice" ----- Original Message ----- From: "Nickolay A.Kritsky" To: Sent: Tuesday, September 04, 2001 3:44 PM Subject: Need help with limits(1) > Hi, all. > I have a webserver running on FreeBSD 3.3. One of the perl scripts > located there has some bug, that puts him in the infinite loop. This > causes my webserver to stall, so that the only way to reboot is > hardware reset. I want to restrict user httpd to use no more than > 75% of CPU time. I read man limits(1) and man getrlimit(2) but they > only talk about limiting cputime in seconds, but not percents. It > means that I can restrict httpd process to run no more than 10 > seconds, but in this 10 seconds it will have access to all CPU power > of the computer, making administrative work quite impossible. How > can I add percent-based cputime restrictions for various users and > login classes? > > Any help is very good. > > ;------------------------------------------- > ; NKritsky > ; SysAdmin InternetHelp.Ru > ; http://www.internethelp.ru > ; mailto:nkritsky@internethelp.ru > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-security" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message