![]() It controls how aggressively the Linux kernel will swap memory pages. The swappiness value is defined in /proc/sys/vm/swappiness file. Finally, Linux uses /dev/sdb which has -2 priority. ![]() When that space is full, Linux usess the /swap-file with pri=5. Now my Linux kernel uses /swap-file-2 first with pri=10. Edit /etc/fstab and add the pri as follows: The default priority is -2, and Linux can use the highest priority first. Nevertheless, Linux allows us to define priority. Then kernel starts using the second swap space and so on. How to set up the swap space and file priorityīy default, the Linux kernel uses the first activated swap space till it is full. To make the change permanent, edit the /etc/fstab file: Make sure our swap file is activated after the Linux system reboots. ![]() How to activate swap space file persistently on Linux See my tutorial “ How To Check Swap Usage Size and Utilization in Linux” for a detailed explanation about swap usage.
0 Comments
Leave a Reply. |