You are not logged in.

#1 2024-05-21 22:14:42

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 92

zram vs zswap - Do I understand?

Hi,

Didn't want to post this in the technical issues section as I'm not looking for a solution to a problem, but am wanting confirmation that I understand at least to a basic level what zram and zswap are.

My understanding is that:

zram: If you for example allocate 8GB to zram swap, it will at a maximum store 8GB of compressed 'stuff' in your RAM, which if for example zstd compresses that down to 4GB only takes up half the space. So it's effectively making the memory you have more efficient and doesn't store anything on disk like a regular swap file would.

zswap: compresses the data that is allocated to swap file and stores in RAM rather than writing to disk if possbile.

And that if you are using zram, you don't want zswap enabled as it interferes with the functions of zram.


Ryzen 7 1800X | AMD 7800XT | KDE Plasma
I can't wait to play my favourite game, wine64-preloader.

Offline

#2 2024-05-21 22:52:46

seth
Member
Registered: 2012-09-03
Posts: 53,558

Online

#3 2024-05-21 22:55:34

Nikolai5
Member
From: North West, England, UK
Registered: 2024-01-27
Posts: 92

Re: zram vs zswap - Do I understand?

I had not seen that, thanks for the link.


Ryzen 7 1800X | AMD 7800XT | KDE Plasma
I can't wait to play my favourite game, wine64-preloader.

Offline

#4 2024-05-22 06:41:10

agapito
Member
From: Who cares.
Registered: 2008-11-13
Posts: 667

Re: zram vs zswap - Do I understand?

Nikolai5 wrote:

but am wanting confirmation that I understand at least to a basic level what zram and zswap are.

I didn´t read that link, but yes, alla what you said is correct.


Excuse my poor English.

Offline

Board footer

Powered by FluxBB