RetroFed Forums
Your home away from modern life.
New Linux tech compresses memory in RAM, as RAM, for 452x speedup — new CRAM method offers giant boost to compressed memory reads
Post Reply
AuthorMessage
inari piefed.zip inari@piefed.zip
Joined: 2026-02-07
(edited) Quote

453   Original
okamiueru lemmy.world okamiueru@lemmy.world
Joined: 2023-06-18
#2 · (edited) Quote Reply

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)

101
vithigar lemmy.ca vithigar@lemmy.ca
Joined: 2023-06-26
#3 · Quote Reply

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)

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.

110
thingsiplay lemmy.ml thingsiplay@lemmy.ml
Joined: 2026-01-09
#4 · Quote Reply

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)

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.

26
eddanja lemmy.world eddanja@lemmy.world
Joined: 2023-07-02
#5 · Quote Reply

I was dabbling in pricing a Slimbook last night and the price of RAM made me cry.

5
rockSlayer lemmy.blahaj.zone rockSlayer@lemmy.blahaj.zone
Joined: 2025-02-24
#6 · Quote Reply

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 me...

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!

15
Zensate lemmy.world Zensate@lemmy.world
Joined: 2026-09-15
#7 · Quote Reply

Ram compression called CRAM? I'm sold

158
🦄🦄🦄 feddit.org Duke_Nukem_1990@feddit.org
Joined: 2024-06-24
#8 · Quote Reply

What are the real world effects of this? E.g. for gaming etc.

2
Pika hikki.team Pika@hikki.team
Joined: 2025-07-07
#9 · Quote Reply

Ram compression called CRAM? I'm sold

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

83
vithigar lemmy.ca vithigar@lemmy.ca
Joined: 2023-06-26
#10 · Quote Reply

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!

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.

38
Jo Miran lemmy.ml JoMiran@lemmy.ml
Joined: 2023-06-29
#11 · (edited) Quote Reply

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)

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.

11
yeehaw lemmy.ca cyberpunk007@lemmy.ca
Joined: 2023-08-09
#12 · Quote Reply

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

Now the fun part. What would Microsoft name it?

23
swab148 lemmy.dbzer0.com swab148@lemmy.dbzer0.com
Joined: 2025-06-04
#13 · Quote Reply

Now the fun part. What would Microsoft name it?

Copilot

94
boonhet lemmy.zip boonhet@lemmy.zip
Joined: 2026-08-12
Banned
#14 · Quote Reply

What are the real world effects of this? E.g. for gaming etc.

If you're running out of RAM you can use the faster CRAM instead of ZRAM which itself is already much faster than swap. Basically you can fit more data into your RAM

1
MonkderVierte lemmy.zip MonkderVierte@lemmy.zip
Joined: 2025-05-30
#15 · Quote Reply

So, from what i've got from the comments; instead of doing swap shenanigans except in RAM like ZRAM (which slows it down), it just compresses content to a separate portion of RAM and points there?

3
Vitaly feddit.uk Vitaly@feddit.uk
Joined: 2023-06-12
#16 · Quote Reply

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

84
bad1080 piefed.social bad1080@piefed.social
Joined: 2026-02-27
#17 · Quote Reply

Ram compression called CRAM? I'm sold

cram it all in there!

12
Quazatron lemmy.world Quazatron@lemmy.world
Joined: 2023-06-12
#18 · Quote Reply

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

Necessity is the mother of invention.

28
eldavi lemmy.ml eldavi@lemmy.ml
Joined: 2023-07-18
#19 · Quote Reply

I was dabbling in pricing a Slimbook last night and the price of RAM made me cry.

i regret not getting mine just before the ai prices hit.

3
kestrel7_7 lemmy.world kestrel7_7@lemmy.world
Joined: 2026-07-31
#20 · Quote Reply

Now the fun part. What would Microsoft name it?

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

17
Random Dent lemmy.ml CrabAndBroom@lemmy.ml
Joined: 2023-06-01
#21 · (edited) Quote Reply

Now the fun part. What would Microsoft name it?

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.

39
Random Dent lemmy.ml CrabAndBroom@lemmy.ml
Joined: 2023-06-01
#22 · Quote Reply

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

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

37
XiJinpingStanAccount lemmy.ml XiJinpingStanAccount@lemmy.ml
Joined: 2026-10-08
#23 · Quote Reply

Finally! I can download more RAM!

88
skisnow lemmy.ca skisnow@lemmy.ca
Joined: 2025-03-22
#24 · Quote Reply

Wait I think I've already been here

45
jaybone lemmy.zip jaybone@lemmy.zip
Joined: 2025-02-08
#25 · Quote Reply

Now the fun part. What would Microsoft name it?

CRAP

31
novafunc discuss.tchncs.de novafunc@discuss.tchncs.de
Joined: 2026-04-25
#26 · Quote Reply

What are the real world effects of this? E.g. for gaming etc.

None, your current hardware lacks support for this.

4
SaveTheTuaHawk lemmy.ca SaveTheTuaHawk@lemmy.ca
Joined: 2025-03-07
#27 · Quote Reply

Necessity is the mother of invention.

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

17
jdr lemmy.ml jdr@lemmy.ml
Joined: 2021-07-28
#28 · (edited) Quote Reply

But you need a CXL device which does the (de)compression in hardware between the CPU and RAM?

4
Kyouki lemmy.world Kyouki@lemmy.world
Joined: 2023-07-18
#29 · Quote Reply

