EOA-Blockchain-Labs / ethereumonarm

Tools and scripts to build images that turn ARM devices into ful Ethereum nodes
GNU General Public License v3.0
143 stars 35 forks source link

Swap usage consistently climbs over time, requiring periodic reboots to mitigate. #69

Closed binomialstew closed 1 month ago

binomialstew commented 9 months ago

I've observed a consistent increase in the "Swap used" metric, reaching levels at least 50% usage after extended periods of uptime on an OrangePi 5 Plus with 16GB of RAM. Despite small fluctuations, the trend is consistently upward, necessitating a system reboot to restore swap levels to reasonable values.

After 2.3 hours of uptime: 2-3-hours

After 5 days of uptime: 5-3-days

In the following graph, the only points where swap is close to 0% is after a reboot. After reboot, it gradually increases again:

Screenshot 2023-11-27 at 7 20 39 PM

On an OrangePi 5 Plus with 16GB of RAM. Running: geth v1.13.4 lighthouse v4.5.0

Even after a reboot, the upward trend resumes.

Is there a memory leak causing this increase in swap usage?

binomialstew commented 1 month ago

This looks to be a hardware issue. 16GB RAM is just not enough. I have the same image and config running on an OrangePi 5 Plus with 32GB of RAM and the swap has never gone over 1%.