I have the exact same issue here. I I switch from Gnome to Budgie (fresh ubuntu 18.04 install).
Swap is never use even when needed, if my 11G RAM get filled then my desktop freezes. I then did a fresh installed using the Ubuntu Budgie ISO and I still have the same issue.
-
As you can see below, I have a total of 11G of Swap, 0 is Free and 100% is shared.
~$ free -h total utilisé libre partagé tamp/cache disponible Mem: 11G 5,6G 2,3G 142M 3,8G 5,6G Partition d'échange: 11G 0B 11G
-
Checking the Swap status, you can see that 0 is used. What I found interesting is that priority is -2 and setting it to -1 is not working, I can set it to any other number but not -1… as if there was another existing swap although there is none:
~$ sudo swapon -s Nom de fichier Type Taille Utilisé Priorité /swapfile file 12582908 0 -2
Using another command:
~$ cat /proc/swaps
Filename Type Size Used Priority
/swapfile file 12582908 0 -2
- For your information, my partition is encrypted on an lvm partition.
Would appreciate help to solve this !