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
BloodBlight lemmy.zip BloodBlight@lemmy.zip
Joined: 2026-10-01
#52 · (edited) Quote Reply

And I was remembering Drivespace and Stacker.

Ya, but those worked. Wasn't it originally called Disk Doubler (think it might have changed names when MS purchased it).

I remember finding a bug in it that took forever to figure out. You had to install windows 3.1 before enabling it or it would fail to read one of the floppies.

Took me a LONG time to figure that one out....

2
Lydia_K lemmy.world Lydia_K@lemmy.world
Joined: 2023-07-03
#53 · Quote Reply

Wait I think I've already been here

Time is a flat circle

2
myyass lemmy.world myyass@lemmy.world
Joined: 2026-09-02
#54 · Quote Reply

Is this like Ram-Rod?

9
inclementimmigrant lemmy.world inclementimmigrant@lemmy.world
Joined: 2023-06-30
#55 · Quote Reply

Wait I think I've already been here

I remember this trash:

6
DataCrime lemmy.dbzer0.com DataCrime@lemmy.dbzer0.com
Joined: 2023-06-29
#56 · Quote Reply

Is this like Ram-Rod?

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

6
adarza lemmy.ca adarza@lemmy.ca
Joined: 2024-05-29
#57 · Quote Reply

I remember this trash:

this one was one of the bullshit ones. iirc, underneath it just made your swap bigger

4
adarza lemmy.ca adarza@lemmy.ca
Joined: 2024-05-29
#58 · Quote Reply

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

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

11
myyass lemmy.world myyass@lemmy.world
Joined: 2026-09-02
#59 · Quote Reply

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

Yeah It looks like someone posted a picture of the old floppy disk.

2
klankin piefed.ca klankin@piefed.ca
Joined: 2026-01-12
#60 · (edited) 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

Honestly though CPU processing is going to add almost no latency at all.

Almost all latency is sending to the RAM itself, so if you can compress it in a CPU cache before sending it, its nearly free RAM space.

Also systems are fucked fast these days you could probably make something responsive in pure python - other than millisecond timing scenarios like medical and audio stuff

4
klankin piefed.ca klankin@piefed.ca
Joined: 2026-01-12
#61 · (edited) Quote Reply

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

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

3
KulunkelBoom lemmus.org KulunkelBoom@lemmus.org
Joined: 2025-10-02
#62 · Quote Reply

With great speed comes great accuracy and endurance?

7
OhneHose feddit.org OhmeHose@feddit.org
Joined: 2026-01-18
#63 · Quote Reply

Finally! I can download more RAM!

Could already do that with zram!

6
OhneHose feddit.org OhmeHose@feddit.org
Joined: 2026-01-18
#64 · Quote Reply

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

There's at least one game I definitely know which benefits from zram, and will probably also benefit from cram.

If you run star citizen on a 32gb or lower linux system you'll need to enable zram, otherwise the game will grind to a halt. Setting zram to 0.5*ram it ends up being playable. I had to go that route before I changed to 64gb physical ram.

Zram compression isn't that bad, I don't mind a faster method tho :)

3
NotAnOtter lemmus.org NotAnOtter@lemmus.org
Joined: 2026-09-26
#65 · Quote Reply

CRAM is an utterly goated name

37
MrScottyTay sh.itjust.works MrScottyTay@sh.itjust.works
Joined: 2023-06-09
#66 · Quote Reply

Compressed RAM

Compressed CRAM

4
treesquid lemmy.world treesquid@lemmy.world
Joined: 2023-07-02
#67 · Quote Reply

CRAM is an utterly goated name

And this isn't the only cool thing to have it

1
tnarg42 lemmy.world tnarg42@lemmy.world
Joined: 2023-06-08
#68 · Quote Reply

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

21
mofongo discuss.tchncs.de mofongo@discuss.tchncs.de
Joined: 2026-07-07
#69 · Quote Reply

I remember this trash:

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

5
ShinkanTrain lemmy.ml ShinkanTrain@lemmy.ml
Joined: 2024-06-13
#70 · (edited) Quote Reply

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

I feel like ZRAM showed up when prices were historically low

