When I installed lubuntu 18.04 with option "Along side with windows X" it was installed on the unallocated space without swap partition. My system started to freezing randomly so I switched to Kubuntu. unfortunately I installed kubuntu without swap partition. (because at the time of installation I didn't know the swap partition is necessary and lack of swap was actually freezing by lubuntu). Kubuntu started to freezing so I searched on the internet and found the reason. so I used the code
sudo sysctl vm.swappiness=0 to turn off swappiness and kubuntu stopped freezing. Even though I have set the value of swappiness to 0 it sometimes getting the value 60 automatically and system starts to freeze again so I have to set it to 0 again and again. So my first question is how to set this value permanently to 0.
2) to solve this is issue I tried to create a swap partition but in my case the command
sudo swapon --show returns a swapfile already available with 2GB space.so my next question is, if the swap file is already available then why my ubuntu is still freezing while swappiness=60.
all I want is to stop my system from freezing. konsole output on swappiness
@heynnema I have added the konsole output of /etc/fstab konsole output of /etc/fstab