There are several ongoing glitches in Qubes R4.1 afaik.
opened 04:31PM - 02 Apr 22 UTC
closed 03:11AM - 22 Apr 22 UTC
T: bug
C: gui-virtualization
C: Xen
P: blocker
r4.0-dom0-stable
r4.1-dom0-stable
diagnosed
r4.2-host-stable
affects-4.1
[How to file a helpful issue](https://www.qubes-os.org/doc/issue-tracking/)
#… ## Qubes OS release
4.1 current-testing in dom0, fedora-35 and debian-11 templates
### Brief summary
There appears to be a memory leak when starting applications in VMs. Closing applications does not free all the memory that was allocated. Starting and killing applications over and over will eventually OOM the VM and things like Xorg will no longer function. Given that this is observable with 2 programs (nautilus and vlc), I believe this to be a Qubes issue
### Steps to reproduce
Start an AppVM and check memory usage:
```
[user@disp1785 ~]$ free -m
total used free shared buff/cache available
Mem: 1166 311 513 2 341 713
Swap: 1023 0 1023
```
Run this funny loop for a while
```
while true; do
nautilus & sleep 1
pkill nautilus
done
```
After a while, check the memory usage again
```
[user@disp834 ~]$ free -m
total used free shared buff/cache available
Mem: 1166 811 85 1 269 214
Swap: 1023 3 1020
```
### Expected behavior
the VM does not run out of memory
### Actual behavior
the VM runs out of memory
opened 01:44PM - 16 Feb 21 UTC
closed 09:31AM - 05 Aug 23 UTC
T: bug
C: kernel
P: major
eol-4.0
**Qubes OS version**
4.0
**Affected component(s) or functionality**
…
Dom0 / Qrexec?
**Brief summary**
During/after shutdown of a VM, Dom0 partially freezes (I can partially interact with UI, also from VMs, but not all). The VM appears red in the Qubes Manager widget. When I choose "Kill" there, a message containing "Domain is powered off" appears, but nothing else changes.
**How Reproducible**
Almost always appears, although freeze times differ a lot
**To Reproduce**
Steps to reproduce the behavior:
1. shutdown a domain (no matter if standalone or from template)
2. see dom0 partially freeze
3. wait a few (sometimes up to 20 or more) minutes
4. VM shows powered off and system goes back to normal
**Expected behavior**
VM shuts down clean
**Actual behavior**
- Dom0 partially freezes. I can interact with some UI, also from VMs, but generally not open any new windows in VM or Dom0, switch tabs in browser etc.. Qrexec also does not react. Sometimes in between I can not interact at all.
- The VM appears red in the Qubes Manager widget. When I choose "Kill" there, a message containing "Domain is powered off" appears, but nothing else changes.
- The VM's log itself shows a clean shutdown, from what I can tell
- After some time the VM appears shutdown and everything goes back to normal
**Additional context**
This has been happening for quite a long time, i just manged to take care about it now. So i cannot say anymore, what specific package versions were present at that time, just that it's a 4.0 install.
**Solutions you've tried**
Went through a few upgrades of Xen, Kernels and so on for about a year, but no change
**Relevant [documentation](https://www.qubes-os.org/doc/) you've consulted**
searched the issues archive and mailing list
One of the significant downside is that Qubes OS boots show and shutdowns slow.
I kind of understand why Qubes OS shutdowns slow - that is because Qubes OS want to shut down the remaining appVMs (what I do not understand is that why a VM using 10GB ram spends ~2 minutes shutting down, and ~5 minutes if it has 20GB ram; I suspect that the VM spends their time flushing the memory cache).
I does not understand why Qubes OS boots slow. Usually it takes more than 5 minutes to boot up. By pressing F…
Also saying “latest kernel” is ambiguous - if you suspect that the problem lies in linux kernel (which is probable for new hardwares), you do not “update” to the latest kernel but rather try kernel-latest
. The following documentation page talks about the difference between kernel
, kernel-latest
, kernel-qubes-vm
and kernel-latest-qubes-vm
.