Article View: muc.lists.freebsd.current
Article #146Re: Should we add jitter to cron(8) ?
From: Bob Bishop
Date: Mon, 02 Nov 2026 13:38
Date: Mon, 02 Nov 2026 13:38
51 lines
4940 bytes
4940 bytes
Hi, > On 2 Nov 2026, at 11:25, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote: > > 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 ? Iβd vote for C; you donβt want people like me turning the jitter off globally because one entry is time-critical. > -- > 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. > -- Bob Bishop rb@gid.co.uk -- 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:
<A5A8C760-BD53-43DD-8CBE-66D5163DCA0D@gid.co.uk>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: Bob Bishop <rb@gid.co.uk> Newsgroups: muc.lists.freebsd.current Subject: Re: Should we add jitter to cron(8) ? Date: Mon, 2 Nov 2026 13:38:00 +0000 Organization: Newsgate at muc.de e.V. Sender: owner-freebsd-current@FreeBSD.org Approved: news-admin@muc.de Distribution: world Message-ID: <A5A8C760-BD53-43DD-8CBE-66D5163DCA0D@gid.co.uk> References: <6ae8733d.196.16f0653@critter.freebsd.dk> MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.3\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="53314"; mail-complaints-to="news-admin@muc.de" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1793626722; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post; bh=3CYa4aJhP5cxdOlG1xpKTEqPFf5GQ8FOVDNTklBmDbE=; b=VU4d9jnYtxsjjb8CCahfBzTREmdEiWcv4qSx5+Xdrsj9R+ibKS7LkXrgRjE49PqovgwMq3 dt9BjVNXKb+WX8xjZOkZWQG0eHVx6jnuQVdOlHo1aY52IBcFhIakhcZK2EfU5T0WCR2ny/ SB1jl03l1O+SIvO1p0u6f++TyDRj7QbOyGckI+4VIraeg2qsy465vtNWObHx8DUH5bgu2d 9s5pgxqIPGHDD3x0iq38dT6ID5YFd7mkhZrFfGP/9tHRsF2q1Hh1fDbDNnfUKsZk99Sk5A BTf/LZsMp3J4q22JRjUheCKAh17BCnJsKMJpbR8ClFr8gAvQ3tNCgSAHflxSIg== X-Original-To: current@mlmmj.nyi.freebsd.org Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gid.co.uk header.s=gid2 header.b=KCQQgDRC; spf=pass (mx1.freebsd.org: domain of rb@gid.co.uk designates 2001:470:94de::240 as permitted sender) smtp.mailfrom=rb@gid.co.uk; dmarc=pass (policy=none) header.from=gid.co.uk DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gid.co.uk; s=gid2; t=1793626695; bh=3CYa4aJhP5cxdOlG1xpKTEqPFf5GQ8FOVDNTklBmDbE=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=KCQQgDRCYSxA/5Q1QtYR6wNzL6fZ4atjSQy2roU3Cd0M4fhwgUZPbUtKxuowd7Bon FOetdAMT0kzkn0/prIW/nc6L6MUY/mcg1l3VxFTw1BiRRUMsSbN/cKWLeLYnQyaHPe PMpARyC8/BgKd+FBcpQagHvHrqk5EWNBvA9z2J3U= Precedence: list In-Reply-To: <6ae8733d.196.16f0653@critter.freebsd.dk> X-Rspamd-Queue-Id: 4jJCT65Cgrz4FLB X-Spamd-Bar: / X-Spamd-Result: default: False [0.50 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; DMARC_POLICY_ALLOW(-0.50)[gid.co.uk,none]; MV_CASE(0.50)[]; R_DKIM_ALLOW(-0.20)[gid.co.uk:s=gid2]; R_SPF_ALLOW(-0.20)[+ip6:2001:470:94de::0/64]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; TO_DN_EQ_ADDR_SOME(0.00)[]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:6939, ipnet:2001:470::/32, country:US]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[current@FreeBSD.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; DNSWL_BLOCKED(0.00)[2001:470:94de::240:from,194.32.164.250:received]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gid.co.uk:+] X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes