1Gb of RAM min?
-
Hello! I've tried to optimize the memory usage recently and realized that the Rust app requires 1Gb of RAM minimum - is that really true?
As per my understanding, 256Mb shall be more than enough, or am I missing something?
-
@potemkin_ai my app is showing less than 200mb RAM usage at all times. Maybe it needs more when importing/exporting or other heavy tasks. This is for 3 users.
-
Sometimes the app package needs a lot more ram only because the initialization and updates take more memory (like db migrations and such). When it runs normally, it doesn't need as much.
-
@girish could it be left to the cloudron admin please?
I mean - I'm just one user, I can hardly imagine the case when the Rust app will consume even 200Mb, leave alone 1Gb.
If the memory settings is too low, I will see the app crashing in the notifications and will increase it as required.
-
@potemkin_ai this is really just the maximum limit for an app, the setting does not mean that the memory is allocated or reserved for the app. As far as I remember the app does need more memory to initially start up, so we had to raise that minimum limit.
I think the real fix here is to implement memory burst support, where that limit can be exceeded for a short amount of time. This also will help with some apps during data import/export.
-
@nebulon burst would be ideal, but I guess we are limited by a Docker Swarm architecture...
On the minimal - I have 512Mb on resources intensive Ghost, but vaultwarden and invoiceninja are 1gb... that feels like not quite consistent? Or am I missing something?
-
@potemkin_ai It depends entirely on what the app does on startup and update. There's no pattern here based on language/framework. For example, an app could download the gelocation database on startup and so might need more memory. The memory limits are just set by trial and error and not scientific.
-
@potemkin_ai we show a warning right now if the server is overloaded but that too is not scientific , it's just based on adding up memory limits and comparing how much the server has . But overall, i wouldn't think of optimizing these memory limits, it's just a safety hook in case apps leak memory and prevent them from bringing down the server .
-
@girish I guess I've been limited to install some app, because the minimum requirements for the RAM was not met.
If that logic is still in place, probably, it would be nice to have some kind of 'I understand what I'm doing' checkbox to work this around?
-
@potemkin_ai said in 1Gb of RAM min?:
it would be nice to have some kind of 'I understand what I'm doing' checkbox to work this around?
There is already such an option
-
@jdaviescoates lovely