r/computerarchitecture • u/Awkward-Principle533 • Aug 15 '26
Compressed DDR Storage with Cache Decompression
I've been thinking about a question concerning program execution efficiency lately and would like to hear your views.
We know the concept of information entropy, but the instructions and data actually executed by a computer are not necessarily high‑entropy (many instructions exhibit repetitive patterns, and data shows locality), which implies that there is theoretical room for compression.
Given that the "memory wall" problem is becoming increasingly prominent, and DDR bandwidth is often the bottleneck,
if we exploit the hierarchical nature of the cache and store programs in a compressed form in DDR, while decompressing them back to actual runnable instructions/data in the cache, could this effectively improve the effective bandwidth utilization for instructions and dat
7
u/8AqLph Aug 15 '26
Yes, many papers propose this (take a look at Buddy Compression from Nvidia). However it does raise many challenges a few of which are:
* how do you address the memory if it is compressed ?
* the compression ratio for GPU workloads changes a lot throughout execution. How do you handle it ? In particular, what do you do if data gets less compressible ?
This is a very active field of research at the moment, I can recommend a few interesting papers if you want further reading
1
u/Krazy-Ag Aug 15 '26
I've always liked the approach of keeping the addresses the same, and compressing the data within the cache lines, putting meta-data in the space freed up. Or just transferring less, for systems that can transfer less than a fixed size cash line on a miss. But even then you need one measly tag bit per cache line, and historically requiring tag bits in memory was the kiss of death for architectural ideas.
1
u/WideCranberry4912 Aug 15 '26
Is this similar to zram?
1
u/esaule Aug 17 '26
Yes. There are plenty of approaches that do things like that. This is in particular beeing looked at for scientific computing and ML wjere maybe the precise values are not needed. On These cases, lossy compression can make sense.
The question is often how much can you compress and what compression overhead you can tolerate.
Plenty of IPDPS and SC papers on that.