I set up my system with a swap partition, is it safe to change it to a file?

I set up my system with a swap partition, is it safe to remove it?
I have 2x32GB ram in my system, and a corresponding swap partion on my drive

Sure, why not. You can bring it back when you need it.
You have a lot of ram which I’ve been dreaming to have. :wink:

@40476

Are you using BTRFS for all partitions (other than the current swap partition)??

@40476 Are you suspending the system? If not, then none or 2GB of swap should be sufficient. OOM should take care of anything. Or run zram…

I have 128GB here, no swap, no suspend/hibernate. when I have VM’s running most I’ve seen used is 96GB, Linux VM’s are very tolerant on ram usage, not so much Windows, which pre-allocates it’s 32GB…

1 Like

Everything is BTRFS on my system

I have dual xeons in my system so suspend does not work properly for some reason, is it as simple as just deleting the swap partition? Will the system boot with it missing?

@40476 Use YaST partitioner to remove, or comment out the /etc/fstab entry and reboot.

All good here…

 free -h
               total        used        free      shared  buff/cache   available
Mem:           125Gi       4.4Gi       117Gi       109Mi       4.9Gi       121Gi
Swap:             0B          0B          0B
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.