Page 1 of 1

How To: using swap on zram.

PostPosted: Feb 13th, '21, 17:39
by JY
Hello!
Do you know an easy way to use zram as swap in Mageia?
I guess one of these packages?:
https://madb.mageia.org/package/list/t_ ... rch/x86_64

Thanks for the help!)

Re: How To: using swap on zram.

PostPosted: Feb 13th, '21, 19:33
by doktor5000
Hi there, what amount of RAM do you currently have, and why do you think zram would help, and with what in particular ?

Re: How To: using swap on zram.

PostPosted: Feb 13th, '21, 23:03
by JY
Hi! I have a few machines, having from 1.5 to 2 GB of ram...
Swapping is constant and slows everything as soon as browser is used...
So swapping on zram instead of hard disk may be of some help...

Re: How To: using swap on zram.

PostPosted: Feb 14th, '21, 12:18
by doktor5000
From a quick look, seems you could try it by installing zramstart package and manually running zramstart as root.
If you want it permanently you should enable mkzram.service which should activate automatically after swap.target and run zramstart.

Re: How To: using swap on zram.

PostPosted: Feb 15th, '21, 17:29
by morgano
You could also try if a lighter browser suit your needs, like otter-browser, Falkon, and Midori which we have packaged, plus a few more alternatives.
And a light desktop.

Re: How To: using swap on zram.

PostPosted: Feb 16th, '21, 18:57
by JY
Thanks to take the time to answer... i'll test zramstart and mkzram.service....
Yes i know other browsers are lighter... but you know, protected contents (more and more commonly used, following Netfilxe's path...) are only in firefox or widevine-enabled browsers, not the light ones...

Re: How To: using swap on zram.

PostPosted: Nov 21st, '23, 06:45
by farnas
Hello!

I decided to wrap up a small instruction based on the info found on this chat regarding zram in Mageia. Unfortunately, I didn't find any official wiki about it! Also I used this instruction written for Rosa Linux: https://dzen.ru/a/YjBO2NuThU5uCfr2

dnf in zramstart ### install the app first
zramstart ### just start it
nano /etc/sysconfig/zram ### by default the FACTOR=33 but I prefer 100 or more
systemctl enable mkzram.service ### enable the service permanently

swapon ## to check that it works.

Re: How To: using swap on zram.

PostPosted: Nov 21st, '23, 11:36
by morgano
Thank you farnas for the contribution - helpful for people needing it.

If you like to contribute this way, maybe you are interested in helping writing in our wiki?

Re: How To: using swap on zram.

PostPosted: Dec 2nd, '23, 07:32
by farnas
Yes, I'm interested in helping and updating your wiki. But I need a little time to learn more about Mageia. Honestly to say, English is not my mother tongue, but I'll try anyway because I also would like to contribute back in the community that is growing around such a wonderful Linux Distribution! :)

Re: How To: using swap on zram.

PostPosted: Dec 2nd, '23, 13:15
by morgano
Dont worry about English, i see you do good here :)
Other writers will check and correct language, typos. Happens to me. English is not my mother tongue either.
Of course you can also ask for writing help, i.e on the doc-discuss mail list. Ask for technical knowledge here en forum, I often ask in QA mail list as I am frequently there.
The aim is to write originally in English and keep them updated, then some pages are translated to other pages.

https://wiki.mageia.org/en/How_to_write_a_wiki_page

Start trying on your own page, example: mine is https://wiki.mageia.org/en/User:Morgano
It is a good place to start prototype writing, then copy paste to a new page.