A storage drive can have one ore more partitions depending on what the user prefers. For each partition, we have a separate drive file in /dev/ directory.
A user can set priority value which is greater than equal to zero (0) but less than equal to 32767 for a Swap device.
The Swappiness values can range between 0 and 100. So, a 0 Swappiness value would push the Kernel to not move out inactive pages.
We need to check for the Swap file enabled on our system. So, identify the Swap file we want to remove through - swapon --show.
Firstly, we need to create a file of defined size to be used as Swap file. Next, we set file permissions so that regular users don't get read access of the file.
The amount of RAM available to our system is finite and if it crosses a certain threshold then, without Swap our processes would begin to fail.