What will happen if I raise my swap file from 2GB to 16GB or so?Is there a reason why the devs keep it that low by default? Lately my laptop has been freezing like crazy (16GB of RAM)
>>109419288who are "the devs"? it's your computer retard. swap is supposed to be equal to the amount of physical memory.you are dumb, and probably gay. stop posting
>>109419295the devs is Clement Lefebvre, and he set the default swap file to 2GB because he knows way more about linux than I do
What OS are you using?Some people think it is best to move away from using swap as there are options like zram that can work to help with memory pressure instead.The "swap must equal physical memory" mantra is only for if you want to be able to use hibernation.As far as "what will happen", you will lose 14GB of storage, gain 14GB of swap, meaning you will have more space after zram starts using disk (because you probably already have zram on by default these days) and before the memory manager starts killing processes, although also, systemd will probably start killing processes before that anyway.You should confirm your laptop is actually freezing because it is running out of swap anyway. What you would probably be seeing in that case is just programs being killed and crashing, not freezing. Freezing could be because programs are starting to use swap (because it's slow), meaning you should diagnose and reduce your memory pressure.
>>109419288>using swap in 2026what third world shithole do you live in?
>>109419295>swap is supposed to be equal to the amount of physical memory.>you have spillover into swap>hibernate machinenow what
>>109419314huuuhhhhh dumbed down please? I am a linux mint user, I tried to use Ubuntu but it was way too complicated so I gave up lol
>>109419333Which bit didn't you understand? I'm happy to explain it more as long as you read it and narrow down the bit you had trouble with.
>>109419288You don't need a swap filehttps://downloadmoreram.com/
>>109419324>crashuor maybe one of the memory managers kills processes in the usual priority order but with the threshold lowered to make hibernation still work.
so what's happening is that every time I code something wrong or I open too many tabs, my laptop goes extremely slow. If I move my mouse, it takes several minutes for it to register in the screen. This is the swap file's fault and you can't convince me otherwise
>>109419324there is never any reason to ever hibernate your pc ever. simply do not do it.
>>109419295Maybe he's referring to Windows, which has a feature to allow the OS to automatically handle the size of the page file. On my main Windows desktop I have that feature enabled and Windows chose to use 4GB for the page file, with the system having 64GB RAM.
>>109419288Hibernation is still nice to have.Also, I can't expect to compile shit without at least 32GB total RAM.
>>109419408its superior to suspend though, if it works
>>109419616there is also no reason to ever suspend your pc.
>>109419318Planet Earth motherfucker. Have you been in a coma for the last 2 years? Check the RAM prices.