News for hackers. Stuff that matters.
Re:Do not buy RAM, compress by sammatilda on Thursday November 19, 2026 @05:39AM (#50558400)
I just discovered zram thanks to claude after installing fedora on a new computer and man I was blown away by both zram and fedora. Fedora amongst the linux distributions for some reasons has really got everything that an end user needs and the whole experience is just way smoother than anything I have used in 25 years on linux.

I am hoping to switch my dad from ubuntu to fedora in a month or so because he has 16 GB ram and this seems like something most people dont know.

Re:Do not buy RAM, compress by nico on Thursday November 19, 2026 @05:47AM (#50558452)
Wow, very cool. Is this like the old "RAM doubler" for Mac OS (or like Johnny Mnemonic's "Pemex MemDoubler")? :)
Re:Do not buy RAM, compress by lproven on Friday November 20, 2026 @05:35AM (#50572776)
Only extremely loosely, but kinda sorta ish yes.
Re:Do not buy RAM, compress by Lio on Thursday November 19, 2026 @05:51AM (#50558481)
It's funny, I switch from Fedora back to Ubuntu last year.

I really like Fedora in that it seems very up to date package wise but I found it requires a reboot every time did a package update using the UI updater.

It's better using the dnf command but it still felt a bit lumpy compared to apt.

Re:Do not buy RAM, compress by mritzmann on Thursday November 19, 2026 @06:25AM (#50558742)
Install "needrestart", and you'll see that a reboot would be useful in Ubuntu, too. Many running programs still use the old version of a shared library even after it has been updated. With so many security updates these days, it almost always makes sense to reboot.
Re:Do not buy RAM, compress by ErroneousBosh on Thursday November 19, 2026 @07:08PM (#50568413)
For me Ubuntu these days seems to give a list of what things might benefit from a restart, often things running in docker containers that themselves might do with a bit of an update.
Re:Do not buy RAM, compress by nosrepa on Thursday November 19, 2026 @02:14PM (#50564801)
You can turn that off in the settings for discover.
Re:Do not buy RAM, compress by speed_spread on Thursday November 19, 2026 @06:21AM (#50558707)
I like Fedora too but I'm pretty sure Ubuntu also has zram. You just need to enable it.
Re:Do not buy RAM, compress by amelius on Thursday November 19, 2026 @07:04AM (#50559020)
Could this be one of the tricks the M-series cpus are pulling behind the scenes to make them look faster?
Re:Do not buy RAM, compress by jrmg on Thursday November 19, 2026 @10:17AM (#50561216)
It’s definitely one of the tricks the Neo is pulling behind the scenes to make 8Gb be ‘enough’.
Re:Do not buy RAM, compress by swiftcoder on Thursday November 19, 2026 @11:03AM (#50561875)
It's nothing to do with the CPUs. Apple implemented this OS-wide back in the 2010s, long before the M-series was on anyone's radar.
Re:Do not buy RAM, compress by aldonius on Thursday November 19, 2026 @07:53PM (#50568777)
Also useful on mobile. Apple's always been precious about RAM usage on iOS and it's helped them keep device RAM sizes a bit lower (compared to Android flagships). They've even got that offloading mechanism so they can keep on-device models relatively small too.
Re:Do not buy RAM, compress by mkesper on Thursday November 19, 2026 @11:20AM (#50562105)
zram has inherent problems and is superseded by zswap. https://chrisdown.name/2026/03/24/zswap-vs-zram-when-to-use-...
Re:Do not buy RAM, compress by anthk on Thursday November 19, 2026 @12:24PM (#50563045)
NOo in my case. Both a NUC with 8GB of RAM and a netbook with 1. Zram ran better.
Re:Do not buy RAM, compress by kasabali on Thursday November 19, 2026 @12:29PM (#50563127)
superseded when? both have inherent problems and their usecases and I got sick of this meme of pushing zswap as the superior solution.
Re:Do not buy RAM, compress by quotemstr on Thursday November 19, 2026 @03:33PM (#50565957)
Doesn't seem like a "meme" as much as a well-argued technical position. What's the problem?
Re:Do not buy RAM, compress by hofiflo on Thursday November 19, 2026 @12:29PM (#50563130)
I have a laptop with soldered RAM, a whole whopping 16GB of it. Without zswap or zram, it’s borderline unusable with web browsing, a bunch of terminals, mail client, etc. open. Maybe it’s a skill issue on my side, but only zram makes it work properly without hickups due to the OOM killer taking too long to kick in. Since switching from zswap to zram, I basically don’t encounter OOM situations and corresponding lockups anymore at all. Just my personal anecdote :)
Re:Do not buy RAM, compress by adgjlsfhk1 on Thursday November 19, 2026 @01:28PM (#50564041)
zswap+earlyoom/systemd-oomd is the optimal combo. Unfortunately, very few desktops ship this/configure it correctly.
Re:Do not buy RAM, compress by hofiflo on Thursday November 19, 2026 @03:12PM (#50565655)
I guess that’s where the skill issue is coming in! That’s what I tried but probably my configuration wasn’t ideal. Maybe I should give it another shot!
Re:Do not buy RAM, compress by MayeulC on Friday November 20, 2026 @01:07AM (#50570772)
You can also try the following to let the system detect thrashing and fire up its OOM killer: echo 1000 > /sys/kernel/mm/lru_gen/min_ttl_ms

Docs: https://www.kernel.org/doc/html/latest/admin-guide/mm/multig...

In practice I think you may still want a userspace OOM killer that knows a bit more about what processes are preferable to kill.

Re:Do not buy RAM, compress by anthk on Thursday November 19, 2026 @05:34PM (#50567462)
Man my notebook has 2GB of RAM and I used either UBo + ZRAM or bundled adblocking from Waterfox just fine. The NUC with 8GB and ZRAM flies. WIth 16GB you shouldn't need ZRAM at all...
Re:Do not buy RAM, compress by shakow on Thursday November 19, 2026 @04:38PM (#50566802)
I would argue this article has its conclusion in reverse: for 99.9% of end users, zram is better, as hitting a disk swap means that something went very wrong anyway, and it's better to let the OOM killer do its job (a shame that the default one sucks hard).

Using zswap only makes sense in a server context, where very long-running processes, relative expendability of SSDs and very high concurrency completely change the optimal.

But now, people just parrot this article and paste it everywhere without taking time to stop and think about how it applies to different use cases.

Re:Do not buy RAM, compress by Izkata on Friday November 20, 2026 @01:23PM (#50579426)
From what I'm reading, zswap does the same thing as zram, except when it hits its limits and actually needs to swap to disk it has extra information about what's actually being accessed so it can push the least-recently-used memory to disk. Where when zram hits that point the kernel doesn't distinguish it from disk swap so your recent stuff gets pushed to disk and things you want fast end up slow.
Re:Do not buy RAM, compress by 2001zhaozhao on Friday November 20, 2026 @10:44PM (#50585696)
I had Claude test zram vs zswap on a machine with 32gb RAM and 4 sticks of Intel 16gb Optane as swap, and zram was substantially faster. Just one data point though. zswap is generally the superior option.
Re:Do not buy RAM, compress by hobo123 on Thursday November 19, 2026 @03:16PM (#50565718)
Not hating on Fedora, but do you really want your dad on a distro that switches to new packages (or tries new stuff) very eagerly, and that basically requires you to update to the new version every time? Also, 16GB on Linux go a long way, unless you do mem intensive stuff.
Re:Do not buy RAM, compress by taegee on Thursday November 19, 2026 @04:28PM (#50566643)
What's wrong with current packages? And the major version upgrades every six months is just a click on the update button.

For my parents (or any other non-techie person), I'd just take Fedora Kinoite and set it to auto-update.

Re:Do not buy RAM, compress by hobo123 on Friday November 20, 2026 @12:25AM (#50570505)
Nothing wrong, it's why I tried Fedora a long time ago. What turned me off was constant half done replacements (I think once the login screen didn't work well, and stuff like that).

I think by now Gnome is super stable (feature wise) and most systems around it, so if you want the latest, it's probably great.

Re:Do not buy RAM, compress by taegee on Friday November 20, 2026 @01:06PM (#50579157)
Then you should have a look at the mentioned atomic desktop spins. They guarantee you a bootable system.

I hopefully never have to touch GNOME ever again in my life.

Re:Do not buy RAM, compress by martinald on Thursday November 19, 2026 @08:44PM (#50569120)
I thought this before using Fedora, but actually it's great. It turns out that so many issues I had with desktop Linux were caused by a multitude of outdated packages.

For example, Ubuntu 24.04's GNOME doesn't support fractional scaling, which is a complete dealbreaker for me.

Re:Do not buy RAM, compress by InsidiousWombat on Thursday November 19, 2026 @03:59PM (#50566294)
Fedora is beta test environment for RedHat, I wouldn't use it for work machine.