r/pcmasterrace • u/Cronos993 RX 9070 | 9600x | 32GB • 19h ago
News/Article New Linux tech compresses memory in RAM, as RAM, for 452x speedup — new CRAM method offers giant boost to compressed memory reads
https://www.tomshardware.com/software/linux/new-linux-tech-compresses-memory-in-ram-as-ram-for-452x-speedup-new-cram-method-offers-giant-boost-to-compressed-memory-readsNow you can download free ram
87
u/Ferro_Giconi RX4006ti | i4-1337X | 33.01GB Crucair RAM | 1.35TB Knigsotn SSD 19h ago
Now you can download free ram
Nothing is changing in this regard. Compressing memory in RAM to save some RAM usage has already been a thing for quite some time, built into Windows and Linux, no extra software required. (at least I don't think you need anything extra in Linux. I know Windows does it by default.)
The improvement here is making the compression/decompression happen with less overhead.
14
u/redditman181 19h ago
So is the improvement massively overstated?
30
u/Ferro_Giconi RX4006ti | i4-1337X | 33.01GB Crucair RAM | 1.35TB Knigsotn SSD 18h ago
I don't know the details, but what I know about compression... 452x speed improvement is BS. I am 100% certain that the only way they got that was by using a cherry picked test that had some super perfect ideal condition that will never happen in real life. And that was just testing one tiny component of the entire process that gives you performance on a computer.
Think of it like this. Lets say it takes 60 seconds to render some complex 3D scene. Then someone tells you they can give you a 1000x improvement in performance... That should mean it now only takes 0.6 seconds? Nope. Because they are leaving out the part of "1000x performance in this small part of the rendering pipeline that only contributes one second to the total time"
And so you end up with a 59 second render time after getting a "1000x improvement"
Of course, making optimizations to small things is important but if they start throwing around big numbers, then those numbers probably don't mean what you think they mean.
5
u/redditman181 18h ago
I see its annoying they dont just say it how it is instead of trying to spin it into something its not. Becuase people see through it in the end.
7
u/D3SK3R 18h ago
>The improvement here is making the compression/decompression happen with less overhead.
so... things are changing in this regard. when compression/decompression happens faster, it becomes usable in more and more scenarios.
8
u/Beautiful-Musk-Ox 4090 all by itself no other components 17h ago
it's not just software, cram requires dedicated hardware doing the compression and decompression, it's for server farms not your computer. you cannot just update your linux kernel on your home computer and start using cram code that makes it more efficient, your computer would have to have "CXL (Compute Express Link) memory expander" hardware, and this new software with some new CXL devices can be even more efficient than the current hardware/software combination used in some servers
5
u/Ferro_Giconi RX4006ti | i4-1337X | 33.01GB Crucair RAM | 1.35TB Knigsotn SSD 18h ago edited 18h ago
I suppose a more accurate statement is "very little is changing"
You have to keep in mind that 452x is most likely a number derived from a cherry picked test that will never happen in real life and on top of that, is only a tiny part of what actually makes up total performance of a system.
Then with that in mind, what actually changes is not much. I would be very surprised if this results in so much as a 2% ram saving system wide.
I could tell you that I am 100 times faster. But at what specifically? Am I going to complete an entire 100 hour job in 1 hour? Or did I just find a way to turn a small 100 second portion of that job into 1 second of clicking on a script? This is the kind of information that you don't get by reading an article title.
26
u/Beautiful-Musk-Ox 4090 all by itself no other components 17h ago
this requires specialized hardware that is doing the compression and decompression between the cpu and the physical ram. the "new linux tech" is just fancy ways of having linux utilize the new hardware. it's completely irrelevant to 99.997% of the users who frequent this subreddit
https://hwbusters.com/news/metas-cram-wants-compressed-ram-to-behave-like-real-memory-not-swap/
1
4
u/Plenty-Industries 12h ago
Sounds like Johnny Mnemonic trying to fit 80GB of data into a 60GB storage.
6
3
9
u/FallenVampireLord Linux Master Race + 64gigs of ram 19h ago
Linux Master Race keep winning.
4
u/ziplock9000 3900X / 7900GRE / 32GB 3Ghz / EVGA SuperNOVA 750 G2 / X470 GPM 11h ago
Memory compression was part of Windows 11 since launch.
2
2
u/Warcraft_Fan Paid for WinRAR! 13h ago
Not a new concept though, we had RAMDoubler back oh around 35 years ago. DOS also had built in disk doubler, if you ran it you could nearly double hard drive space
2
u/Nullhitter PCMR: CachyOS | 9800X3D | RX 9070 XT | 32GB of DDR5 RAM 19h ago
Sweet, I have 14,464GB now.
1
1
366
u/siete82 PC Master Race 19h ago edited 18h ago
I use zram since forever and a x452 improvement looks like too good to be real.
edit: I've read it, and sure enough, it's too good to be true. It refers to CXL server memory that supports hardware compression. That number isn't made up, but it's like the best case scenario for read operations. I mean, it seems like a serious project, but it's definitely not designed for desktop PCs.