So I understand that swap mem is used when computer runs out of space on ram.
Once there is available space in the memory how can I move contents of swap to ram so taht it doesn't slow me down?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
1. if you want to "make linux stop using swap" You can change the swapiness
There are some great explanations here: https://askubuntu.com/questions/103915/how-do-i-configure-swappiness
2.move contents of swap to ram
I think you can only remove everything from your swap to ram by turning the swap off and then on. https://serverfault.com/questions/110436/linux-how-to-explicitly-unswap-everything-possible
If you really want to stop using swap forever you will have to do 2 things:
Without a proper sized swap partition, you will loose the ability to hibernate your computer.
It is better to reduce the use of swap by lowering swappiness to 0.