• thingsiplay@lemmy.ml
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    Is there a way to limit download bandwidth of programs started with this systemd-run command? Without changing some network settings, I just want to do it temporarily on the fly with commandline options.

  • badmin@lemmy.today
    link
    fedilink
    arrow-up
    15
    ·
    7 hours ago

    More obvious, but systemd has a lot of features that a simple cron doesn’t.

    Which cron?

    Oh wait. Why did I assume OP would know there are multiple implementations? 😄

    • 0x0@infosec.pub
      link
      fedilink
      arrow-up
      15
      ·
      6 hours ago

      You may have experienced this before. You have an agent write a script, perhaps to do some data analysis. It has a terrible memory leak, and suddenly your machine freezes and (hopefully) the kernel resumes after a bit with an OOM error I’ve had this a few times, and it’s very annoying…

      Holy fuck I can’t stop laughing at their reason for systemd for some reason, probably need an agent summarising their article for me

      • kibiz0r@midwest.social
        link
        fedilink
        English
        arrow-up
        4
        ·
        4 hours ago

        I remember way back when I was doing Ruby on Rails, we would always wrap the server processes in a manager (I forgot what it’s called) that watches the memory and restarts them when the leaks get too bad. What a ridiculous solution that was.

      • badmin@lemmy.today
        link
        fedilink
        arrow-up
        6
        ·
        5 hours ago

        This has been happening forever. This old post always pops up in my mind for some reason as a historic example from an earlier linux boom.

        Unfortunately, people have been pushed to not call out such things, because it’s “not nice”, when as the blog above shows, not calling it out is what’s not nice, and potentially dangerous.

        • frongt@lemmy.zip
          link
          fedilink
          arrow-up
          1
          ·
          1 hour ago

          Yeah. I called out someone here on Lemmy for just completely making shit up about some kernel feature, linked the documentation showing the actual meaning, and got downvoted for it.