Swap files priority values
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 |
From http://lists.debian.org/debian-user/.../msg01075.html
If you don't add a priority yourself, the kernel generates a number for you. And those numbers are negative. The swapon() system call only lets you specify a number greater than 0. This means, those swap partitions where a priority is used are used in preference to the ones that have an automatic one. |
Thanks for the link and info thecarpy.
|
All times are GMT -5. The time now is 09:27 AM. |