Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by baq on Tuesday December 23, 2025 @02:17PM
(#46368380)
I low key hope the current DDR5 prices push them to drag the Linux memory and swap management into the 21st century, too, because hard locking on low memory got old a while ago
[ Parent
| on HN ]
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by the_pwner224 on Tuesday December 23, 2025 @03:48PM
(#46369302)
It takes a solid 45 seconds for me to enable zram (compressed RAM as swap) on a fresh Arch install. I know that doesn't solve the issue for 99% of people who don't even know what zram is / have no idea how to do it / are trying to do it for the first time, but it would be pretty easy for someone to enable that in a distro. I wouldn't be shocked if it is already enabled by default in Ubuntu or Fedora.
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by johnny22 on Tuesday December 23, 2025 @05:46PM
(#46370391)
that just pushes away the problem ,it doesn't solve it. I still hit that limit when i ran a big compile while some other programs were using a lot of memory.
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by m4rtink on Tuesday December 23, 2025 @05:51PM
(#46370427)
Zram has been enabled on Fedora by default since 2020:
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by MrDrMcCoy on Tuesday December 23, 2025 @11:53PM
(#46372586)
Zswap is arguably better. It confers most of the benefits of zram swap, plus being able to evict to non-RAM if cache becomes more important or if the situation is dire. The only times I use zram are when all I have to work with for storage is MMC, which is too slow and fragile to be written to unless absolutely necessary.
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by ahepp on Tuesday December 23, 2025 @04:08PM
(#46369479)
what behavior would you like to see when primary memory is under extreme pressure?
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by baq on Tuesday December 23, 2025 @04:18PM
(#46369579)
See mac or windows: grow swap automatically up to some sane limit, show a warning, give user an option to kill stuff; on headless systems, kill stuff. Do not page out critical system processes like sshd or the compositor.
A hard lock which requires a reboot or god forbid power cycling is the worst possible outcome, literally anything else which doesn’t start a fire is an improvement TBH.
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by jpc0 on Tuesday December 23, 2025 @04:57PM
(#46369953)
> A hard lock which requires a reboot or god forbid power cycling is the worst possible outcome
Hilariously this happens on windows too.
Actually everything you said windows and mac doesn't do they do, if you put on a ton a memory pressure the system becomes unresponsive and locks up...
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by thewebguyd on Tuesday December 23, 2025 @05:31PM
(#46370249)
I've OOMd on my mac several times, and it has never gone completely unresponsive.
You get an OOM dialog with a list of apps that you can have it kill.
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by socksy on Tuesday December 23, 2025 @08:04PM
(#46371322)
I feel I just need to run a slightly too large LLM with too much context on a MBP, and it's enough to slow it down irreparably until it suddenly hard resets. Maybe the memory pressure it does that at is much higher though compared to Linux?
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by jhasse on Tuesday December 23, 2025 @04:22PM
(#46369617)
Same as Windows. Instead the system freezes.
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by stdbrouw on Tuesday December 23, 2025 @03:10PM
(#46368943)
I feel like all of the elements are there: zram, zswap, various packages that improve on default oom handling... maybe it's more about creating sane defaults that "just work" at this point?
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by gf000 on Tuesday December 23, 2025 @04:55PM
(#46369929)
I think it's more of a user space issue, that the UI doesn't degrade nicely. The kernel just defaults to a more server-oriented approach.
Re:Meta Is Using the Linux Scheduler Designed for Valve's St...
by marcodiego on Tuesday December 23, 2025 @09:35PM
(#46371833)
I thought that was fixed after MGLRU.