News for hackers. Stuff that matters.
Re:Reasons to prefer Linux over Windows (2014) by pmontra on Monday November 16, 2020 @01:05AM (#25108609)
Or simply disable swap if you have enough RAM. I've been running without swap since 2014 on a 16 GB laptop. I upgraded to 32 GB a couple of years later when I started to routinely use at least 12 GB. At least one browser and editor window per virtual desktop (one VD per customer plus a couple for me), docker, virtualbox, slack, thunderbird, etc.
Re:Reasons to prefer Linux over Windows (2014) by yankcrime on Monday November 16, 2020 @02:30AM (#25109084)
Don't do this. Disabling swap is bad idea: https://chrisdown.name/2018/01/02/in-defence-of-swap.html
Re:Reasons to prefer Linux over Windows (2014) by Cloudef on Monday November 16, 2020 @05:40AM (#25110222)
In practice the benefits of swap mentioned in that article almost never happen on desktop use. I used to use swap on my last install and it was pretty much never used. I don't bother with swap anymore. Server may be different game though.
Re:Reasons to prefer Linux over Windows (2014) by account42 on Tuesday November 17, 2020 @06:49AM (#25122649)
Not really. While there are still problems without swap, all swap does is move that problem further away while slowing down some things in the meantime.
Re:Reasons to prefer Linux over Windows (2014) by account42 on Tuesday November 17, 2020 @06:45AM (#25122617)
You can still have thrashing without a swap partition/file: as memory pressure increases, the kernel will flush disk cache and buffers, slowing down operations that need them again. In the extreme case this can mean the program code you are executing being evicted from ram only to be re-read page by page for many times until the kernel finally decides to kill whatever was eating all the ram.