that sounds interesting, how can I use it?
Hardware information:
@newuser123, run inxi -Fxxc0z | eos-sendlog in your terminal. It will provide a link with all your specs. Share that link.
That gives more readable info
it warns me that it’ll send data somewhere. is that safe?
It will send it to a pastebin and give you a link to post. It’s as safe as posting the info directly to the forum
Yes, it’s safe. Forum users use that regularly. As @MyNameIsRichard said… It’s as safe as posting the info directly to the forum
Welp, something details say so I guess it isn’t revealing too much XD
I’m trying this of the zram and it’s… updating every single package in the computer? I guess?
Is it supposed to do that? I thought step one was just about installing something in particular XD
Arch and it’s derivatives don’t support a partially updated state as it can cause varied problems. pacman -Syu packagename performs a full system update as well as installing the required package.
How do I do step 2? the terminal looks different after I pasted the first command, but nothing happens when I paste the second stuff:
[zram0]
zram-size=ram
compression-algorithm=zstd
swap-priority=60
Ridiculously foolproof, please haha
I don’t see any specific reason given in that thread why this is set to 60 from the 100 which is the default.
It seems to me kind of arbitrary choice by the poster of those instructions.
There are also other algorithms for compression. The choice, I think, depends on whether your priority is speed (lz4, lzo) or a higher compression ratio (zstd).
If you’ve used nano, press Ctrl + X and answer Y
SWAP priority should probably be higher than 60, while a high swappiness should also be used.
( https://wiki.archlinux.org/title/Zram#Optimizing_swap_on_zram )
Here is another one ![]()
Swap priority only comes into play if you have more than 1 swap device and you want to specify which one gets used first (has priority). Otherwise it’s meaningless, and even with multiple swap devices the numbers only have to be higher/lower than each other to determine priority. The highest number will be the first swap device used. It could be 100, or 60, or 2 - just as long as it’s the highest number.
Yes but in the case you are using ZRAM .. in just about all cases you will want it to be used first.
So might as well aim high.
In most examples (like at the Arch Wiki) this is often simply 0 vs 100.
But looking back I can see we may use a value up to 32767 so maybe zram config should use that. ![]()
Again, it doesn’t matter at all if there’s only one swap device.
Understood.
I happen to have multiple for example.
$ swapon
NAME TYPE SIZE USED PRIO
/swapfile file 41G 0B 0
/dev/zram0 partition 27G 292.8M 100
( Hibernation works because the swapfile is large enough for the zram and physical memory. )
and to close the window? it says a process is running, even after I did what you said. Step 3 wouldn’t work, so I’m missing something.
What do you do after “press Ctrl + X and answer Y”?
I’ll take this into account, i have to redo that step anyway haha