From owner-freebsd-hackers Wed Jan 27 07:56:56 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA01534 for freebsd-hackers-outgoing; Wed, 27 Jan 1999 07:56:56 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from obie.softweyr.com ([204.68.178.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA01519 for ; Wed, 27 Jan 1999 07:56:48 -0800 (PST) (envelope-from wes@softweyr.com) Received: from softweyr.com (zaphod.softweyr.com [204.68.178.35]) by obie.softweyr.com (8.8.8/8.8.8) with ESMTP id IAA27421; Wed, 27 Jan 1999 08:56:39 -0700 (MST) (envelope-from wes@softweyr.com) Message-ID: <36AF3733.E6DFEB9F@softweyr.com> Date: Wed, 27 Jan 1999 08:56:35 -0700 From: Wes Peters Organization: Softweyr llc X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 3.0-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Matthew Dillon CC: Kevin Day , hackers@FreeBSD.ORG Subject: Re: High Load cron patches - comments? References: <199901261853.MAA15095@home.dragondata.com> <36AE3981.C3F59FF1@softweyr.com> <199901262256.OAA22114@apollo.backplane.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Dillon wrote: > > :Wouldn't it be cleaner to limit it by load average rather than number of > :jobs? This would tend to allow small, one-shot cron entries that really > :don't eat a lot of resources to continue running on time, while saving > :the machine from the monster processes. > > No, this won't work at all. I have direct experience trying to > regulate things by load average. > > The problem is that the load average takes too long to ramp up and > ramp down. By the time it's ramped up, cron may have already forked > a thousand jobs. Plus if the system gets loaded on its own, you risk > an effective disablement of cron alltogether. So this is why pmake drives our system load average up to 8-10 before dropping back down to the assigned limit of 5, huh? Maybe we should fix the load average computations as John suggested. -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.softweyr.com/~softweyr wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message