this post was submitted on 08 Oct 2026
478 points (99.0% liked)

Linux

68107 readers
809 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
top 50 comments
sorted by: hot top controversial new old
[–] Zensate@lemmy.world 160 points 1 week ago (3 children)

Ram compression called CRAM? I'm sold

[–] Pika@hikki.team 84 points 1 week ago (2 children)

The person who came up with this acronym is probably proud of their work lol

[–] olafurp@lemmy.world 2 points 6 days ago

Isn't it just ZRAM but with a C?

[–] cyberpunk007@lemmy.ca 22 points 1 week ago (5 children)

Now the fun part. What would Microsoft name it?

[–] swab148@lemmy.dbzer0.com 92 points 1 week ago
[–] CrabAndBroom@lemmy.ml 38 points 1 week ago* (last edited 1 week ago)

Microsoft MemoryOne X Expansion Framework Subsystem. And it would require 64GB of RAM to do the compression, thus defeating the purpose of it existing in the first place, would break whenever the Edge browser updates for no discernible reason, and would about once a year cause your Documents folder to disappear.

[–] jaybone@lemmy.zip 29 points 1 week ago (2 children)
[–] absGeekNZ@lemmy.nz 10 points 1 week ago* (last edited 1 week ago)

( C )opilot ( R )AM ( A )utomated ( P )owerup

[–] Kyouki@lemmy.world 9 points 1 week ago
[–] kestrel7_7@lemmy.world 18 points 1 week ago

How dare you! Microsoft would never publish software that utilizes system resources so well.

load more comments (1 replies)
[–] bad1080@piefed.social 11 points 1 week ago (1 children)
load more comments (1 replies)
load more comments (1 replies)
[–] okamiueru@lemmy.world 101 points 1 week ago* (last edited 1 week ago) (3 children)

Title is a bit misleading, and I think intentionally, which kinda irks me. It isn't a 400x speedup of RAM by means of compression. If I understood correctly, it's 400x speedup compared to disk read for swap.

Please correct me if I'm wrong here. I'd love some positive news from the IT world that isn't depressive. (edit: I implied this wasn't. It is. I'm just not sure of the actual impact)

[–] vithigar@lemmy.ca 109 points 1 week ago (1 children)

It's a little better than your read. The ~400x speedup is in comparison to using ZRAM, which, in very brief terms, compresses memory by creating an in-memory compressed block device and assigning that as your swap space. So your "swap" is actually a compressed chunk of RAM, not on disk.

This was significantly slower than normal memory access because page faulting when looking up something in memory then fetching from swap was, itself, expensive. Regardless of how fast that swap was. When your swap is on a storage device that overhead is comparatively tiny, but when it's just another chunk of memory suddenly it's what you're spending most of your time on.

[–] rockSlayer@lemmy.blahaj.zone 15 points 1 week ago (2 children)

Fuck yea, RAM swap? I bought both my laptop and desktop when RAM was cheap, and got more memory than I needed. I can safely allocate like 12GB to CRAM!

[–] olafurp@lemmy.world 1 points 6 days ago

Allocating all memory as CRAM is also a nice idea since reads are at regular speed. It's just writes that take a 20% longer for a nice memory expansion.

[–] vithigar@lemmy.ca 38 points 1 week ago (4 children)

The win from CRAM is that it is not swap, and operates using mostly normal RAM semantics. If it works as advertised you should be able to allocate most (all?!) of your RAM as CRAM.

load more comments (4 replies)
[–] thingsiplay@lemmy.ml 27 points 1 week ago (6 children)

I'm not sure if this is misleading at all. If anything, they should have mentioned compared to ZRAM. Title is incomplete, but I don't think it is intentionally misleading here. It just looks like they expect the reader to know CRAM is a replacement for ZRAM. The new compression method CRAM with over 400x speedup is compared to ZRAM method:

A new compression model, called CRAM, offers a different path to compression that avoids swap entirely by keeping the compressed data in memory, and it offers up to 452x the performance of ZRAM.

Because CRAM is stored in RAM and treated as RAM, with full cacheline/byte access, it can be accessed in a read-only fashion with little delay; just the cost of hardware-offloaded compression. As a result, CRAM "runs at DRAM speed," as the creator says in the slide above. While the graph already looks impressive, it's a logarithmic scale; CRAM, in the worst case, is doing 489 million operations per second versus ZRAM's 1.1 million. It's barely comparable.

Even when you enable writes, CRAM is still much faster than ZRAM; 5.4x in the worst tested case of 20% writes. That's a huge drop from the 452x read-only case, but keep your context; a 5.4x speedup is still titanic.

Is writes enabled CRAM / ZRAM common? If so, then the post title is definitely misleading.

load more comments (6 replies)
[–] JoMiran@lemmy.ml 11 points 1 week ago* (last edited 1 week ago)

Let me use my Raspberry Pi 3b as a practical example of what @vithigar@lemmy.ca was explaining. I run PiHole + Unbound on the Raspberry Pi 3b, with 1GB of ram. The main killer for a little Pi 3b is reading and writing to the SD card. We want to avoid that as much as possible. Block lists get updated weekly, so that's no big deal, but there is still a lot of traffic information that is being kept track of. The solution is to load all of that into zram. As you can imagine, on a slow and resource constrained system like a Pi 3b, any performance enhancement has a huge impact. A 452x performance increase over ZRAM on a system that mostly lives on ZRAM is massive.

