Hello everyone, I have a Raspberry Pi 4B with 2GBs of RAM. I am trying to run all the *arr stack via docker containers(5 or 6 containers) but this causes my Raspberry Pi to lag very much. I could not use any of the stack’s web interface or SSH to the pi during the lag and to fix it I had to reset the pi.

I think it is because I have little RAM but it might also be the power supply because I sometimes get messages for undervoltage.

What do you think is happening and how could I fix it? Do I need to buy a more powerful device?

Thanks in advance.

  • VitabytesDev@feddit.nlOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    8 months ago

    OK, I am trying to setup a swap partition right now to see if that will improve performance.

    • Fisch@lemmy.ml
      link
      fedilink
      English
      arrow-up
      3
      ·
      8 months ago

      You can also just make a swap file, you won’t have to make partition that way

      • picnicolas@slrpnk.net
        link
        fedilink
        English
        arrow-up
        3
        ·
        8 months ago

        You don’t want a swap file on the SD card as excessive writes will kill it rather quickly.

        • Fisch@lemmy.ml
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          So does a swap partition. I just meant that’s an option as an alternative to it. But now that I think about it, not enough RAM wouldn’t cause performance issues anyway, it would just cause random applications to stop working.

        • Nibodhika@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 months ago

          File and partition get just as many writes. In fact files are better because you can create a second file on a different location and move the swap more easily to try to keep the writes spread across the card.