🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.current
Article #139

Should we add jitter to cron(8) ?

#139
From: Poul-Henning Kamp
Date: Mon, 02 Nov 2026 11:25
35 lines
4114 bytes
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 ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


--
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: <6ae8733d.196.16f0653@critter.freebsd.dk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.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

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.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: Poul-Henning Kamp <phk@phk.freebsd.dk>
Newsgroups: muc.lists.freebsd.current
Subject: Should we add jitter to cron(8) ?
Date: Mon, 02 Nov 2026 11:25:49 +0000
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-current@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <6ae8733d.196.16f0653@critter.freebsd.dk>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="58530"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1793618779; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:
	 content-transfer-encoding:content-transfer-encoding:list-id:list-help:
	 list-owner:list-unsubscribe:list-subscribe:list-post;
	bh=D3pmGcot9FatVYg3jaF8pvtian+AKTL9jevgTSr1BRk=;
	b=hcaJkfC9c4TiV0Z5rkhSDYO4gB2gevSdfQ7JsV0aBtBfaPolEAiE3areD+PZhY2/H98kEm
	5ypQed61/igj0jrEXMH7b5OxtMYm9EifKVci1ncxf3EYzktO26D8/cikDLu65uSDl2x8as
	sFkiFlFwT47rk0dcqWQXoOjab181OOdIYBEyiBrOtmEFf3ekkI3hpkinSdzKfVCPKC3k/A
	gZiBytEbUf11aOwsxuXMCL8SrPDfphCi04zHnKiY4Q1Ao4mCdxrfTejIjq268YdnKBjQpN
	8yYK4kjlxmyEU26RZCpjZ2ukLlZC/gGuhEvxN0ZNb1UmVRE1vKf+nExKeFWryg==
X-Original-To: current@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=none;
	dmarc=none;
	spf=pass (mx1.freebsd.org: domain of phk@critter.freebsd.dk designates 130.225.244.222 as permitted sender) smtp.mailfrom=phk@critter.freebsd.dk
Precedence: list
Content-ID: <33516.1793618749.1@critter.freebsd.dk>
X-Rspamd-Queue-Id: 4jJ8XH6gqKz4jYT
X-Spamd-Bar: +
X-Spamd-Result: default: False [1.50 / 15.00];
	SUBJECT_ENDS_QUESTION(1.00)[];
	HFILTER_FROMHOST_NORESOLVE_MX(0.50)[s2gw.ddhf.dk];
	FORGED_SENDER(0.30)[phk@phk.freebsd.dk,phk@critter.freebsd.dk];
	R_SPF_ALLOW(-0.20)[+mx];
	MIME_GOOD(-0.10)[text/plain];
	MISSING_XM_UA(0.00)[];
	ASN(0.00)[asn:1835, ipnet:130.225.0.0/16, country:EU];
	FREEFALL_USER(0.00)[phk];
	DMARC_NA(0.00)[freebsd.dk];
	MIME_TRACE(0.00)[0:+];
	MID_RHS_MATCH_FROMTLD(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	R_DKIM_NA(0.00)[];
	MLMMJ_DEST(0.00)[current@freebsd.org];
	RCVD_TLS_LAST(0.00)[];
	FROM_NEQ_ENVFROM(0.00)[phk@phk.freebsd.dk,phk@critter.freebsd.dk];
	FROM_HAS_DN(0.00)[];
	DNSWL_BLOCKED(0.00)[130.225.244.222:from];
	RCVD_COUNT_TWO(0.00)[2];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	TO_DN_NONE(0.00)[];
	PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org];
	ARC_NA(0.00)[]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes