High memory usage on RasPi 4 (8GB)

Just out of curiosity.

My 8GB RasPi uses 72 - 76% of his memory most of the time. After running the debug I found out that the system alone takes 46%.

How can umbrel even run on a 4GB RasPi (8GB is only recommended, not mandatory)?


Memory usage

          total        used        free      shared  buff/cache   available

Mem: 7.8G 5.7G 216M 415M 1.9G 1.6G
Swap: 4.1G 4.1G 0B

total: 72.4%
system: 46.4%
bitcoin: 7.6%
lnd: 5.9%
lndg: 3.5%
thunderhub: 2.8%
electrs: 2.6%
bluewallet: 1.1%
ride-the-lightning: 0.7%
lnbits: 0.7%
pi-hole: 0.6%
tor: 0.3%
lightning-terminal: 0.2%

This is the top entry using htop:

Is this a standard task?

Hey,

This certainly doesn’t sound good. Out of interest, what is the uptime of your Umbrel server? Can you run uptime and report this back?

Thanks,
Steve

It is up for 49 days now.

Would you be able to run journalctl -n 100 -u dhcpcd and email me what this returns at: steve@umbrel.com ?

Hey @nevets963,

I’m afraid I found a solution myself by just rebooting my umbrel (did that before your 2nd post) and now the memory used by the system in down to 1.4 GB.

Sorry for the (unnecessary) confusion and thanks alot for your offer. :slightly_smiling_face:

Ok no problem! If it happens again, could you at me again on here? Or email me?

Thanks,
Steve

Will do. :+1:

Very interesting tread. This is how it looks on my Pi4 with 4GB after 12 days.

@Floki, thanks for sharing.

How many channels does your node have and how much (roughly) traffic do you route per week?

1 Like

None yet, since I haven’t set up any channels yet.

This is my situation. Node running from 1 year almost.

I had the same exact issue. Looks like a memory leak in DHCP client.

Solution: configure your node to use static IP configuration rather than DHCP. (the actual node network configuration… Not just on the router)

Restart.

It will go away.

@UmbrelDreams, that sounds like a good idea.

The only problem is that I don‘t know the IPv6 of my RasPi.

This is what i get when I run ip a:

inet 192.168.xxx.21/24 brd 192.168.xxx.255
inet6 2a0a:a541:xxxx:xxxx:xxxx:xxxx:xxxx:77af/64
inet6 fd00::xxxx:xxxx:xxxx:3cd/64
inet6 fe80::xxxx:xxxx:xxxx:9f62/64

Which one of the 3 is the real one? And why are there more than one anyway? :thinking:

Check your router what IP it assigned to your node and use the ip as static.

I don’t have any experience with ipv6 so can’t advice on that.