From owner-freebsd-bugs Wed Jun 16 12:40:23 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from dt054n86.san.rr.com (dt054n86.san.rr.com [24.30.152.134]) by hub.freebsd.org (Postfix) with ESMTP id 6C96914EEE; Wed, 16 Jun 1999 12:40:18 -0700 (PDT) (envelope-from Studded@gorean.org) Received: from localhost (doug@localhost) by dt054n86.san.rr.com (8.8.8/8.8.8) with ESMTP id MAA23994; Wed, 16 Jun 1999 12:39:48 -0700 (PDT) (envelope-from Studded@gorean.org) Date: Wed, 16 Jun 1999 12:39:48 -0700 (PDT) From: Studded X-Sender: doug@dt054n86.san.rr.com To: The Tech-Admin Dude Cc: Luigi Rizzo , Dan Nelson , arikkert@surf.IAE.nl, freebsd-bugs@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: timeconsuming processes on FreeBSD 3.1 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 20 May 1999, The Tech-Admin Dude wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > I could add another one, top(1) frequently does that on this machine.. > so whatever answers you get, be sure to forward them to me :). Blast from the past, but since no one gave you an answer, here is one suggestion. I used to have this problem all the time until I discovered that top obeys environment variables. So, you could put the following in /etc/login.conf (make sure to rebuild the db after editing): :setenv=TOP='-I -d5' The -I just means "don't display idle processes," the -d5 means "do 5 cycles then exit." Both are overridable from the command line. You might want to set the -d value higher so that it's more transparent to the user, but after setting this up I've never had another runaway top process. HTH, Doug -- *** Chief Operations Officer, DALnet IRC network *** On account of being a democracy and run by the people, we are the only nation in the world that has to keep a government four years, no matter what it does. -- Will Rogers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message