[qubes-users] Memory issue

The quick:

Dom0 Task Manager shows memory usage percent as always increasing. Closing Virtual Machines does not seem to free up any memory by displayed memory usage percent.

The questions:

Are there any advice on what I should do with this situation?

Should I clean out Qubes memory buffer/catch? If so, what safe command should be used?
Or, if that isn’t the issue, what should I look for? What more information do you good elves need to help the issue?

The slow:

I noticed this situation a good week ago when I looked at Dom0 task manager. It showed my memory usage to be around 95%, that is a lot. The computers total memory capacity is 32gig. My normal memory usage tend to be around 35-40%, a fairly steady level measured over long time. After seeing my memory maxing out I attempted to close down one virtual machine after the other, but it did not appear to make any difference in terms of freeing up memory. So I decided to restart my computer and that made everything back to normal—for a little while. Starting my normal virtual machines and got to the normal memory usage level. But then it just kept adding on, a disposable machine opened and closed and the memory usage increased, another virtual machine opened and the memory increased, closing it did not affect the memory level. And so it kept adding on more and more memory usage as I did my normal computing things like browsing and so on. In writing moment I’ve reached 93% of memory capacity.

The extra:

Please, treat me as a newbie. Although I’ve been using Qubes OS for several years (its pretty cool operating system, thank you creators and maintainers <3) without being knowledgeable about command line interface (avoiding it when possible), I remain a GUI person and don’t really want a cure for it.

Thank you for your time.

1 Like

I'm not sure what "Dom0 task manager" is, and what it shows.
But the memory allocated to dom0 is only *part* of the available
memory, and can be constrained further using boot parameters :
dom0_mem=max:...

The memory allocated to Virtual machines is from a separate pool - this
is why closing qubes does not free up memory in dom0.
Of your 32GB, the default would be to have 4GB allocated to dom0 (this
can easily be reduced to 2048 or 1536), with the balance of 28GB pooled
between the open qubes.

I'm not sure why you are now seeing dom0 usage up from previous levels
-unless you can associate this with difficulties in running Qubes I
wouldnt worry about some notional 95% figure.

It's possible I am misinterpreting your mail. If so, perhaps you could
explain exactly what effect this has on your Qubes experience.

1 Like

Are you running KDE? Do you have swap enabled on dom0? A 'free -h'
output shows this.

I noticed a possible memory leak some time ago and I use KDE. In my
case, I see the Swap memory usage slowly growing. At this moment, with
just 5 days uptime I have 657M of used swap. I remember it reaching some
gigabytes.

I determined that after some says of uptime, the X process was using
more memory compared to fresh boot. But not really too much for have so
much memory swapped.

The quick:

Dom0 Task Manager shows memory usage percent as always increasing. Closing Virtual Machines does not seem to free up any memory by displayed memory usage percent.

Could it be you are confused with "used" vs. "free" ignoring cache and buffers? Usually Linux minimizes "free" that is unused memory.