Why could memory balancing start failing?

This week, I’m suddenly encountering OOM errors and Firefox tabs crashing because of high memory pressure. I recently upgraded the Fedora template to v41, perhaps that is related, or perhaps a dom0 update is the cause, I haven’t yet narrowed down. When I looked with htop, the memory was not growing towards the ‘max memory’. As a workaround, I increased the ‘initial memory’ in the qube settings, and that solved the issue. So, I expect that the memory balancing feature is somehow having issues.

How could I further troubleshoot this? Did anyone else experience such issues?

It’s probably related to your issue:

I can also reproduce this on my Fedora 41 template.

2 Likes

Thank you. I also see audit[588]: AVC avc: denied { read } for pid=588 comm="qrexec-agent" name="meminfo-writer.pid" ... on my machine. So, it indeed looks like the same issue.

Unfortunately, reinstalling the template fails for me.

[user@dom0 ~]$ qvm-template reinstall fedora-41
usage: qvm-template [--verbose] [--quiet] [--help] [--repo-files REPO_FILES]
                    [--keyring KEYRING] [--updatevm UPDATEVM] [--enablerepo REPOID]
                    [--disablerepo REPOID] [--repoid REPOS] [--releasever RELEASEVER]
                    [--refresh] [--cachedir CACHEDIR] [--keep-cache] [--yes]
                    {install,reinstall,downgrade,upgrade,download,list,info,search,remove,purge,clean,repolist,migrate-from-rpmdb}
                    ...
qvm-template: error: Same version of template 'fedora-41' not found.
[user@dom0 ~]$ sudo qubes-dom0-update --action=upgrade qubes-template-fedora-41
Using sys-firewall as UpdateVM for Dom0
Downloading updates. This may take a while...
Redirecting to 'qvm-template upgrade  fedora-41'
Template 'fedora-41' of highest version already installed, skipping...

But, then I tried dnf update in the existing template, and that seems to have solved the issue already, without even removing /.qubes-relabeled.