From owner-freebsd-isp Fri May 31 01:35:42 1996 Return-Path: owner-isp Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id BAA28994 for isp-outgoing; Fri, 31 May 1996 01:35:42 -0700 (PDT) Received: from mailhub.aros.net (mailhub.aros.net [205.164.111.17]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id BAA28986 for ; Fri, 31 May 1996 01:35:38 -0700 (PDT) Received: from terra.aros.net (terra.aros.net [205.164.111.10]) by mailhub.aros.net (8.7.5/Unknown) with ESMTP id DAA18610; Fri, 31 May 1996 03:07:09 -0600 (MDT) Received: (from angio@localhost) by terra.aros.net (8.7.5/8.6.12) id CAA32523; Fri, 31 May 1996 02:35:34 -0600 From: Dave Andersen Message-Id: <199605310835.CAA32523@terra.aros.net> Subject: Re: detecting and killing CPU hogs To: map@iphil.net (Miguel A.L. Paraz) Date: Fri, 31 May 1996 02:35:33 -0600 (MDT) Cc: angio@aros.net, freebsd-isp@freebsd.org In-Reply-To: <199605310829.QAA07394@marikit.iphil.net> from "Miguel A.L. Paraz" at May 31, 96 04:29:28 pm X-Mailer: ELM [version 2.4 PL25 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-isp@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Lo and behold, Miguel A.L. Paraz once said: > I can do it... I just need to know the criterion for telling which > processes should be killed... those whose owners aren't logged in? > But then, it could be a POP daemon or something similar. I do it by the amount of time the process has used up. I have two categories for programs depending on how much time I think they should be allowed to eat. I only kill certain processes - elm, pine, tin, lynx, bash, etc., that seem to go wild. So then just see if: o They're not root o It's not a process you really don't want killed. (init comes to mind). Perhaps excessive paranoia, but with something that kill -9's as root, I tend to prefer it. :) o The process is on your kill list o The process has used > XX minutes of CPU time. > Same here! It's not my system, but a client's, actually. > Any users out there particularly fond of csh? I use tcsh. Great shell, especially if you're an emacs kind of person. -Dave Andersen -- angio@aros.net Complete virtual hosting and business-oriented system administration Internet services. (WWW, FTP, email) http://www.aros.net/ http://www.aros.net/about/virtual "There are only two industries that refer to thier customers as 'users'."