Hi there,
when I google around I find a lot about zram and swap, but I do have a laptop with shared graphic card and only 3 GB Ram.
I would like to have zram compressing my ram for more space.
Update:
I used the Debian Wikki and tested with dmesg and found: [ 0.711681] zswap: loaded using pool lzo/zbud
Does it mean it is working?
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
zRam for Debian Stretch compress ram
Re: zRam for Debian Stretch compress ram
So, I guess no one at Debian is using zram anymore or would know about it.
Sad, I do believe zram is still justified for older laptops, PCs and mini server.
Sad, I do believe zram is still justified for older laptops, PCs and mini server.
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: zRam for Debian Stretch compress ram
I believe it is incorporated into the kernel, but that's just from a little googling after I got curious. =)
Re: zRam for Debian Stretch compress ram
Unless you are using RAM in lieu of disk for swap, zram will give you less available RAM, not more. And if you're short on RAM, it's not clear why you'd be using it for swap.dirkme wrote:I would like to have zram compressing my ram for more space.
https://wiki.archlinux.org/index.php/Im ... m_or_zswap
Re: zRam for Debian Stretch compress ram
I didn't want to use it as swap, but can't find anymore how to use it to compress your available RAMdasein wrote:Unless you are using RAM in lieu of disk for swap, zram will give you less available RAM, not more. And if you're short on RAM, it's not clear why you'd be using it for swap.dirkme wrote:I would like to have zram compressing my ram for more space.
https://wiki.archlinux.org/index.php/Im ... m_or_zswap
Re: zRam for Debian Stretch compress ram
Then you don't want zram.dirkme wrote:I didn't want to use it as swap...
Re: zRam for Debian Stretch compress ram
I did it with zram before, just can't find out anymore how to, there is no other ram compressor than zram.dasein wrote:Then you don't want zram.dirkme wrote:I didn't want to use it as swap...
Re: zRam for Debian Stretch compress ram
Allocating a portion of RAM to swap (even "compressed" swap) decreases available RAM. It's simple subtraction
I'm done defending arithmetic.
I'm done defending arithmetic.
Re: zRam for Debian Stretch compress ram
Well, when Linux puts stuff in the swap space and that woudl be compressed RAM I do believe performance increasesdasein wrote:Allocating a portion of RAM to swap (even "compressed" swap) decreases available RAM. It's simple subtraction
I'm done defending arithmetic.
-
- Posts: 1101
- Joined: 2016-01-07 12:25
- Has thanked: 5 times
- Been thanked: 16 times
Re: zRam for Debian Stretch compress ram
I can't say I have ever (knowingly) used zRam, but I wouldn't have thought it could ever offer performance increase as there must be some overhead for compression. but if your idea is to use zRam as a replacement for swap then surely it would be better to have more ram available and set swap to be used only if critical (system resources have been diminished). And I have to add that I have noticed on my system that swap is already configure quite well and only usually gets used if I am doing some pretty intensive work (or play ) but it is usually mostly cleared when resources become available, and if I used zRam I would have less ram available due to zRam using a portion and therefore more need for swap to be used, so zRam actually might decrease performance...
I am not experienced with zRam so my understanding could possibly be flawed, but this is how I imagine the scenario (using zRam) playing out.
I am not experienced with zRam so my understanding could possibly be flawed, but this is how I imagine the scenario (using zRam) playing out.