I am not entirely sure about this but I imagine that this is also massive news for live operating systems like Tails and Kali Live.

[–] XiJinpingStanAccount@lemmy.ml 100 points 1 week ago (1 children)

Finally! I can download more RAM!

[–] OhmeHose@feddit.org 6 points 1 week ago

Could already do that with zram!

[–] Vitaly@feddit.uk 90 points 1 week ago (6 children)

So there are some benefits to the ram crisis? People actually optimize things because of limited resources.

[–] khannie@lemmy.world 45 points 1 week ago

When I was in computer science in college back in the 1900s, they told us that the USSR was responsible for some of the best algorithms still in use at the time (both for RAM and CPU usage) because they just had less to work with.

Guess we're all in that boat now.

[–] CrabAndBroom@lemmy.ml 39 points 1 week ago (5 children)

You know it's getting weird out there when Meta seems to be doing something that's actually useful.

[–] boonhet@lemmy.zip 17 points 1 week ago (1 children)

They've been doing useful engineering things since the start, it's just that it pales in comparison to all the bad things

load more comments (1 replies)
[–] adarza@lemmy.ca 11 points 1 week ago

they ain't doing it for us, they're doing it for themselves.

[–] chgxvjh@hexbear.net 10 points 1 week ago

Small performance improvements translate into large savings when you got millions of servers.

[–] cantstopthesignal@sh.itjust.works 7 points 1 week ago* (last edited 1 week ago) (1 children)

Whenever big tech companies like Meta do useful things like support Overture Maps Foundation (which is also supported by Microsoft and Amazon) they are doing it to blunt some competitive advantage another tech company has, such as google in this case. They support open source insofar as they can't monetize whatever they are open sourcing.

load more comments (1 replies)
load more comments (1 replies)
[–] ayyy@sh.itjust.works 30 points 1 week ago

This is still just a bandaid over running 10 copies of chromium for each electron app.

[–] Quazatron@lemmy.world 29 points 1 week ago (1 children)

Necessity is the mother of invention.

[–] SaveTheTuaHawk@lemmy.ca 17 points 1 week ago

This is very true, cheap RAM and storage just lead to inefficient, bloated code.

[–] Carl@hexbear.net 10 points 1 week ago* (last edited 1 week ago) (1 children)

That certainly seems to be a genre of article right now.

Cloudflare frees up 100TB of RAM by shrinking 1.1.1.1's DNS cache entries

MSI promises an EXPO ULL-like boost for your existing DDR5 memory

Microsoft vows to make Windows 11 fly on 8GB RAM amid memory shortage

load more comments (1 replies)
[–] novafunc@discuss.tchncs.de 7 points 1 week ago (6 children)

Does it count as optimization? For supported hardware, it's certainly cool. But it's not making inefficient software better, it's making better use of the hardware.

[–] shath@hexbear.net 10 points 1 week ago

Sounds like optimisation.

load more comments (5 replies)
[–] skisnow@lemmy.ca 45 points 1 week ago (4 children)

Wait I think I've already been here

[–] inclementimmigrant@lemmy.world 6 points 1 week ago (2 children)
load more comments (2 replies)
load more comments (3 replies)
[–] NotAnOtter@lemmus.org 36 points 1 week ago (1 children)

CRAM is an utterly goated name

load more comments (1 replies)
[–] GustavoM@lemmy.world 25 points 1 week ago (3 children)

Aww yeah! Time to CRAM some memory!

load more comments (3 replies)
[–] tnarg42@lemmy.world 21 points 1 week ago (1 children)

This idea comes out of the woodwork ever time RAM gets expensive.

[–] ShinkanTrain@lemmy.ml 7 points 1 week ago (1 children)

I feel like zRAM showed up when prices were historically low

load more comments (1 replies)
[–] Darkonion@lemmy.world 20 points 1 week ago

Ah, the old download more RAM trick. An oldie but a goodie.

[–] sludgewife@lemmy.blahaj.zone 17 points 1 week ago (1 children)

meh needs special hardware

[–] spicystraw@lemmy.world 16 points 1 week ago

Too bad, this isn't happening as a kernel patch. Adding to that point:

The key detail is that CRAM is a hardware implementation of compression, meaning the logic is in the memory controller rather than in software, so it's not a pure software trick like ZRAM. However, it uses standard off-the-shelf DRAM and a normal memory bus, so no exotic modules or custom interfaces are required.

[–] BlueberryWalnut@sopuli.xyz 13 points 1 week ago

I can carry nearly 80 gigs of data in my head. One sixty if l use a doubler.

[–] chgxvjh@hexbear.net 9 points 1 week ago

Download more RAM

[–] myyass@lemmy.world 8 points 1 week ago (1 children)
[–] DataCrime@lemmy.dbzer0.com 6 points 1 week ago (1 children)

I remember an old DOS utility called Ram Doubler. Sadly it also halved the speed.

load more comments (1 replies)
[–] KulunkelBoom@lemmus.org 7 points 1 week ago

With great speed comes great accuracy and endurance?

load more comments
view more: next ›