Remember a virtual machine expansion swapoff failed: cannot allocate memory

capacity expansion method :
capacity expansion method point here

Gparted when deleting “Linux swap” reported an error:
swapoff failed: Cannot allocate memory

found a solution online:
error report solution point here

results at the end of the cat /proc/meminfo check found that their available memory is not enough… After adding memory to it, delete “Linux swap” without returning an error

Read More: