Dear All,
As mentioned in "
man swapon" priority value is
between 0 and 32767. BUT usually if we add swap devices without giving the priority, their priorities are set as -2, -3, -4 and so on; values which
does not fall between 0 and 32767.
Why is it so ? Any ideas ? However, I know we can change them through "swapon -p". But, if do not wish to do so, it uses -2, -3, -4 only. Like below,
Code:
[root@server ~]# swapon -s
Filename Type Size Used Priority
/dev/mapper/VolGroup00-LogVol01 partition 1310712 0 -1
/extraswap1 file 524280 0 -4
/extraswap2 file 262136 0 -2
/extraswap3 file 131064 0 -3