Login
You're viewing the techdon.dev public feed.

Replies

  • Oct 31, 2026, 11:15 AM

    It is such an obvious cause once you think about it, and yet before you hear about this, no software developer or maintainer ever considers the possible effects of e.g. a default Debian cron job setting may have on the global electricity grid.

    💬 0🔄 4⭐ 7
  • benbenjamineskola@hachyderm.io
    Oct 31, 2026, 11:14 AM

    @hzulla would it actually help? Cron would still wake up at the minute mark in order to sleep again for a few more seconds.

    I suppose you’d have two smaller spikes: at the minute, and some seconds later; and the second one would be different for every machine and so average out on a global scale. The first spike would still exist, just smaller, perhaps.

    💬 0🔄 0⭐ 1
  • Oct 31, 2026, 2:04 PM

    @benjamineskola @hzulla I think that premise, "cron would wake up on the minute mark" is incorrect: you'd randomize the time it sleeps, in both positive and negative directions Compare how systemd-timers sleep; they already have a well-configurable randomization of wake times, exactly to combat loading a shared resource with a large number is simultaneously triggering machines.

    💬 0🔄 0⭐ 1
  • benbenjamineskola@hachyderm.io
    Oct 31, 2026, 2:09 PM

    @funkylab I mean, yeah, if you modified cron to do so. I was assuming that this was adding a random sleep to the start of the cron job itself, which was perhaps a misinterpretation. (I think OpenBSD cron already has this feature, but I’m not sure if it avoids the wake up or only delays the start of the task; and I haven’t seen it in other crons.)

    Although of course this might be a premature optimisation, because it hasn’t been shown that there’s a measurable amount of energy being used by cron wakeups in the first place.

    @hzulla

    💬 0🔄 0⭐ 1
  • Gabriele Sveltogabrielesvelto@mas.to
    Oct 31, 2026, 5:51 PM

    @benjamineskola @funkylab @hzulla maybe I'm off the mark here but cron implementations have always honored the RANDOM_DELAY env variable and it's always been recommended to set it to a non-zero value. IIRC systemd timers also honor it but I don't know if it's set by default or not.

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0