From owner-freebsd-security Tue Sep 4 0:44:56 2001 Delivered-To: freebsd-security@freebsd.org Received: from internethelp.ru (wh.internethelp.ru [212.113.112.145]) by hub.freebsd.org (Postfix) with ESMTP id 5983D37B407 for ; Tue, 4 Sep 2001 00:44:51 -0700 (PDT) Received: from IBMKA (ibmka.internethelp.ru. [192.168.0.6]) by internethelp.ru (8.9.3/8.9.3) with ESMTP id LAA73395 for ; Tue, 4 Sep 2001 11:44:49 +0400 (MSD) Date: Tue, 4 Sep 2001 11:44:49 +0400 From: "Nickolay A.Kritsky" X-Mailer: The Bat! (v1.49) Personal Reply-To: "Nickolay A.Kritsky" X-Priority: 3 (Normal) Message-ID: <48396009431.20010904114449@internethelp.ru> To: freebsd-security@FreeBSD.ORG Subject: Need help with limits(1) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 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