1

I have an Ubuntu 20.04.2 machine that I configured to boot from raidz2. During the original setup, I chose not to use swap. At the time, I didn’t have a spare drive and I had heard that there could be issues using a swap file on a raidz partition. After finishing the install, I added a 2TB nvme drive and configured it as a swap partition.

When my system runs for a long while, the memory usage eventually hits 100% and Ubuntu hangs. Running glances just prior to this occurring shows the high memory usage but shows 0 of the swap being used.

I run the same processes on other machines and when they make use of the swap file and continue running without issue.

Any suggestions?

from free -h command:

             total        used        free      shared  buff/cache   available  
Mem:          125Gi       122Gi       1.0Gi       1.3Gi       2.6Gi       1.2Gi  
Swap:         127Gi       5.0Mi       127Gi

swapon -s Filename Type Size Used Priority
/mnt/swapdrive/swapfile file 134217724 7424 -2

Raffa
  • 34,963
Rook13
  • 11

0 Answers0