You Asked: How Do I Set Swap Priority in Linux?
Contents You Can Set the Priority of Swap in Linux by Swapon. You Can Set 2 Swap Partions to Have the Same Priority, Pages Are Allocated on a Round-Robin Basis...
Contents
You can set the priority of swap in Linux by swapon . You can set 2 swap partions to have the same priority, pages are allocated on a round-robin basis between them. value chosen by the caller. Higher numbers mean higher priority.
How do I set swap priority?
3 Answers
- Power on the PC and log on to the desktop.
- Open a terminal and achieve root privilege. ( …
- Run fdisk -l to list disk partition table. …
- Run blkid /dev/sda7 to get the block id of the partition. …
- Run swapoff -a to off the swap partition.
- Run vim /etc/fstab . …
- Save and exit.
- Run swapon -a to enable swap partition.
What is swap priority in Linux?
Swap pages are allocated from areas in priority order, highest priority first. For areas with different priorities, a higher-priority area is exhausted before using a lower-priority area.