<p><strong>Some SPOs in the community have reported that since version 1.29.x of cardano-node it requires at least 10GB of RAM to function properly. <strong>If your node has 8GB of RAM, maybe you should try adding swap (2GB or 4GB)</strong>.</strong></p>
<p>Assuming that you don't have any swap partition configured yet (Check it by running this command, if there is nothing back at the output, it means you currently don't have any swap space).</p>
<pre><code>sudo swapon --show
</code></pre>
<p><strong>STEP 1 - Create your swap file</strong></p>
<pre><code>sudo fallocate -l 2G /swapfile
</code></pre>
<p>Verify that the correct amount of space was reserved:</p>
<pre><code>ls -lh /swapfile
</code></pre>
<p>you should see:</p>
<p><em>-rw-r--r-- 1 root root 2.0G Sep 30 22:59 /swapfile</em></p>
<p><strong>STEP 2 - Enable the swap file</strong></p>
<pre><code>sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
</code></pre>
<p>Verify that the swap is now available</p>
<pre><code>sudo swapon --show
</code></pre>
<p>the output should be:</p>
<pre><code>NAME      TYPE  SIZE USED PRIO
/swapfile file 2048M   0B   -2
</code></pre>
<p><strong>STEP 3 - Add it to fstab to make it permanent at startup</strong></p>
<pre><code>echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
</code></pre>

CC BY-SA 4.0
2021-09-30T21:16:23.953Z
Interesting, I was also thinking about the mem. Will try and let you know
Bobby Banks
CC BY-SA 4.0
2021-10-01T08:02:13.773Z
It got better with decent swap space. Thx
Bobby Banks
CC BY-SA 4.0
2021-09-30T21:14:09.080Z
2021-09-30T21:14:09.080Z
baocontact
<p>from my investigations - cardano consumptions is too high even for simple transaction tracing, so you should use swap. Better to limit resources (with docker for example) to 12-16gb ram, then swap would be filled to 4-8gb approximately. It's impossible to run cardano on small servers.</p>

CC BY-SA 4.0
2024-10-24T10:01:23.827Z
2024-10-24T10:01:23.827Z
John Cooler
<p>Lately, after a node upgrade to a higher version (1.30.1), my Block-Producing (BP) node will &quot;stay&quot; in the &quot;start&quot; phase for about 45 minutes making a strange loop by switching to synchronization mode and then immediately going back to the &quot;start&quot; phase.</p>
<pre><code>[2021-09-30 03:17:34.14 UTC] Replayed block: slot SlotNo 40283991 of At (SlotNo 40321032)
[2021-09-30 03:17:37.33 UTC] block replay progress (%) = 100.0
[2021-09-30 03:17:37.72 UTC] before next, messages elided = 40284006
[2021-09-30 03:17:37.72 UTC] Replayed block: slot SlotNo 40305522 of At (SlotNo 40321032)
[2021-09-30 03:17:37.72 UTC] Replayed block: slot SlotNo 40305529 of At (SlotNo 40321032)
[2021-09-30 03:17:40.52 UTC] block replay progress (%) = 100.0
[2021-09-30 03:17:40.58 UTC] before next, messages elided = 40305616
[2021-09-30 03:17:40.58 UTC] Replayed block: slot SlotNo 40321032 of At (SlotNo 40321032)
[2021-09-30 03:17:40.58 UTC] Opened lgr db
</code></pre>
<p>I'm running my node on a 8GB RAM Ubuntu LTS with 4 vCPUs. Any thought anyone?</p>

<stake-pool><cardano-node><cardano-db-sync><syncing>
Why my cardano-node is now running a strange loop after an upgrade to a higher version?
# Why my cardano-node is now running a strange loop after an upgrade to a higher version?

(Asked by: username_0 on 2021-09-30)

Lately, after a node upgrade to a higher version (1.30.1), my Block-Producing (BP) node will "stay" in the "start" phase for about 45 minutes making a strange loop by switching to synchronization mode and then immediately going back to the "start" phase.
[2021-09-30 03:17:34.14 UTC] Replayed block: slot SlotNo 40283991 of At (SlotNo 40321032)
[2021-09-30 03:17:37.33 UTC] block replay progress (%) = 100.0
[2021-09-30 03:17:37.72 UTC] before next, messages elided = 40284006
[2021-09-30 03:17:37.72 UTC] Replayed block: slot SlotNo 40305522 of At (SlotNo 40321032)
[2021-09-30 03:17:37.72 UTC] Replayed block: slot SlotNo 40305529 of At (SlotNo 40321032)
[2021-09-30 03:17:40.52 UTC] block replay progress (%) = 100.0
[2021-09-30 03:17:40.58 UTC] before next, messages elided = 40305616
[2021-09-30 03:17:40.58 UTC] Replayed block: slot SlotNo 40321032 of At (SlotNo 40321032)
[2021-09-30 03:17:40.58 UTC] Opened lgr db

I'm running my node on a 8GB RAM Ubuntu LTS with 4 vCPUs. Any thought anyone?

**Tags:** stake-pool, cardano-node, cardano-db-sync, syncing

---

## 2 answers

### Answer by username_1 on 2021-09-30. Score: 2 | Accepted answer

Some SPOs in the community have reported that since version 1.29.x of cardano-node it requires at least 10GB of RAM to function properly. If your node has 8GB of RAM, maybe you should try adding swap (2GB or 4GB).
Assuming that you don't have any swap partition configured yet (Check it by running this command, if there is nothing back at the output, it means you currently don't have any swap space).
sudo swapon --show

STEP 1 - Create your swap file
sudo fallocate -l 2G /swapfile

Verify that the correct amount of space was reserved:
ls -lh /swapfile

you should see:
-rw-r--r-- 1 root root 2.0G Sep 30 22:59 /swapfile
STEP 2 - Enable the swap file
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

Verify that the swap is now available
sudo swapon --show

the output should be:
NAME      TYPE  SIZE USED PRIO
/swapfile file 2048M   0B   -2

STEP 3 - Add it to fstab to make it permanent at startup
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

> **Comments:**
> **username_0**: Interesting, I was also thinking about the mem. Will try and let you know  
> **username_0**: It got better with decent swap space. Thx  

---

### Answer by username_2 on 2024-10-24. Score: 0

from my investigations - cardano consumptions is too high even for simple transaction tracing, so you should use swap. Better to limit resources (with docker for example) to 12-16gb ram, then swap would be filled to 4-8gb approximately. It's impossible to run cardano on small servers.


---

