Skip to content
  • Hjem
  • Seneste
  • Etiketter
  • Populære
  • Verden
  • Bruger
  • Grupper
Temaer
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Kollaps
FARVEL BIG TECH
  1. Forside
  2. Ikke-kategoriseret
  3. This is FASCINATING.

This is FASCINATING.

Planlagt Fastgjort Låst Flyttet Ikke-kategoriseret
220 Indlæg 120 Posters 0 Visninger
  • Ældste til nyeste
  • Nyeste til ældste
  • Most Votes
Svar
  • Svar som emne
Login for at svare
Denne tråd er blevet slettet. Kun brugere med emne behandlings privilegier kan se den.
  • benjamineskola@hachyderm.ioB benjamineskola@hachyderm.io

    @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

    gabrielesvelto@mas.toG This user is from outside of this forum
    gabrielesvelto@mas.toG This user is from outside of this forum
    gabrielesvelto@mas.to
    wrote sidst redigeret af
    #73

    @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.

    damonhd@mastodon.socialD itgrrl@infosec.exchangeI 2 Replies Last reply
    0
    • hzulla@infosec.exchangeH hzulla@infosec.exchange

      This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

      https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

      me@mastodon.seahousen.euM This user is from outside of this forum
      me@mastodon.seahousen.euM This user is from outside of this forum
      me@mastodon.seahousen.eu
      wrote sidst redigeret af
      #74

      @hzulla AFAIK the general suggestion for cron jobs that run e.g. 'every hour' is to randomize the second and minute it's set to start at

      1 Reply Last reply
      0
      • funkylab@mastodon.socialF funkylab@mastodon.social

        @DamonHD yes, but as said, the OG korn shell does this. And that thing is from 1983. I am always a bit interested in computational history, but never in "my beard is greyer than yours, my neck less kempt!" competitions.

        damonhd@mastodon.socialD This user is from outside of this forum
        damonhd@mastodon.socialD This user is from outside of this forum
        damonhd@mastodon.social
        wrote sidst redigeret af
        #75

        @funkylab As it happens you can see from my profile pic that I am a greybeard. But all I claim here is that none of the shells that I systematically use in dev or prod support(ed) $RANDOM, so that was not a more elegant option open to me. Your experience may well be different and better.

        1 Reply Last reply
        0
        • hzulla@infosec.exchangeH hzulla@infosec.exchange

          This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

          https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

          cpragman@mastodon.socialC This user is from outside of this forum
          cpragman@mastodon.socialC This user is from outside of this forum
          cpragman@mastodon.social
          wrote sidst redigeret af
          #76

          @hzulla
          Someone(s) in MD has been beating the snot out of one of my plants’ generators. This article may explain why.

          Lots of extra downtime for generator repairs. (Usually a 20 year rewind we can schedule).

          1 Reply Last reply
          0
          • jak2k@mastodon.deJ jak2k@mastodon.de

            @benjamineskola @hzulla It wouldn't create a small spike at the minute mark. Most Linux distributions use SystemD and its timers have this randomization built-in and considered while timer scheduling: https://www.freedesktop.org/software/systemd/man/latest/systemd.timer.html#RandomizedDelaySec=

            extua@mamot.frE This user is from outside of this forum
            extua@mamot.frE This user is from outside of this forum
            extua@mamot.fr
            wrote sidst redigeret af
            #77

            @jak2k @benjamineskola @hzulla I didn't know this was built into systemd, super useful feature!

            1 Reply Last reply
            0
            • hzulla@infosec.exchangeH hzulla@infosec.exchange

              This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

              https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

              demofox@mastodon.gamedev.placeD This user is from outside of this forum
              demofox@mastodon.gamedev.placeD This user is from outside of this forum
              demofox@mastodon.gamedev.place
              wrote sidst redigeret af
              #78

              @hzulla stochastic amortization for the win

              1 Reply Last reply
              0
              • hzulla@infosec.exchangeH hzulla@infosec.exchange

                This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

                https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

                jhelberg@mastodon.socialJ This user is from outside of this forum
                jhelberg@mastodon.socialJ This user is from outside of this forum
                jhelberg@mastodon.social
                wrote sidst redigeret af
                #79

                @hzulla I always add a random number of seconds to hourly jobs. To avoid load impact. Happy to know that this impact-avoidance stretches further than I thought.

                1 Reply Last reply
                0
                • gabrielesvelto@mas.toG gabrielesvelto@mas.to

                  @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.

                  damonhd@mastodon.socialD This user is from outside of this forum
                  damonhd@mastodon.socialD This user is from outside of this forum
                  damonhd@mastodon.social
                  wrote sidst redigeret af
                  #80

                  @gabrielesvelto @benjamineskola @funkylab @hzulla I don't think any of the cron implementations that I've used have implemented RANDOM_DELAY across many *nixes.

                  shaknais@mastodon.socialS 1 Reply Last reply
                  0
                  • gbargoud@masto.nycG gbargoud@masto.nyc

                    @hzulla

                    At google, the internal cron service has a "@" option in the crontab which effectively hashes the name and uses that to pick a value for the entry so it's stable for a given job but globally distributed.

                    So instead of `0 0 0 * * *` for running a job daily at midnight, you would do `@ @ 0 * * *` to run it at a randomly chosen but stable time between midnight and 1 am.

                    damonhd@mastodon.socialD This user is from outside of this forum
                    damonhd@mastodon.socialD This user is from outside of this forum
                    damonhd@mastodon.social
                    wrote sidst redigeret af
                    #81

                    @gbargoud @hzulla But that will still start things at the top of whichever minute it is?

                    gbargoud@masto.nycG 1 Reply Last reply
                    0
                    • hzulla@infosec.exchangeH hzulla@infosec.exchange

                      This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

                      https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

                      steltenpower@social.edu.nlS This user is from outside of this forum
                      steltenpower@social.edu.nlS This user is from outside of this forum
                      steltenpower@social.edu.nl
                      wrote sidst redigeret af
                      #82

                      @hzulla Decades ago I read in Sun's Jini spec that services should wait a random short while, before announcing themselves on the LAN to prevent collision, which made me wonder how feasible an electric equivalent would be to prevent a fuse to blow on simultaneous start-up spikes …

                      1 Reply Last reply
                      0
                      • benjamineskola@hachyderm.ioB benjamineskola@hachyderm.io

                        @funkylab there is a related problem, which is when hourly/daily jobs get run all at the same minute across a large number of machines — updates for example. The issue there is either network traffic or load on the update servers though; and spreading it out doesn’t (and isn’t intended) to reduce the overall load, just to reduce the size of the spikes.

                        So I guess we also have to consider whether the power spikes are an issue in themselves (if they’re even measurable), or whether we’re more concerned with overall power consumption.

                        @hzulla

                        johntimaeus@infosec.exchangeJ This user is from outside of this forum
                        johntimaeus@infosec.exchangeJ This user is from outside of this forum
                        johntimaeus@infosec.exchange
                        wrote sidst redigeret af
                        #83

                        @benjamineskola @funkylab @hzulla

                        Easily solved with anachron (usual default random delay is 0-45 minutes)

                        benjamineskola@hachyderm.ioB drwho@masto.hackers.townD 2 Replies Last reply
                        0
                        • johntimaeus@infosec.exchangeJ johntimaeus@infosec.exchange

                          @benjamineskola @funkylab @hzulla

                          Easily solved with anachron (usual default random delay is 0-45 minutes)

                          benjamineskola@hachyderm.ioB This user is from outside of this forum
                          benjamineskola@hachyderm.ioB This user is from outside of this forum
                          benjamineskola@hachyderm.io
                          wrote sidst redigeret af
                          #84

                          @johntimaeus oh yeah, I don’t mean to say it’s a new or unsolved issue, but rather something that’s been a consideration in running scheduled jobs for a long time by now.

                          @funkylab @hzulla

                          1 Reply Last reply
                          0
                          • benjamineskola@hachyderm.ioB benjamineskola@hachyderm.io

                            @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.

                            derpumu@mstdn.gamesD This user is from outside of this forum
                            derpumu@mstdn.gamesD This user is from outside of this forum
                            derpumu@mstdn.games
                            wrote sidst redigeret af
                            #85

                            @benjamineskola @hzulla depends. Is cron checking the time the power spike or the actual job itself? I'd expect the on-the-minute bump of cron setting a random delay to be small compared to all the busy work smeared across the rest of the minute.

                            1 Reply Last reply
                            0
                            • damonhd@mastodon.socialD damonhd@mastodon.social

                              @gbargoud @hzulla But that will still start things at the top of whichever minute it is?

                              gbargoud@masto.nycG This user is from outside of this forum
                              gbargoud@masto.nycG This user is from outside of this forum
                              gbargoud@masto.nyc
                              wrote sidst redigeret af
                              #86

                              @DamonHD @hzulla

                              I might have the order wrong but I'm pretty sure I put @ for seconds and minutes and 0 for hours which would start at a random but stable minute and second within the given hour

                              damonhd@mastodon.socialD 1 Reply Last reply
                              0
                              • hzulla@infosec.exchangeH hzulla@infosec.exchange

                                This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

                                https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

                                maxheadroom@haathi.mxhdr.netM This user is from outside of this forum
                                maxheadroom@haathi.mxhdr.netM This user is from outside of this forum
                                maxheadroom@haathi.mxhdr.net
                                wrote sidst redigeret af
                                #87

                                @hzulla i can add to this story 😉 We once had a service that was integrated into every Windows Mobile that also stupidly checked in our service on a fixed clock. That wasn't a problem as long as Windows Mobile didn't had NTP. But then suddenly Microsoft added that feature and after a short time all phones suddenly had accurate time and DDOSed our service on the fixed interval.....

                                1 Reply Last reply
                                0
                                • atleagle@mastodon.onlineA atleagle@mastodon.online

                                  @hzulla being in some of the very early hyperspace AI datacenter space, we were informed by the power company that they were going to disconnect us for drops and spikes that were significant enough to harm the turbines. Its mitigated now, but at that time when a massive jobs stops all gpus at once, then another job comes in right behind it and starts them all again it could literally break the generation

                                  atleagle@mastodon.onlineA This user is from outside of this forum
                                  atleagle@mastodon.onlineA This user is from outside of this forum
                                  atleagle@mastodon.online
                                  wrote sidst redigeret af
                                  #88

                                  @hzulla I know i typed hyerscale, but the auto correct is too funny to edit

                                  1 Reply Last reply
                                  0
                                  • gbargoud@masto.nycG gbargoud@masto.nyc

                                    @DamonHD @hzulla

                                    I might have the order wrong but I'm pretty sure I put @ for seconds and minutes and 0 for hours which would start at a random but stable minute and second within the given hour

                                    damonhd@mastodon.socialD This user is from outside of this forum
                                    damonhd@mastodon.socialD This user is from outside of this forum
                                    damonhd@mastodon.social
                                    wrote sidst redigeret af
                                    #89

                                    @gbargoud @hzulla we may be talking across one another here, but cron only goes does to minute resolution AFAIK; seconds can't be specified in any version that I've seen or used.

                                    gbargoud@masto.nycG 1 Reply Last reply
                                    0
                                    • damonhd@mastodon.socialD damonhd@mastodon.social

                                      @gbargoud @hzulla we may be talking across one another here, but cron only goes does to minute resolution AFAIK; seconds can't be specified in any version that I've seen or used.

                                      gbargoud@masto.nycG This user is from outside of this forum
                                      gbargoud@masto.nycG This user is from outside of this forum
                                      gbargoud@masto.nyc
                                      wrote sidst redigeret af
                                      #90

                                      @DamonHD @hzulla

                                      Oh I must be misremembering that part then. It's been a while since I had to write a crontab and I always have to consult the comment at the top and then forget everything once I exit.

                                      damonhd@mastodon.socialD 1 Reply Last reply
                                      0
                                      • hzulla@infosec.exchangeH hzulla@infosec.exchange

                                        This is FASCINATING. Researchers were able to pin down the cause of measurable global 60 second power spikes to software that does regular checks on the minute mark. They found large scale battery installations as one major cause, but obviously this is true for any other computerized system that does cron jobs and has a synchronized clock. As weird as it sounds, adding random 0-59.999s delays to cron jobs in Linux distributions and other software would actually help the power grid.

                                        https://www.fz-juelich.de/en/news/archive/press-release/2026/mystery-of-60-second-fluctuations-in-power-grids-solved

                                        paul_ipv6@infosec.exchangeP This user is from outside of this forum
                                        paul_ipv6@infosec.exchangeP This user is from outside of this forum
                                        paul_ipv6@infosec.exchange
                                        wrote sidst redigeret af
                                        #91

                                        @hzulla

                                        we keep unlearning this.

                                        when i worked at a large cable company doing DNS, we noticed a huge query spike every 15 minutes starting on the hour. the spikes were well above the normal running DNS load.

                                        turned out, the set top boxes checked internet working by every one of them all doing the same query in cron at 0/15/30/45...

                                        i dropped our entired DNS infrastructure peak load requirements by just getting them to add a random sleep interval after 0/15/30/45 to even out the query load...

                                        synlogic4242@social.vivaldi.netS 1 Reply Last reply
                                        0
                                        • gbargoud@masto.nycG gbargoud@masto.nyc

                                          @DamonHD @hzulla

                                          Oh I must be misremembering that part then. It's been a while since I had to write a crontab and I always have to consult the comment at the top and then forget everything once I exit.

                                          damonhd@mastodon.socialD This user is from outside of this forum
                                          damonhd@mastodon.socialD This user is from outside of this forum
                                          damonhd@mastodon.social
                                          wrote sidst redigeret af
                                          #92

                                          @gbargoud @hzulla oh yes, me too, me too!

                                          1 Reply Last reply
                                          0
                                          Svar
                                          • Svar som emne
                                          Login for at svare
                                          • Ældste til nyeste
                                          • Nyeste til ældste
                                          • Most Votes


                                          • Log ind

                                          • Login or register to search.
                                          Powered by NodeBB Contributors
                                          Graciously hosted by data.coop
                                          • First post
                                            Last post
                                          0
                                          • Hjem
                                          • Seneste
                                          • Etiketter
                                          • Populære
                                          • Verden
                                          • Bruger
                                          • Grupper