From owner-freebsd-hackers Tue Jan 26 13:57:04 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA06304 for freebsd-hackers-outgoing; Tue, 26 Jan 1999 13:57:04 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from xylan.com (postal.xylan.com [208.8.0.248]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA06294 for ; Tue, 26 Jan 1999 13:57:01 -0800 (PST) (envelope-from wes@softweyr.com) Received: from mailhub.xylan.com by xylan.com (8.8.7/SMI-SVR4 (xylan-mgw 2.2 [OUT])) id NAA29637; Tue, 26 Jan 1999 13:54:11 -0800 (PST) Received: from utah.XYLAN.COM by mailhub.xylan.com (SMI-8.6/SMI-SVR4 (mailhub 2.1 [HUB])) id NAA20256; Tue, 26 Jan 1999 13:54:10 -0800 Received: from softweyr.com by utah.XYLAN.COM (SMI-8.6/SMI-SVR4 (xylan utah [SPOOL])) id OAA24979; Tue, 26 Jan 1999 14:54:09 -0700 Message-ID: <36AE3981.C3F59FF1@softweyr.com> Date: Tue, 26 Jan 1999 14:54:09 -0700 From: Wes Peters Organization: Softweyr LLC X-Mailer: Mozilla 4.5 [en] (X11; U; FreeBSD 2.2.7-RELEASE i386) X-Accept-Language: en MIME-Version: 1.0 To: Kevin Day CC: hackers@FreeBSD.ORG Subject: Re: High Load cron patches - comments? References: <199901261853.MAA15095@home.dragondata.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Kevin Day wrote: > > I talked briefly about this with Paul Vixie (cron's author), while we had > differing ideas about how to accomplish this, my patches have been running > for over a month now on a production system, and have worked very well. > > [...] > > Paul's idea was to limit the number of children cron has running at a time, > hwoever for me this wasn't effective, as the user's jobs tend to hang around > for a long time. > > Can I get comments/suggestions about this? Commenting on the approach, rather than your implemenation: 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. -- Where am I, and what am I doing in this handbasket? Wes Peters +1.801.915.2061 Softweyr LLC wes@softweyr.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message