[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: IMG_20260215_094700.jpg (279 KB, 968x1146)
279 KB JPG
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)
>>
>>109419288
who 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
>>
>>109419295
the 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 2026
what 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 machine
now what
>>
>>109419314
huuuhhhhh 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
>>
>>109419333
Which 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.
>>
>>109419288
You don't need a swap file
https://downloadmoreram.com/
>>
>>109419324
>crashu
or 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
>>
>>109419324
there is never any reason to ever hibernate your pc ever. simply do not do it.
>>
>>109419295
Maybe 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.
>>
>>109419288
Hibernation is still nice to have.
Also, I can't expect to compile shit without at least 32GB total RAM.
>>
>>109419408
its superior to suspend though, if it works
>>
>>109419616
there is also no reason to ever suspend your pc.
>>
>>109419318
Planet Earth motherfucker. Have you been in a coma for the last 2 years? Check the RAM prices.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.