Hi everyone!
I've been noticing an issue with my HexOS server whereby the system will freeze up. The system stops showing up in the Deck dashboard, and I can't access any local apps. However, the server hardware is still running. The server never recovers, so I have to reset it via the button on the case.
From what I've been able to deduce, this seems to happen when the server comes close to or reaches the RAM usage maximum.
I noticed that TrueNAS uses a big chunk of RAM for cache, which is understandable. However, when running Ollama (when models spill over to RAM) or when running other RAM heavy tasks (like metadata refresh in Immich) it seems the cache usage doesn't go down to free up extra space and the system runs into the hardware limits.
Now, onto the question -- is there a way to set a hard limit on the TrueNAS cache RAM usage or allow the server to manage RAM a bit more intelligently?
If there is any way to collect any necessary logs, please let me know how I may be able to do that and let me know if I can share any other extra info to troubleshoot this.