News for hackers. Stuff that matters.
Re:Reasons to prefer Linux over Windows (2014) by red75prime on Sunday November 15, 2020 @07:45PM (#25106615)
1. Swap thrashing can bring the system into a completely unresponsive state.

2. Linux servers are targeted and breached. Linux desktop share is too small to be worth it (yet).

3. Windows updates aren't stealthy for a considerable time.

4. That's a matter of opinion.

5. Some distros do, but it's opt-in. Transparency is better on the Linux side too. I agree on this point.

6. You are tempted to spend time on customization with unclear objective benefits.

7. Developers don't owe you anything.

Re:Reasons to prefer Linux over Windows (2014) by mrob on Sunday November 15, 2020 @08:24PM (#25106914)
>1. Swap thrashing can bring the system into a completely unresponsive state.

This can be prevented using earlyoom (which is packaged in most distros):

https://github.com/rfjakob/earlyoom

It's probably too difficult to fix the underlying design errors, e.g. fork() duplicating the process's entire address space, thus requiring overcommit and copy-on-write, but losing only one process beats losing all of them. earlyoom should be enabled by default.

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.
Re:Reasons to prefer Linux over Windows (2014) by extra_rice on Sunday November 15, 2020 @09:25PM (#25107278)
> 2. Linux servers are targeted and breached. Linux desktop share is too small to be worth it (yet).

Why aren't we replacing them with something better then? Why are most servers still running GNU/Linux?

Re:Reasons to prefer Linux over Windows (2014) by Osiris on Sunday November 15, 2020 @09:55PM (#25107458)
Linux as a server/headless OS has been fantastic for me. I have a home NAS running Linux that hasn't been rebooted in over a year and that was due to swapping out hard drives.

Linux as my desktop OS, not so much. I have to reboot my Linux laptop every few days for various reasons, including complete unresponsiveness to any keyboard input.

Re:Reasons to prefer Linux over Windows (2014) by the_af on Sunday November 15, 2020 @10:13PM (#25107558)
That's really weird. Which distro and hardware are you using? I can go months without rebooting. I mostly do so when Linux tells me it needs a reboot to apply some update.

Keep in mind I use my laptop for both coding and gaming (if it ever locks up it's because of a game -- which wasn't uncommon years ago when I used Windows, either).

Re:Reasons to prefer Linux over Windows (2014) by blockmeifyoucan on Monday November 16, 2020 @02:20AM (#25109035)
Run a memtest86 and keep an eye on the temps during usage. This is not normal.

Are you running nvidia drivers?