7 ms·
I made the switch a few years ago mostly because the only thing I do on computers is write software for the companies I work for; I don’t game, I try but idk ju
by psyclobe 1y ago
I made the switch a few years ago mostly because the only thing I do on computers is write software for the companies I work for; I don’t game, I try but idk just feels like work.
Everything is mostly fine on Linux, minus things like display drivers (pick the wrong nvidia driver and you’ll have crashes), power management (honestly I just use a remote switch to turn off my displays), and random stuff like my gnome classic shell will nearly always crash the moment I try to resume working after a few hours (just kicks me back to the login screen).
But sometimes I go back to windows and I am taken aback as the sheer completeness of the user experience.
Also Linux always hangs hard if I run it out of ram. Windows never does that.
Not going back anytime soon either way.
- beeflet 1y ago>Also Linux always hangs hard if I run it out of ram disable swap. Programs will crash instead, which may be more useful.
- malfist 1y agoPrograms, including the kernel
- beeflet 1y agoI've never had that happen. It usually just kills user-space programs
- justsomehnguy 1y agoUhm, no. Anything what would request memory would just outright die, including even the most basic services. Source: actually had a system without swap what would just die running `dnf update`. Or quietly die in a week or so if left unattended.
- SoftTalker 1y agoSwap isn’t unlimited, it just delays the inevitable and makes everything slow while doing it. A 4GB swap partition isn’t going to save you if you run your 32GB computer out of memory.
- justsomehnguy 1y agoWho the hell would set 4Gb swap for a 32Gb RAM machine in 2025? A guy with a decade old 64Gb SSD as the only drive in the system? > and makes everything slow while doing it It was so when the OS was on a HDD. Nowadays it's a PCIe device with 1 million IOPS. And five years ago fans of some fruit company run around singing praises on how good their brand new laptops worked with a mere 8Gb of RAM.
- baq 1y agoIt does help. It gives time for the kernel in this situation and also helps in general by allowing to defragment memory. You want to keep a small amount of swap space at all times.
- beeflet 1y agoUnless it's some sort of autonomous safety-related process, It's usually better for the process to die so I can just restart it. Even if it was some sort of safety-related process that had to keep running no matter what, I would probably try to define/control the memory usage better so it wouldn't unexpectedly run orders of magnitude slower.
- 3eb7988a1663 1y agoAs usual, prepare for Linux suggestions to the papercuts, but... I use a program called earlyoom. It will monitor RAM and if you cross a level of utilization (default 95%?) it will kill the worst offenders before the system becomes unresponsive. You can layer on sophistication like protecting certain programs or preferring killing others. I find it invaluable when I am doing data science work and do something stupid which explodes in memory. Annoying that something was killed, but usually better than hosing the entire system -if it crossed 95% it was almost certainly going to hit 100%. For my purposes it works perfectly - only the Python process will be killed, my IDE or notebook will survive.
- cocoto 1y agoThank you so much for proposing earlyoom, that is exactly what I needed!
- baq 1y agoDefault vfs and vm swap related settings are good for I dunno, 1997. You have to set swappiness to something like 1 or maybe 10, reduce cache pressure to like 50ish and set dirty ratios/bytes to something reasonable (say around 1GB, half of that for background). If you keep defaults the system will have too much in caches and they may not be able to flush under memory and swap pressure => hang. It’s actually amazing you need to tweak any of it to get sane behavior. Other OSes do a much better job at good defaults.
- godelski 1y ago> It’s actually amazing you need to tweak any of it to get sane behavior. I think this is because for the most part people aren't running out of memory and swap. Makes sense for devs, but devs also usually have more memory (and consequently more swap too). Often an easier solution is just adding more swap or buying more RAM. I mean if you're running out of swap and RAM then you're problem is fundamentally related to trying to do things your system isn't capable of. Though, that doesn't mean it shouldn't fail more gracefully...
- j_w 1y agoSwap is really interesting. The idea of swap sounds super useful - you get more RAM than you have. The reality is that RAM speeds are so important to fast computing that once you start to need swap, what you really need is more RAM on your machine. If somebody told me they were running into issues with swap on linux I would ask them why they don't just get more RAM. I'm currently running 32GB and have never used swap on this machine. That includes gaming and local LLM usage (which my GPU does not have enough VRAM for, so normal RAM gets involved).
- baq 1y agoSwap is not 'super slow extra memory' (well it is, but that's not useful!), it's a place to temporarily store contents of memory for things less important than what wants to be in fast memory right now. Idle apps can (and are) swapped out to have more file cache even on boxes with large RAM. Memory can also be fragmented and you'll have nominally lots of free space, but in reality allocations will fail; in this case, swap can be used to defragment memory instead of OOM killing stuff. You always want some swap, even if it's 1GB for a 96GB machine.
- bar000n 1y agoUbuntu 22.04 user here. Indeed it hangs when out of memory, never had the time to properly address this but i will try to follow the advice provided here in the thread. My servers that run Centos or Debian just do this thing called OOMkill on a ram hungry process, out of the box.
- godelski 1y ago> I don’t game, I try but idk just feels like work. I'm surprised by this. Valve has really made this easy these days. I switched to EndervourOS a few years back and things, for the most part, just works. 2-3 years ago the biggest hurdle was changing Proton version and 90% of the time I could play a game. For the last year (including after a reinstall and having never touched Steam settings) the only problems I've had are post an update and solved by restarting the computer. > pick the wrong nvidia driver and you’ll have crashes Same thing here. The only issue I can think of in the last few years was an update where a rollback solved it. The problem was only because Endeavour (Arch based) uses beta nvidia drivers AND the newest kernels. Was a really easy fix. Just two commands to roll back kernel and driver. > Also Linux always hangs hard if I run it out of ram. Windows never does that. This sounds like there might be a swap space allocation issue. Did you manually set swap or just go with the default configuration? If the OS runs out of RAM and swap (there's overcommit_memory but you probably don't want to enable it[0]) then yeah, you'll run into trouble. Not sure how Windows is handling that but there's only so much that can be done here. Luckily you can always add more swap space, if you don't want to buy more RAM. But things should never crash just because you ran out of RAM (there are exceptions, like a single program using all the RAM). > But sometimes I go back to windows and I am taken aback as the sheer completeness of the user experience. You might like KDE[1]. It has a much more Windows like feel. Or Cutefish[2] for that OSX feel. It is pretty simple to make a switch (given you're comfortable with software I assume calling a few lines from the CLI doesn't scare you). Just some food for though. Personally I hate Gnome. Ugly as hell and unintuitive. I'd rather go headless than use Gnome. [0] https://serverfault.com/questions/606185/how-does-vm-overcommit-memory-work https://serverfault.com/questions/606185/how-does-vm-overcom... [1] https://kde.org/plasma-desktop/ https://kde.org/plasma-desktop/ [2] https://cutefish-ubuntu.github.io/ https://cutefish-ubuntu.github.io/
- paulannesley 1y ago> > I don’t game, I try but idk just feels like work. > > I'm surprised by this [...] for the most part, just works I read that as “playing computer games feels like work” rather than “getting games running feels like work”.
- 1y ago