From owner-freebsd-bugs Thu Aug 10 6:46:40 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from storm.FreeBSD.org.uk (storm.freebsd.org.uk [194.242.139.170]) by hub.freebsd.org (Postfix) with ESMTP id 8E56F37B808; Thu, 10 Aug 2000 06:46:35 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (hak.nat.Awfulhak.org [172.31.0.12]) by storm.FreeBSD.org.uk (8.9.3/8.9.3) with ESMTP id OAA12700; Thu, 10 Aug 2000 14:46:29 +0100 (BST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.9.3/8.9.3) with ESMTP id OAA04696; Thu, 10 Aug 2000 14:46:28 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200008101346.OAA04696@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: brian@FreeBSD.ORG Cc: brett@lariat.org, freebsd-bugs@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: conf/20498: All FreeBSD systems trigger massive late-night activity at the same times In-Reply-To: Message from of "Thu, 10 Aug 2000 04:23:41 PDT." <200008101123.EAA99038@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 10 Aug 2000 14:46:28 +0100 From: Brian Somers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Synopsis: All FreeBSD systems trigger massive late-night activity at the same times > > State-Changed-From-To: closed->open > State-Changed-By: brian > State-Changed-When: Thu Aug 10 04:21:46 PDT 2000 > State-Changed-Why: > I think it might be nice to have a mechanism whereby cron runs > maybe-periodic every 15 minutes between (say) 2:00 and 23:00. The > maybe-periodic script checks a touch file that indicates when the > last such periodic actually ran (say /var/db/periodic-{dai,week,month}ly.run. > If the file has a date of yesterday or before (or this day last week > or month depending on the periodic argument), the script picks a > random number between 1 and 24 (or 1 and 7 or 1 and 31) . If the > file is more than that number of hours (or days) old, the touch-file > is re-touched and the periodic run is invoked. > > This resolves the random-start-time issue, and also handles systems > that are shut down every night. > > I'll implement this if nobody objects. With a smarter algorithm (that actually works) and a default of the same behaviour as we see now. -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message