4 ms·
Ok so zram creates a compressed block device in memory. Apparently it's sometimes used to hold a swap space for virtual memory. Compression rates are about 50%,
by morsch 13y ago
Ok so zram creates a compressed block device in memory. Apparently it's sometimes used to hold a swap space for virtual memory. Compression rates are about 50%, ie you can roughly "double" your memory.
I was going to say that this is crazy: why waste RAM to hold swap space, when you could use that RAM to avoid swapping in the first place. I still think it'd be odd to reserve a significant chunk of your memory for it. But I can see how it'd be pretty cool if you can manage it dynamically, ie. only start compressing memory as you run out of it to avoid hitting the disk.
Of course the usual rule still applies: if your PC swaps often, get more RAM; or if the RAM is not upgradable, go back in time and buy a machine with more RAM, then smack yourself on the head for not doing so in the first place. :)
- diroussel 13y ago> I was going to say that this is crazy: why waste RAM to hold swap space Because you can get faster performance, and more importantly lower energy usage, on the same hardware.