407
submitted 23 hours ago* (last edited 23 hours ago) by inari@piefed.zip to c/linux@lemmy.ml
top 50 comments
sorted by: hot top new old
[-] sludgewife@lemmy.blahaj.zone 6 points 5 hours ago

meh needs special hardware

[-] spicystraw@lemmy.world 7 points 5 hours 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.

[-] halezinflames@lemmus.org 3 points 5 hours ago
[-] Darkonion@lemmy.world 12 points 9 hours ago

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

[-] NotAnOtter@lemmus.org 27 points 11 hours ago

CRAM is an utterly goated name

[-] FreddiesLantern@leminal.space 2 points 6 hours ago

Aaaeh ya know, just use some lube or wd40 and cram it in there.

[-] tnarg42@lemmy.world 16 points 11 hours ago

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

[-] ShinkanTrain@lemmy.ml 4 points 10 hours ago* (last edited 10 hours ago)

I feel like ZRAM showed up when prices were historically low

[-] tnarg42@lemmy.world 3 points 7 hours ago

Pshaw! Who needs zram when you could use RAM Doubler(tm)?

[-] BlueberryWalnut@sopuli.xyz 7 points 9 hours ago

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

[-] KulunkelBoom@lemmus.org 7 points 11 hours ago

With great speed comes great accuracy and endurance?

[-] XiJinpingStanAccount@lemmy.ml 83 points 19 hours ago

Finally! I can download more RAM!

[-] OhmeHose@feddit.org 4 points 11 hours ago

Could already do that with zram!

[-] GustavoM@lemmy.world 22 points 16 hours ago

Aww yeah! Time to CRAM some memory!

load more comments (3 replies)
[-] Zensate@lemmy.world 141 points 21 hours ago

Ram compression called CRAM? I'm sold

[-] Pika@hikki.team 74 points 21 hours ago

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

[-] cyberpunk007@lemmy.ca 16 points 20 hours ago

Now the fun part. What would Microsoft name it?

[-] swab148@lemmy.dbzer0.com 77 points 20 hours ago
[-] CrabAndBroom@lemmy.ml 26 points 19 hours ago* (last edited 19 hours 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 23 points 19 hours ago
[-] absGeekNZ 6 points 16 hours ago* (last edited 16 hours ago)

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

load more comments (1 replies)
[-] kestrel7_7@lemmy.world 13 points 19 hours ago

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

load more comments (1 replies)
load more comments (3 replies)
[-] Vitaly@feddit.uk 79 points 20 hours ago

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

[-] khannie@lemmy.world 35 points 15 hours 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.

[-] ayyy@sh.itjust.works 23 points 15 hours ago

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

[-] CrabAndBroom@lemmy.ml 33 points 19 hours ago

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

[-] adarza@lemmy.ca 8 points 14 hours ago

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

[-] boonhet@lemmy.zip 12 points 18 hours ago

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)
[-] cantstopthesignal@sh.itjust.works 5 points 16 hours ago* (last edited 15 hours ago)

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)
[-] Quazatron@lemmy.world 27 points 20 hours ago

Necessity is the mother of invention.

[-] SaveTheTuaHawk@lemmy.ca 16 points 19 hours ago

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

load more comments (4 replies)
[-] myyass@lemmy.world 8 points 14 hours ago
[-] DataCrime@lemmy.dbzer0.com 6 points 14 hours ago

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

load more comments (1 replies)
[-] skisnow@lemmy.ca 41 points 19 hours ago

Wait I think I've already been here

[-] inclementimmigrant@lemmy.world 5 points 14 hours ago
[-] mofongo@discuss.tchncs.de 3 points 10 hours ago

Why does it look like a heatmap of someone stroking their giant dick?

load more comments (1 replies)
load more comments (3 replies)
[-] okamiueru@lemmy.world 86 points 22 hours ago* (last edited 22 hours ago)

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 96 points 22 hours ago

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.

load more comments (6 replies)
[-] thingsiplay@lemmy.ml 24 points 22 hours ago

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.

[-] klankin@piefed.ca 3 points 12 hours ago* (last edited 12 hours ago)

Yeah wait how would you have read only RAM?

Loaded on boot for the OS I suppose?

Probably nice for running TV boxes off even less RAM than they're already starved for lmao

[-] thingsiplay@lemmy.ml 1 points 5 hours ago* (last edited 5 hours ago)

Guess read only RAM becomes... ROM? :D I have no clue either. Maybe there are protected areas in the memory no program has write access to, so it is read only from perspective of the application. Searching the web doesn't help, because every link I clicked just explains the difference between ROM and RAM.

Hmm... when I think about Rust programming (which is true in C too probably), there are two types of locations our variables can assigned to: Stack and Heap. In example if you have a text string as a literal like "Version 1.0", that string is located in the Stack memory, because it is unchanging. The Heap gets all those content that can vary and arbitrary long, but its slower. So the Stack content is much smaller, faster and basically read only RAM area (if I understand this correctly). Maybe that is it?

[-] blackbrook@lemmy.ml 1 points 4 hours ago* (last edited 4 hours ago)

I'm drawing on some old memories here, so I could be mistaken, but I don't think the stack is read only, not in C anyway or in the underlying machine code. If it is faster it has to do with greater overhead needed managing the larger heap and perhaps being more efficient to push and pop with small offsets to a local stack frame vs large absolute addresses.

[-] thingsiplay@lemmy.ml 1 points 4 hours ago* (last edited 4 hours ago)

but I don’t think the stack is read only

I don't mean the stack is read only (edit: yes I meant that in my previous reply, but got confused myself, I actually never thought the entire stack being read only, I was only thinking about those specific variables and literal strings, sorry for confusion), but certain variables holding values that are only used to read and not change. In example you cannot change literals, therefore they are read only values. In example if you have a program that prints "Hello Lemmy", that string is a literal that cannot be altered, and it is found in the application itself, as part of the binary. That part maybe is marked as read only?

load more comments (1 replies)
load more comments
view more: next ›
this post was submitted on 08 Oct 2026
407 points (98.8% liked)

Linux

68001 readers
1492 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