queen
June 21, 2025, 2:07am
1
is it normal that only 279M memory is free?
is it normal that 1.9G swap is used?
why does my dom0 need so much memory?
here is the ouput of free -h:
total used free shared buff/cache available
Mem: 3.8Gi 1.9Gi 279Mi 715Mi 1.6Gi 1.1Gi
Swap: 3.9Gi 1.9Gi 2.1Gi
1 Like
Check top
command
But as you can see there is 1.1GB available. Amount of free is a totally free and not used. Linux use any amount of free memory for i/o operations buffer which is immediatelly freed as needed.
1 Like
unman
June 21, 2025, 11:28am
3
There is no normal - it depends on what you are doing, and what you have
configured.
You can run Qubes without swap.
You can also change the amount of memory used by dom0 using these
parameters in /boot/grub2/grub.cfg
- dom0_mem=min:
, and
dom0_mem=max:
I never presume to speak for the Qubes team.
When I comment in the Forum I speak for myself.
1 Like
If you haven’t rebooted in a long time you might try restarting the qui-domains widget (the little blue qube thing up in the corner):
[user@dom0 ~]$ systemctl --user restart qubes-widget@qui-domains.service
This should be harmless to do. The widget has a small memory leak and over time it can really compound. See:
opened 10:36PM - 21 Aug 23 UTC
C: Qubes GUI tools
P: major
needs diagnosis
affects-4.2
[How to file a helpful issue](https://www.qubes-os.org/doc/issue-tracking/)
#… ## Qubes OS release
R4.2
### Brief summary
qui-domains slowly causes memory leaks as it continues to run. The screenshot was taken after about 14 days uptime and shows that qui-domains process consumed more than 200 MiB.

### Steps to reproduce
Keep machine running.
### Expected behavior
At least the memory consumption of qui-domains does not exceed 100 MiB.
### Actual behavior
Memory leak occurs.
3 Likes
queen
June 27, 2025, 3:45pm
6
i have the standard settings. i have not changed anything.
1 Like
queen
June 27, 2025, 3:46pm
7
is there a tool that can be used to see which program uses how much memory?
1 Like
queen
June 27, 2025, 3:52pm
8
thanks for the tip with top. how can i sort by ‘memory’?
1 Like
Probably mixing free and not used. Known confusion within Qubes community
total used free shared buff/cache available
Mem: 5.7Gi 1.1Gi 81Mi 278Mi 4.6Gi 4.3Gi
Further reading:
https://wiki.xenproject.org/wiki/Xen_FAQ_Dom0
2 Likes
Do you use BTRFS as filesystem? With EXT4 I don’t observe such high buff/cache
utilization:
total used free shared buff/cache available
Mem: 3.8Gi 1.5Gi 953Mi 444Mi 1.4Gi 1.8Gi
Swap: 3.9Gi 0B 3.9Gi
Or maybe you have some raid config?
3 Likes
queen
June 30, 2025, 3:04pm
12
I don’t know. How can I check if I have Btrfs or ext4?
PS: No raid config.
queen
June 30, 2025, 3:13pm
13
here my top sorted by memory
top - 17:08:54 up 143 days, 5:21, 1 user, load average: 0.32, 0.54, 0.72
Tasks: 573 total, 1 running, 566 sleeping, 0 stopped, 6 zombie
%Cpu(s): 0.7 us, 0.5 sy, 0.0 ni, 98.0 id, 0.0 wa, 0.4 hi, 0.2 si, 0.3 st
MiB Mem : 3881.3 total, 342.3 free, 1876.5 used, 1662.5 buff/cache
MiB Swap: 4028.0 total, 1861.8 free, 2166.2 used. 1076.4 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3925 user 20 0 2495280 398904 31344 S 0.0 10.0 146:34.61 qui-domains
3825 user 20 0 1210096 225280 53580 S 0.0 5.7 18:03.94 xfdesktop
2849 root 20 0 3305916 147996 57828 S 5.6 3.7 6840:06 Xorg
1668 root 20 0 210136 107452 8752 S 0.0 2.7 17:40.03 dmeventd
3689 user 20 0 441132 93488 7744 S 0.0 2.4 117:06.87 pipewire-pulse
3690 user 20 0 636036 87508 16600 S 0.0 2.2 10:22.16 xfce4-session
3879 user 20 0 2275352 83348 8908 S 0.0 2.1 8:41.33 icon-receiver
2227 root 20 0 1802468 75096 13096 S 0.0 1.9 45:47.60 libvirtd
1028724 user 20 0 718636 73252 34096 S 0.0 1.8 33:24.99 xfce4-panel
1033464 user 20 0 2535812 70200 42444 S 0.0 1.8 4:17.30 qubes-qube-mana
1015353 root 20 0 1209000 66060 22308 S 0.0 1.7 44:44.28 qubesd
3841 user 20 0 865428 54204 33108 S 4.3 1.4 73:36.21 xfce4-terminal
3958 user 20 0 1850088 54120 30212 S 0.0 1.4 2:28.25 qubes-app-menu
1028728 user 20 0 681132 49752 28992 S 0.3 1.3 44:58.67 panel-7-pulseau
1029054 user 20 0 1497324 42652 33576 S 0.0 1.1 0:41.13 xfce4-settings-
3875 user 20 0 777988 42060 29344 S 0.0 1.1 5:07.56 qrexec-policy-a
3929 user 20 0 714592 40404 28736 S 0.0 1.0 2:19.53 qui-clipboard
3931 user 20 0 726740 40272 27536 S 0.0 1.0 2:07.85 qui-devices
3784 user 20 0 1706408 40132 26660 S 1.0 1.0 1650:13 xfwm4
3933 user 20 0 693724 37112 28316 S 0.0 0.9 7:12.81 qui-disk-space
4185 user 20 0 1676308 36908 27224 S 0.0 0.9 8:21.08 xfce4-appfinder
1029098 user 20 0 610232 36532 32580 S 0.0 0.9 0:35.73 xfwm4-settings
3935 user 20 0 712596 36360 26224 S 0.0 0.9 2:22.39 qui-updates
1028729 user 20 0 680204 36140 31628 S 0.0 0.9 0:33.22 panel-8-power-m
In terminal in Dom0
run command
sudo lvmdiskscan
If there’s LVM volume then you don’t have BTRFS
This looks like the memory leak mentioned earlier - restarting qui-domains should fix it (for some time…)