I have a very basic question. I have TrueNas Scale running version 24.10.0.2. For the sake of simplicity, I have 32 GB of Memory and 8 total cores on my CPU.
When I install Nextcloud and Immich, do I set the memory at 16 GB and CPUs at 4 for Nextcloud and 16 GB for memory and 4 CPU cores for Immich so that I use the full memory and CPUs of my system? What if I set it at 32 GB of memory and 8 cores for BOTH apps?
Should I set it lower so that there is memory left over for the functioning of the data?
I guess the question really boils down to is the memory usage “limits” that TrueNAS can use as a max or is it a cumulative number that I need to be mindful of setting in a way that doesn’t exhaust the system running overall?
I don’t know where to find this information. I have looked. If someone can help point me in the right direction for this softball, please let me know.
I wish I could give you an answer but I’m pretty new to TrueNAS (Scale) myself and I want to know more about this also. I think you asked every question I’d like an answer to.
No, then you would leave no RAM available for the host operating system, ZFS ARC, file sharing protocols (SMB/NFS), etc. CPU is a bit more forgiving.
That being said, giving the container the ability to use 16GiB doesn’t mean it will use 16GiB if the application does not need it. You should consult the app’s individual resource requirements pages to get an idea of what they are recommending. Remember that the application often relies on several containers, such as database containers, which will use RAM as well.
Immich recommends 6GiB of RAM here,
and for their TrueNAS docs they suggest 4GiB (the default) is fine if you arent using the ML features
NextCloud the application itself, is a scalable enterprise design, and there are alot more variables that go into their sizing requirements. The default 4GiB for that app will probably work well for a single user.