Article View: muc.lists.freebsd.current
Article #148Re: Should we add jitter to cron(8) ?
From: Bakul Shah
Date: Mon, 02 Nov 2026 15:06
Date: Mon, 02 Nov 2026 15:06
38 lines
6848 bytes
6848 bytes
> On Nov 2, 2026, at 3:25 AM, 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 ? We can add a cron_flags="-s -j 30 -J 30" to /etc/defaults/rc.conf. I suspect the % of embedded FreeBSD systems is rather low to matter. Embedded Linux & various RTOSes will do their own thing in any case. -- 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:
<4B14783F-B368-4537-8074-1663530B583F@iitbombay.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: Bakul Shah <bakul@iitbombay.org>
Newsgroups: muc.lists.freebsd.current
Subject: Re: Should we add jitter to cron(8) ?
Date: Mon, 2 Nov 2026 07:06:55 -0800
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-current@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <4B14783F-B368-4537-8074-1663530B583F@iitbombay.org>
References: <6ae8733d.196.16f0653@critter.freebsd.dk>
MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.200.71.1.16\))
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="17371"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
t=1793632059; 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=Gj8PyYkxSQABahaY3saPCac8Bm1bhaJXf7NLehe44s8=;
b=w9D3oztoocID+P7Lus7HDGYT7wmQI1lH1jONME1gwTMKyU5MsilIzgRnlJSKnuLJZl6ZhG
4cuyab5k7g3EnTILAbDJYEWGEz9u9HcB5+l8a8Ti/sFOCnmBQCz5WtEa2hGHS3Pys+fjkN
r0e+GbFI14vGv+dWmeQiv8QJ9qY5CJbaljplpXiihmSUeax7CI9m6pyDjVTlZYWInuPf0d
Ko8tsPDP6PHLF24ULpbYMu0kttAQHt4//L4tyJHOxgb6akv1zGYoSk1CP1qknkGKHFMOP1
acHCnZi6NbyqtlhbvtV3U0w/6Myeay8LmmNt/Uz9zDA6egDhVKDPrGZeGVwQ4g==
X-Original-To: current@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
dkim=pass header.d=iitbombay.org header.s=google header.b=NLK6QO4L;
spf=pass (mx1.freebsd.org: domain of bakul@iitbombay.org designates 2607:f8b0:4864:20::1133 as permitted sender) smtp.mailfrom=bakul@iitbombay.org;
dmarc=pass (policy=quarantine) header.from=iitbombay.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=iitbombay.org; s=google; t=1793632028; x=1794236828; darn=freebsd.org;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:content-type:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=Gj8PyYkxSQABahaY3saPCac8Bm1bhaJXf7NLehe44s8=;
b=NLK6QO4L6lgb1ofVriMgEiLc5GbF2ufyawWb5RVAIZp2lTIIAr5oK9YLk3K915L18E
6uXalAMRMu2aujQcjXQS1ZJV8/srg2ZfQGUl53WYxkOb57HzDRQAOCxM8ctK1Ck27ryU
BHfK5/CtXcSlwd+8tnPv8G+7xiyrbe7D/qlNw=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1793632028; x=1794236828;
h=to:references:message-id:content-transfer-encoding:cc:date
:in-reply-to:from:subject:mime-version:content-type:x-gm-gg
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
:content-type;
bh=Gj8PyYkxSQABahaY3saPCac8Bm1bhaJXf7NLehe44s8=;
b=UU8QRPSTpnN6GhpgiwWrXmVGtb9yAWKawG8JF9qDPWjTq/sPqxyiQtP7U77Hiqh9Tl
/DJXELw5fNPeXPiiwomf/QhsZSYGpSC1z6UBN7Eaq6CEizaLdRK6uA3+z0OKO/NOy9Xa
uhHsrsX8UFXYSHXXIWUuJEcLZUNOyWk+nsAayyQo8jtIC3WkeEQsdOa8JXfSS/JUzDPH
3zB9odlJb89Gwe8iiQ0v6jlfmiKkpZySc5uaB+uSGWKvAmQQAJNUNvbj9xpbaGOd+zxd
Mh5yWF9ST7hWmCiYN6pVgSjz48QEEN3O6wWMAf/+tRUPJipEKQyRDZs9DrS5We5CmOJk
dzBA==
X-Gm-Message-State: APuU4Z9+u3lqorBJQyDbUARtkF1/4+IK+j/0Qj2feScZScTZWUgFscKo
ROqmJdjpqZhyA3ZEjZoiSFePxZcDwFVpKA2GlOvLTM3IQ5DX1n8Dk++/1a1EcN2t2btoJo/DiB2
TH9Q=
X-Gm-Gg: AYBFou16R7FCqIrWtGav6lfjBvzDFW1WzdA9vas7vjswx1IqUu0bE7qa0YUZcPFJgKM
qCnn48WE/GIG88j9k0O0MwUZjgIVMkuuNTWRG1ph9TGkLVCzZ33P3vH69S0rP3yFgRjWFcx8/ru
jwUBhNo5mqtiTsDNpAgScM3gPIq9Y9IGqsgaa78/amnEXFvKLIk4B+yBtYRlIRkXGL4BW4f+Sf1
1gPz4T+BDrBhgN/1X7wdoiyk2dUoPxJK/CFg+fGlyRrABcCw1jj8Zrh0tRzO88C7I6JxfmfhIxi
Roey2PsoPje9M6dWERxGu03HDFt/XrcjbqokZq5VGaMdVnHF4Glg5/bPS7vdYmT5kXJ1pkNYajX
LYF3PaI2U+Gfz9OCrjgsDxLApfHEA0eKk3AvvJSZZj0sphIjmthc1u2dKDlWW/NJbegT3lj9fvv
z2cflvUUNrja94kpcdeGwgMQEbTxLt5C1Q7qx+te8yA1MRSdZjrNeu1IvS2RWiYVyqmPAVrXARE
WIkIudwecoXSyFs1A/q+6U8T7j+P5oTjzGH5/XZfDpSxJ1UWXrnA+fKNv4PeP5x2WhXK962YjBK
snw/dvUSga/8vMeTA84azDwmDJMs7noClo3HuoKOlCeijqgmdvlSa6tqG6cLGPPSH45BcY4f4qx
9mH1nCOCEgjxOyzYR5abvcQBIDJCwTP5xHNL7qERcXv0J+Q==
Precedence: list
In-Reply-To: <6ae8733d.196.16f0653@critter.freebsd.dk>
X-Rspamd-Queue-Id: 4jJFRd6zLgz4TKW
X-Spamd-Bar: /
X-Spamd-Result: default: False [0.50 / 15.00];
SUBJECT_ENDS_QUESTION(1.00)[];
DMARC_POLICY_ALLOW(-0.50)[iitbombay.org,quarantine];
MV_CASE(0.50)[];
R_DKIM_ALLOW(-0.20)[iitbombay.org:s=google];
R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4864::/56];
MIME_GOOD(-0.10)[text/plain];
TO_DN_SOME(0.00)[];
MIME_TRACE(0.00)[0:+];
FREEFALL_USER(0.00)[bakul];
ARC_NA(0.00)[];
MID_RHS_MATCH_FROM(0.00)[];
ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
RCVD_VIA_SMTP_AUTH(0.00)[];
MLMMJ_DEST(0.00)[current@freebsd.org];
RCPT_COUNT_TWO(0.00)[2];
FROM_EQ_ENVFROM(0.00)[];
FROM_HAS_DN(0.00)[];
RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::1133:from];
RCVD_COUNT_TWO(0.00)[2];
PREVIOUSLY_DELIVERED(0.00)[current@freebsd.org];
TO_MATCH_ENVRCPT_SOME(0.00)[];
RCVD_TLS_LAST(0.00)[];
DKIM_TRACE(0.00)[iitbombay.org:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes