Replies: 2 comments 2 replies
-
|
There is nothing inherently bad about swap being used. The kernel basically decides what to swap and when. The tuning indi-allsky adds at the end of setup.sh can minimize swap, but the kernel handles this internally. With 8GB of RAM, you could just disable swap entirely. Set |
Beta Was this translation helpful? Give feedback.
-
|
@aaronwmorris Thanks for the tips, I'm just trying to track down why the system seems to run out of memory after a few weeks. I will disable swap per your suggestion and I'll monitor memory usage. If I see that the system starts to slow, then I'll collect the logs and post them. Thanks again. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I originally built my indi-allsky using an RPi4-2GB with INDI lib-camera and a IMX477. I found that it would often start to swap memory and I'd have to reboot the device. This occurred even with RPI desktop disabled. I finally decided to just use a faster model with more RAM.
In general the RPi5 with 8 GB runs well, but after a few weeks, I start to get the alert that swap usage is over 5%. If I don't reboot soon, the entire system slows to a crawl.
If this a memory leak issue? How can one go about finding which program fails to release memory correctly?
As a stop gap solution, is there a way to reboot the server once a week to avoid this? I guess I could create a CRON job to stop indi services and just reboot,
Open to suggestions and discussion on this particular subject.
P.S.
I just rebooted, so my logs probably won't show anything interesting... but the next time my system go south with major swapping, then I'll try to post the logs and config.
Beta Was this translation helpful? Give feedback.
All reactions