Sample Header Ad - 728x90

Swap space not being used effectively

0 votes
0 answers
555 views
I am using Parabola Linux (variant of Arch) on a Macbook Pro laptop. I have 8 GB of RAM and 8 GB of swap space set up. As far as I can see, the swap space is enabled and working; however, it seems it is barely being used, even when the physical RAM is heavily loaded. This can be seen in the following screenshot of the gnome system monitor: enter image description here The swap seems to be enabled; however only ~3 MB is being used, despite 5.6 GB of RAM being used. I forked this Linux system from one that I have set up on a desktop PC. There, the swap seems to get used much more effectively - it is not uncommon to see 2+ GB in use. I tend to run similar applications on both. I am concerned that the swap not working effectively may be contributing to the system freezing up occasionally, when I have many programs running at once. I am also concerned that it may be contributing to other issues the system seems to have, such as not being able to hibernate properly (which I understand is supposed to use the swap space on disk). Does anyone know of any reasons why the swap space might not be being effectively used? Is there anything I can try, to diagnose it? I have seen some older questions with similar issues, but didn't see any concrete answer that seems to help in my situation. **Edit:** In response to a request in the comments, here is the output of free -h: $ free -h total used free shared buff/cache available Mem: 7.5Gi 5.4Gi 184Mi 64Mi 1.9Gi 1.8Gi Swap: 8.0Gi 3.0Mi 8.0Gi it seems to show similar information to the system monitor. I.e. 72% of RAM is in use, but practically no swap is being used. I have also checked the 'swappiness' parameter, which gives the following (seems fairly standard): $ cat /proc/sys/vm/swappiness 60
Asked by Time4Tea (2628 rep)
Nov 19, 2021, 09:47 PM
Last activity: Nov 22, 2021, 09:30 PM