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.
  • josh@fediscience.orgJ josh@fediscience.org

    @DamonHD @hzulla @edavies
    That’s really interesting. What are some early conversations you remember? Now that I have 20/20 hindsight I’d like to learn more.

    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
    #63

    @josh @hzulla @edavies Ed in particular said words ~20 years ago to the effect of all our NTP-synchronised loads would be hurting the grid...

    I introduced NTP to at least one trading floor, where synchronisation is good, but my distributed systems design tools to avoid accidental deadly embraces have long long included randomisation and prime numbers!

    1 Reply Last reply
    0
    • hanscees@ieji.deH hanscees@ieji.de

      @DamonHD @GiantGinkgo @hzulla I would just take the entire cronfiles on all your computers and change all 0 minutes to a random value. Thats random enough no?

      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
      #64

      @hanscees @GiantGinkgo @hzulla No. That's good and helpful and I do a lot of that, but the fact that cron starts everything on the start of *any* minute is part of the issue here.

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

        @davidrylander yeah sure, and it's also the least necessary application of awk to implement something the shell that starts awk can already do itself.
        But you wouldn't do that on Debian at all, but just simply use a timer that's randomized.
        `systemd-run --on-calendar=your_time_specification --timer-property=RandomizedDelaySec=33 your_command_here`

        @DamonHD @GiantGinkgo @hzulla

        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
        #65

        @funkylab @davidrylander @GiantGinkgo @hzulla So I run on a variety of *nixen and shells, and awk works well enough for my purposes. The facility you described arrived long after I started doing some of this stuff, but yes, I am thinking of upgrading.

        funkylab@mastodon.socialF 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

          jspath55@chaos.socialJ This user is from outside of this forum
          jspath55@chaos.socialJ This user is from outside of this forum
          jspath55@chaos.social
          wrote sidst redigeret af
          #66

          @hzulla Enterprise scheduling apps like CA AutoSys would kick off thousands if not millions a day, in places like stock brokers. The latency of the event management processor was a big deal. Users all wanting their daily reports kicked off at 08:00:00.000 would cause lags.
          Even with multithreading there were not simultaneous bursts of work as they was a logic matrix to work through, unlike cron commands.

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

            @funkylab @davidrylander @GiantGinkgo @hzulla So I run on a variety of *nixen and shells, and awk works well enough for my purposes. The facility you described arrived long after I started doing some of this stuff, but yes, I am thinking of upgrading.

            funkylab@mastodon.socialF This user is from outside of this forum
            funkylab@mastodon.socialF This user is from outside of this forum
            funkylab@mastodon.social
            wrote sidst redigeret af
            #67

            @DamonHD no, I don't mean systemd-run as what makes awk unnecessary here; the fact that any POSIX shell supports arithmetic expansion `$(( ))` and that basically all korn shell and bourne shell descendants (ksh[93], ash, {Net,Free}BSD bourne sh, OpenBSD [k]sh, bash, zsh, busybox sh…) support `RANDOM` means you can just `sleep $(( RANDOM % 33 ))` here instead of invoking awk to get a random number.

            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

              C This user is from outside of this forum
              C This user is from outside of this forum
              closeted_unionist@mastodon.social
              wrote sidst redigeret af
              #68

              @hzulla I don't understand. How does simultaneous power checks dip the frequency (in original paper)? Like I understand that at every minute mark there is some job running, but shouldn't the computation/ power usage be cheap for this?

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

                @DamonHD no, I don't mean systemd-run as what makes awk unnecessary here; the fact that any POSIX shell supports arithmetic expansion `$(( ))` and that basically all korn shell and bourne shell descendants (ksh[93], ash, {Net,Free}BSD bourne sh, OpenBSD [k]sh, bash, zsh, busybox sh…) support `RANDOM` means you can just `sleep $(( RANDOM % 33 ))` here instead of invoking awk to get a random number.

                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
                #69

                @funkylab I don't think I can in sh (actually dash), but certainly couldn't at some point in the past when I first tried. I am an old dog, and once a trick works I tend to keep it as-is!

                % sh
                $ echo $RANDOM

                $

                So I still can't on my server's sh...

                Nor my preferred interactive csh/tcsh:

                % echo $RANDOM
                RANDOM: Undefined variable.

                So, none of the shells that I actually use still!

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

                  @funkylab I don't think I can in sh (actually dash), but certainly couldn't at some point in the past when I first tried. I am an old dog, and once a trick works I tend to keep it as-is!

                  % sh
                  $ echo $RANDOM

                  $

                  So I still can't on my server's sh...

                  Nor my preferred interactive csh/tcsh:

                  % echo $RANDOM
                  RANDOM: Undefined variable.

                  So, none of the shells that I actually use still!

                  funkylab@mastodon.socialF This user is from outside of this forum
                  funkylab@mastodon.socialF This user is from outside of this forum
                  funkylab@mastodon.social
                  wrote sidst redigeret af
                  #70

                  @DamonHD huh, strange, what's your server's `sh` exactly (as in version? does `dash` have an especially restrictive POSIX mode?) Because, it doesn't seem to be in the listing of shells I just gave, or I'm missing something. It's not like I didn't look before I wrote that list 🙂

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

                    @DamonHD huh, strange, what's your server's `sh` exactly (as in version? does `dash` have an especially restrictive POSIX mode?) Because, it doesn't seem to be in the listing of shells I just gave, or I'm missing something. It's not like I didn't look before I wrote that list 🙂

                    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
                    #71

                    @funkylab My server's sh is actually dash, but I have been using *nix systems long enough for sh to have actually being the sh with a 56kB memory footprint!

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

                      @funkylab My server's sh is actually dash, but I have been using *nix systems long enough for sh to have actually being the sh with a 56kB memory footprint!

                      funkylab@mastodon.socialF This user is from outside of this forum
                      funkylab@mastodon.socialF This user is from outside of this forum
                      funkylab@mastodon.social
                      wrote sidst redigeret af
                      #72

                      @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 1 Reply Last reply
                      0
                      • 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
                                          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