0

I'm new to zram, and reading the documentation it looks like it mounts something similar to a filesystem under /dev/zram<id>. If I understand correctly, anything stored here would be similar to tmpfs, except it would be swapped out to compressed ram.

I'm wondering if this concept can be applied to the heap of a program, such that any memory in the heap would be swapped to compressed ram instead of hdd?

1 Answer 1

1

Yes, that’s what zswap does — it swaps to zram instead of a volume or file on disk. It’s set up by default in a number of distributions nowadays.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .