Feature request: memory and disk usage in diagnosis

Discuss

I just passed a few full time days on rescuing my server, thinking that a yunohost update or app install had messed up my system. It eventually turned out it was just a running-out-of-memory issue! (See my earlier posts here: Ynh system update and/or new app install seems to break other apps)

Before going down that road I did do a yunohost diagnosis, but nothing suspicious came up. Later I found out the issue was easily enough noticeable when e.g. checking free memory with the command “free -h”. That made me think, would it be an idea to include such a memory test in the yunohost diagnosis..? I guess it will help a lot of people!

And, considering this then, perhaps a “running out of disk space” warning could be useful too there.

Yes what you’re asking for is precisely already in the diagnosis ?

(Here these are successes but obviously they turn into warning / errors when it gets low such as lower than 5 or 10% remaining)

2 Likes

Your problem was oom. So it’s low memory while installing. You had sufficient memory for running your already installed apps. But some apps require a huge amount of ram to install, like immich, penpot.

2 Likes

Oh I see! Well.. great!

OK, strange though. Because I thought I also did a diagnosis when I had these results with the free -h command which gave me
total used free shared buff/cache available
Mem: 5.6Gi 4.0Gi 272Mi 175Mi 1.8Gi 1.6Gi
Swap: 979Mi 837Mi 142Mi
Which is somewhat alarming to me.
Perhaps the warning threshold/visibility is low..?

If you mean the value for “free” RAM is low, consider reading the value for “available” instead and have a look at https://www.linuxatemyram.com/

I see, interesting. Thanks!