this post was submitted on 29 Feb 2024
9 points (73.7% liked)

Selfhosted

37924 readers
589 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

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.

you are viewing a single comment's thread
view the rest of the comments
[–] ArbiterXero@lemmy.world 8 points 4 months ago (4 children)

2gb memory is not nearly enough.

[–] dinckelman@lemmy.world 4 points 4 months ago

While not untrue, it’s not entirely accurate. My entire arr stack runs on a 3b+ with just a gig of ram, with some still left over. It all depends on what, and how you run it

[–] rambos@lemm.ee 3 points 4 months ago

Agree! I had arr stack + nextcloud on rpi4 4GB and it was using bit less than 3GB after restart, but after some time it would hit 4GB and start using SWAP and I would have issue just like OP. Solved that by moving server to DIY PC with 8 GB, but then I added many more services and had to upgrade to 16 GB. Sitting at 4+GB free RAM all the time while using 40+ services

[–] VitabytesDev@feddit.nl 1 points 4 months ago (1 children)

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

[–] Fisch@lemmy.ml 3 points 4 months ago (1 children)

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

[–] picnicolas@slrpnk.net 3 points 4 months ago (2 children)

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

[–] Nibodhika@lemmy.world 1 points 4 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.

[–] Fisch@lemmy.ml 1 points 4 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.

[–] VitabytesDev@feddit.nl 1 points 4 months ago (1 children)

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.

[–] ArbiterXero@lemmy.world 1 points 4 months ago (1 children)

What’s your cooling solution?

Could it be throttling the cpu?

[–] VitabytesDev@feddit.nl 1 points 4 months ago

I have a heatsink above CPU, RAM, and Wi-Fi card. I think I should get a fan.