You can check the current priority of the swap file from /proc/swaps.

Inorder to change the priority of the swap partitions, you need to edit the “fstab” and append the new priority. If you have the fstab entry for your swap file /swap1 as:

then append the following:

You can re-mount it by using ‘mount -a’ command.