#zram
70 messages · Page 1 of 1 (latest)
i did not understand it from the wiki actully
i mean is it like just entering the commands in the terminal and thats all ?
modprobe zram
echo lz4 > /sys/block/zram0/comp_algorithm
echo 8G > /sys/block/zram0/disksize
mkswap --label zram0 /dev/zram0
swapon --priority 100 /dev/zram0
@signal mural
eh...can someone help me to set 8gb of zram guys ?
No, you will have to do that every time if you do that
The section 5.3.1 specifically
alr..but can u stay with me to do step by step with u the right way ...so i dont mess up things
so first thing
sudo nano /etc/modules-load.d/zram.conf in terminal and enter this in it right ?
zram
Yes
alr gimme sec
This will make it so that the zram module get automatically loaded when you turn on your computer
It's the equivalent of doing modprobe zram everytime you turn on your computer
then this ?
sudo nano /etc/modprobe.d/zram.conf
options zram num_devices=2
should this be 1 or 0 ? cause i just want 1 8gb of zram
i have 4gb of ram...and i wanna set 8gb of zram
Sorry that doesn't make sense
??
If you have 4gb of ram you can for example use 2gb of it as zram and the other 2gb as normal ram
i have a friend of mine did set 8gb of zram for me once...but i reinstalled so..
uhm i dont think so cause when i open htop i saw 8gb of ram in swap
That's probably swap not zram
he did set the zram for me through the terminal not any software installed
na thats zram im pretty sure
Unless this is black magic, this shouldn't be possible, you can't pull an additional free 4gb from thin air
uh well...lets set 2gb then as u said
but is it going to be fast as the normal ram ?
Even zram is a trade off, it use your CPU for compression and decompression
uhm and whats the diffrence between zram and zswap
which 1 do u recommend me to use in my case
Zswap (already enabled) just compresses the page of that ram that would otherwise be swapped to disk immediately
so ig its better to disable zswap and set zram ? or am i wrong
alright so in this case how much of zram should i set from my 4gb
Zram on the other hand take part of your ram and use it as a compressed swap, making it possible to store more data in ram
But you will lose some performance because of the compression and decompression
No you will gain "more ram"
It cost some performance
That's why the Linux kernel only use it when it's necessary
oh...well thanks for helping...uhm can i ask some more things about arch if u dont mind ? cause im kinda new in it
It try to keep things in the normal part of ram because it's faster to access
Sure, but this would be more appropriate in #tech-general I think
Or maybe you can start a new thread for every different question you have
already tried to ask in that channel but they sent me to the linux support..idk why
can i ask u in dm if u dont mind ?
That's a waste, having more people to answer is better, like in #tech-general
If the question get too specific and practical it should be in Linux support clearly
If you are just talking to people and being curious then use #tech-general
Btw if you decide to not use zram then undo what you have just done
remove zram text from that ?
sudo nano /etc/modules-load.d/zram.conf
Yes or delete the file entirely
This too
how can i delete it entirely
Yes, remember to use sudo