# Swap File for more RAM - Help

**URL:** <https://community.umbrel.com/t/swap-file-for-more-ram-help/6827>\
**Category:** Support and Troubleshooting\
**Created:** [March 19, 2022, 6:26pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827 "2022-03-19T18:26:56Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bitnger](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bitnger](https://community.umbrel.com/u/bitnger)\
**Post date:** [March 19, 2022, 6:26pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/1 "2022-03-19T18:26:56Z")

</div>

Hello dear Umbrel community,

My node hardware is:  
-RB pi 4 (4GB)  
-SSD 2 TB

I’ve noticed that ~2-3 days after installing several apps in my Umbrel node (BTC explorer, Mempool, Blue Wallet or more) I can’t access my Umbrel Dashboard (please see image below in which the loading bar is frozen)

 ![image](https://canada1.discourse-cdn.com/flex030/uploads/getumbrel/original/2X/c/caccb06b9d0024d3ecf82fb0924669aa029c462d.png)

If I use the command: sudo reboot, it will temporarily solve the problem for ~2-3 days, but after that period of time the same problem comes back.

I tried using the following command to solve this issue:

cd umbrel  
sudo systemctl stop umbrel-startup && sudo rm -rf ~/umbrel/lnd/!(lnd.conf) && sudo rm -f ~/umbrel/db/user.json && sudo rm -f ~/umbrel/db/umbrel-seed/seed && sudo systemctl start umbrel-startup

However, this command, as you know, deletes all apps and restricts me to have LN channels up all the time. And even doing this, installing the apps again will result in the same problem.

Here are the Umbrel Logs I got just when my node crashes, which occurs ~1-2 days after installing the apps.

-Umbrel logs: [https://pastebin.com/VVhqv2Ma](https://pastebin.com/VVhqv2Ma)

- dmesg: [https://pastebin.com/VisbNy0a](https://pastebin.com/VisbNy0a)

* * *

I believe this issue might be related to RAM limitations of my RB pi 4 (only 4 GB), as it’s been very difficult to find 8GB ones these days.

Dear developers @DarthCoin & @louneskmt, is it possible to use a Swap File on the SSD to have more RAM available? Do you think this might help to solve this issue for those Users that do not count with more RAM? If so, could you please kindly indicate how we can do so?

I’d greatly appreciate your help on this.

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [March 19, 2022, 9:02pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/2 "2022-03-19T21:02:31Z")

</div>

> [@bitnger](#):
>
> Do you think this might help to solve this issue for those

No. Will not solve it.  
Just keep your node only with BTC/LN node + RTL/TH. mempool is not really necessary and that one is eating your resources.

Prepare to an upgrade is the only solution.  
No RPi with 8GB available? Simple: buy a damn normal PC/barebone with 8GB and move all data to it.

---

<div class="post-metadata">

**Author:** ![LoboGuara](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@LoboGuara](https://community.umbrel.com/u/LoboGuara)\
**Post date:** [March 19, 2022, 10:39pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/3 "2022-03-19T22:39:03Z")

</div>

This issue looks very interesting for me, for I have same apps, but I don´t have those crashes.  
One thing, I only installed any apps after full IBD and 100 sync.  
Well, suspect you may have a hardware issue behind this.  
I like to keep the ‘top’ linux app running, it shows memory use and command eating cpu

---

<div class="post-metadata">

**Author:** ![bitnger](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bitnger](https://community.umbrel.com/u/bitnger)\
**Post date:** [March 20, 2022, 12:33am UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/4 "2022-03-20T00:33:18Z")

</div>

@LoboGuara do you also have a 4GB RB pi?

---

<div class="post-metadata">

**Author:** ![LoboGuara](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@LoboGuara](https://community.umbrel.com/u/LoboGuara)\
**Post date:** [March 20, 2022, 3:17pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/5 "2022-03-20T15:17:05Z")

</div>

No, i have a 8GB that i set total\_mem=4096 to limit memory to 4GB for experiment. I got no memory problems yet.

Use wire connection with fixed IP, helps with those web crashs. Set eth0 IP in /etc/dhcpcd.conf with an IP off of dhcp router range.

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [March 20, 2022, 6:47pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/6 "2022-03-20T18:47:08Z")

</div>

There was a user here, posting how he did it with a VM with 512 GB RAM running Umbrel. I can’t find it right now, I know I saved the screenshot somewhere.

---

<div class="post-metadata">

**Author:** ![LoboGuara](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@LoboGuara](https://community.umbrel.com/u/LoboGuara)\
**Post date:** [March 20, 2022, 8:46pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/7 "2022-03-20T20:46:24Z")

</div>

With 512GB life is easy… 😃 With 2GB life still runs, but not so fast…

---

<div class="post-metadata">

**Author:** ![LoboGuara](https://avatars.discourse-cdn.com/v4/letter/l/54ee81/32.png) [@LoboGuara](https://community.umbrel.com/u/LoboGuara)\
**Post date:** [March 22, 2022, 4:48pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/8 "2022-03-22T16:48:17Z")

</div>

I did some observations of cpu load with basic apps, and find that Mempool is by far a cpu eater champion. It loads a RasPi cpu core to 60% or more most of time.  
So, I know it can give some privacy increase, but better not install it in a heavy loaded machine.

---

<div class="post-metadata">

**Author:** ![bitnger](https://avatars.discourse-cdn.com/v4/letter/b/ecae2f/32.png) [@bitnger](https://community.umbrel.com/u/bitnger)\
**Post date:** [March 22, 2022, 4:55pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/9 "2022-03-22T16:55:55Z")

</div>

And it did not work even though he used VM of 512 GB RAM, right?

---

<div class="post-metadata">

**Author:** ![DarthCoin](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.umbrel.com/darthcoin/32/1628_2.png) [@DarthCoin](https://community.umbrel.com/u/DarthCoin)\
**Post date:** [March 22, 2022, 5:14pm UTC](https://community.umbrel.com/t/swap-file-for-more-ram-help/6827/10 "2022-03-22T17:14:55Z")

</div>

Oh no, it worked super nice…
