Article View: muc.lists.freebsd.current
Article #140Re: Should we add jitter to cron(8) ?
From: Dmitry Salychev
Date: Mon, 02 Nov 2026 11:53
Date: Mon, 02 Nov 2026 11:53
38 lines
3041 bytes
3041 bytes
Poul-Henning Kamp <phk@phk.freebsd.dk> writes: > Embedded systems using cron(8) are starting to cause macroscopic > effects at the top of the minute: > > https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved > > That indicates that we should add jitter to cron(8). > > I can see three ways to do it: > > A) By default cron(8) waits [0...N] seconds before executing commands. > This can be disabled with a command line option. > For a number of reasons which we can hash later, I suggest N=30 > > B) Same as A), but the command line option enables jitter. > > C) Same as A), but with additional crontab(5) syntax to say "dont > jitter this particular entry". > > I would argue that A is the proper choice. > > Comments ? Sounds reasonable to me. I'm also in favor of the A, but would consider even more conservative N=60 with a special release note stating cron(8) behavior is changed by default and how to restore the old one. Regards, Dmitry -- https://wiki.freebsd.org/DmitrySalychev -- Posted automagically by a mail2news gateway at muc.de e.V. Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<864idze9fi.fsf@paladin.salychev.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<6ae8733d.196.16f0653@critter.freebsd.dk>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail From: Dmitry Salychev <dsl@FreeBSD.org> Newsgroups: muc.lists.freebsd.current Subject: Re: Should we add jitter to cron(8) ? Date: Mon, 02 Nov 2026 12:53:37 +0100 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-current@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <864idze9fi.fsf@paladin.salychev.org> References: <6ae8733d.196.16f0653@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="77774"; mail-complaints-to="news-admin@muc.de" User-Agent: mu4e 1.12.15; emacs 31.1 X-Original-To: current@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793620421; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vTElgmrNwBDxf/eAy4LGJtNS2vgoGMfmMC3Wi4KsKss=; b=Gdg6fs27rR9feWS+Xpj2knaLl+eZE8GdD8u2ZK4aYq9LPRQpf/yRh/jk3LkWyit8fR1Eyp nOgu6G5gNMSekFQ+UjPSylSJB+alDx838MtK4xELc0u3Bt7EndQz1tbyQ82cPXJZpmg8Nc ZZdqgId1Bh41HZRflsGWgIkfJZfv/1zJH2aSmqZq0NqsFMKiTW1Z/JQkARWNeUNYR/Z0br CC+EhezhI4lXvrRPilITnIpCYmtLDo/oQAX6vBTF3K3UWZyvrodxI0H7Rxz2uRVDQp79Rl 6gNfgQaGVValsWjbyc4eSrbm8zrkEw5vN0nldXzxZWhv6RIX3OrxoY8jxqfpuQ== In-Reply-To: <6ae8733d.196.16f0653@critter.freebsd.dk> Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes