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.

  • atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    9 months ago

    Do I need to buy a more powerful device?

    Yes? You seem to have answered that yourself.

    Run “free” and see how much memory is being consumed. And “top” as well (hitting ‘m’ will sorry by memory usage).

    • picnicolas@slrpnk.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      9 months ago

      Just checked on my pi4 with 4GB of ram that has been running beautifully as a NAS with 2x10TB USB drives mirrored, *arr suite, and Jellyfin for a couple of years, only 250mb of RAM free. I’m glad I splurged and got the 4gb model.

    • VitabytesDev@feddit.nlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 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
        0
        ·
        9 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
          1
          ·
          9 months ago

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

    • VitabytesDev@feddit.nlOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      9 months ago

      I saw that it uses about 1,3 GB of memory. This means another 700MB remain. Because of this, I don’t think the cause is the memory. Also, I forgot to mention that I am also running qbittorrent for downloading, gluetun for VPN, and jellyfin and jellyseerr.