7
Salty_NZ aussie.zone Salty_NZ@aussie.zone
Joined: 2026-09-30
#71 · Quote Reply

Compressed CRAM

Compressed CCRAM

5
BlueberryWalnut sopuli.xyz BlueberryWalnut@sopuli.xyz
Joined: 2025-08-27
#72 · Quote Reply

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

13
Darkonion lemmy.world Darkonion@lemmy.world
Joined: 2024-10-24
#73 · Quote Reply

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

19
tnarg42 lemmy.world tnarg42@lemmy.world
Joined: 2023-06-08
#74 · Quote Reply

I feel like ZRAM showed up when prices were historically low

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

5
FreddiesLantern leminal.space FreddiesLantern@leminal.space
Joined: 2025-09-19
#75 · Quote Reply

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

2
sludgewife lemmy.blahaj.zone sludgewife@lemmy.blahaj.zone
Joined: 2025-02-03
#76 · Quote Reply

meh needs special hardware

16
spicystraw lemmy.world spicystraw@lemmy.world
Joined: 2023-07-01
#77 · Quote Reply

meh needs special hardware

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.

15
thingsiplay lemmy.ml thingsiplay@lemmy.ml
Joined: 2026-01-09
#78 · (edited) Quote Reply

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

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?

1
Haley lemmus.org halezinflames@lemmus.org
Joined: 2026-08-06
#79 · Quote Reply

Neat

3
blackbrook lemmy.ml blackbrook@lemmy.ml
Joined: 2023-06-03
#80 · (edited) Quote Reply

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

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.

1
thingsiplay lemmy.ml thingsiplay@lemmy.ml
Joined: 2026-01-09
#81 · (edited) Quote Reply

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.

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?

1
sekki lemmy.world sekki@lemmy.world
Joined: 2024-08-04
#82 · Quote Reply

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.

There is no mention of any extra hardware here though. The article even suggests this to benefit existing hardware like the steam deck.

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

There is no mention of any extra hardware here though. The article even suggests this to benefit existing hardware like the steam deck.

In another comment, I posted a link to the CRAM presentation that mentioned a chip.

This article also mentions some hardware:

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.

I don't think it would say that if they meant the CPU was doing the compression.

1
sekki lemmy.world sekki@lemmy.world
Joined: 2024-08-04
#84 · Quote Reply

In another comment, I posted a link to the CRAM presentation that mentioned a chip. This article also mentions some hardware: 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. I don't think it would say that if they meant the CPU was doing the compression.

Ah I see. It might not be a requirement though. In the case that the numbers are given with hardware offloaded compression it might just be slower when running on CPU. But I guess time will tell.

1
blackbrook lemmy.ml blackbrook@lemmy.ml
Joined: 2023-06-03
#85 · Quote Reply

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

Right, a stack that was itself read-only would be hard to use! :^D
C definitely lets you modify the things in the stack. (Ah the fun of bugs where you accidentally overwrite other shit on the stack!) I don't know Rust, but it would not surprise me if Rust only had immutable things on the stack.

1
thingsiplay lemmy.ml thingsiplay@lemmy.ml
Joined: 2026-01-09
#86 · Quote Reply

Right, a stack that was itself read-only would be hard to use! :^D C definitely lets you modify the things in the stack. (Ah the fun of bugs where you accidentally overwrite other shit on the stack!) I don't know Rust, but it would not surprise me if Rust only had immutable things on the stack.

No, its not only immutable things on the stack. I mean if you include a literal constant string such as "MIT LICENSE", that is part of the compiled binary file. So it is unchangeable. Because you cannot change a literal, a "1" is always a "1" in the compiled binary file. And those are basically read only by their nature and loaded into the stack. I think or guess in C it is the same. Or any language for that matter.

I started to think I was hallucinating. I guess what I was thinking is this part https://en.wikipedia.org/wiki/Data_segment . There are read-only data segments too.

1
Caveman lemmy.world olafurp@lemmy.world
Joined: 2023-08-19
#87 · Quote Reply

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

Isn't it just ZRAM but with a C?

2
Caveman lemmy.world olafurp@lemmy.world
Joined: 2023-08-19
#88 · 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!

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.

1
Post Reply Page 2 of 2   Goto page « First 1, 2
Back to top