CRAP

MSCrap

10
novafunc discuss.tchncs.de novafunc@discuss.tchncs.de
Joined: 2026-04-25
#30 · Quote Reply

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

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.

6
MacFearrs lemmy.dbzer0.com MacFearrs@lemmy.dbzer0.com
Joined: 2023-07-11
#31 · Quote Reply

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.

I would guess this is only useful in servers, as for day to day use you ideally want the lowest latency you can for responsiveness. That said, if there's a way you can specify which type processes can use, that may be useful in some cases

4
floquant lemmy.dbzer0.com floquant@lemmy.dbzer0.com
Joined: 2024-05-31
#32 · Quote Reply

I would guess this is only useful in servers, as for day to day use you ideally want the lowest latency you can for responsiveness. That said, if there's a way you can specify which type processes can use, that may be useful in some cases

Depends on the workload. This probably would not be great for gaming or audio production, but it might be for video editing and local LLMs

5
poke sh.itjust.works poke@sh.itjust.works
Joined: 2023-06-10
#33 · Quote Reply

What are the real world effects of this? E.g. for gaming etc.

(Note: I could be wrong) Games would run worse if you needed to access this memory. This technology is for making a more efficient swap space than a hard disk, not for speeding up regular memory usage.

4
boonhet lemmy.zip boonhet@lemmy.zip
Joined: 2026-08-12
Banned
#34 · Quote Reply

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

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

14
morto piefed.social morto@piefed.social
Joined: 2025-07-03
#35 · Quote Reply

Depends on the workload. This probably would not be great for gaming or audio production, but it might be for video editing and local LLMs

And for gluttonous browsers and browser-based apps

9
morto piefed.social morto@piefed.social
Joined: 2025-07-03
#36 · Quote Reply

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

They only did a few useful things to be more efficient in doing the bad things

5
morto piefed.social morto@piefed.social
Joined: 2025-07-03
#37 · Quote Reply

None, your current hardware lacks support for this.

What are the requirements?

1
partofthevoice lemmy.zip partofthevoice@lemmy.zip
Joined: 2025-10-26
#38 · Quote Reply

cram it all in there!

Desperately looking for a cranberry pun…

1
partofthevoice lemmy.zip partofthevoice@lemmy.zip
Joined: 2025-10-26
#39 · (edited) Quote Reply

Ram compression called CRAM? I'm sold

Desperately looks for a cranberry pun…

2
BeigeAgenda lemmy.ca BeigeAgenda@lemmy.ca
Joined: 2023-06-28
#40 · Quote Reply

Wait I think I've already been here

And I was remembering Drivespace and Stacker.

2
PetteriPano lemmy.world PetteriPano@lemmy.world
Joined: 2024-09-04
#41 · Quote Reply

Now the fun part. What would Microsoft name it?

I 'member when microsoft ripped off stacker and called it drivespace.

As I recall they bought themselves out of it for a measly $100k and renamed it doublespace.

2
novafunc discuss.tchncs.de novafunc@discuss.tchncs.de
Joined: 2026-04-25
#42 · Quote Reply

What are the requirements?

In the presentation, they talk about a compression chip: https://www.youtube.com/live/OPRciCSsdS4?t=2060

3
GustavoM lemmy.world GustavoM@lemmy.world
Joined: 2023-06-23
#43 · Quote Reply

Aww yeah! Time to CRAM some memory!

25
sekki lemmy.world sekki@lemmy.world
Joined: 2024-08-04
#44 · Quote Reply

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.

So using the back of a knife to cut something is not more efficient than using the sharp side? I would say making better use of hardware is also an efficiency gain. You use the same hardware to do more, while not driving up cost significantly. That is efficiency in my book.

4
Guiorgy lemmy.ml Guiorgy@lemmy.ml
Joined: 2026-10-03
#45 · (edited) Quote Reply

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

ZSTD and BTRFS, among many other smaller things, hello?

2
novafunc discuss.tchncs.de novafunc@discuss.tchncs.de
Joined: 2026-04-25
#46 · Quote Reply

So using the back of a knife to cut something is not more efficient than using the sharp side? I would say making better use of hardware is also an efficiency gain. You use the same hardware to do more, while not driving up cost significantly. That is efficiency in my book.

It's not using the same hardware, this seems to use a special compression chip.

To me this feels more like the benefits of a CPU or GPU upgrade. Things run faster, but not due to software improvements. When people talk about things getting optimized due to the high RAM prices, I think most people are referring to software improvements.

2
cantstopthesignal sh.itjust.works cantstopthesignal@sh.itjust.works
Joined: 2023-06-28
#47 · (edited) Quote Reply

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

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.

7
absGeekNZ lemmy.nz absGeekNZ@lemmy.nz
Joined: 2023-06-29
#48 · (edited) Quote Reply

CRAP

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

11
khannie lemmy.world khannie@lemmy.world
Joined: 2023-06-21
#49 · Quote Reply

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

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.

45
ayyy sh.itjust.works ayyy@sh.itjust.works
Joined: 2024-06-20
#50 · Quote Reply

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

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

31
DairyKing lemmy.zip DairyKing@lemmy.zip
Joined: 2026-05-29
#51 · Quote Reply

Aww yeah! Time to CRAM some memory!

Compressed RAM

3
Post Reply Page 1 of 2   Goto page 1, 2 Last »
Back to top