this post was submitted on 25 Jun 2024
25 points (100.0% liked)
Linux
5234 readers
98 users here now
A community for everything relating to the linux operating system
Also check out [email protected]
Original icon base courtesy of [email protected] and The GIMP
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It can often improve performance and memory latency and usually only has a minor CPU performance impact as it trades cycles waiting for memory for cycles decompressing memory. It is usually decent even on low power embedded devices.
There are a few edge cases where ZRam is not great. If your data is already compressed or encrypted copying it around in memory is much more expensive. It's also harder to tell exactly how much data can be loaded into the "free" memory. It's also a bit slower for serialized memory access in large data sets if the compression ratio is low.