While seeing the manual for swapon command the priorty option is described as
-p, --priority priority Specify the priority of the swap device. priority is a value between -1 and 32767. Higher numbers indicate higher priority. See swapon(2) for a full description of swap priorities. Add pri=value to the option field of /etc/fstab for use with swapon -a. When no priority is defined, it defaults to -1. Can someone explain what does priority of swap means. What does higher value and lower value of ths setting affect the system and what should be the optimal value for this in home computer? Edit: The man page for swapon(2) shows
They may have any non-negative value chosen by the caller But in my system(debian 10 testing) the default priority value is -1