# Zram in Mabox

**URL:** https://forum.maboxlinux.org/t/zram-in-mabox/1681
**Category:** Basic Help & Support
**Created:** [May 21, 2024, 11:49pm UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681 "2024-05-21T23:49:59Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [May 21, 2024, 11:49pm UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/1 "2024-05-21T23:49:59Z")

</div>

Hi, I want to install Zram on my PC with Mabox.

Before asking I was checking the forum and I did not find any topics related to Zram, ZRAM, zram, etc.  
I googled and only found information for Manjaro and other unrelated distros like Ubuntu.

I was looking in the Software Store and there is a zram-generator, but there is no kind of file that indicates what to do after installed Is there to enable it, modify any file? or does the method used in Manjaro work? Should I delete my swap partition before doing this or are they compatible?  
I appreciate any help

---

<div class="post-metadata">

### Author: ![napcok](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/napcok/32/410_2.png) [@napcok](https://forum.maboxlinux.org/u/napcok)
#### Post date: [May 22, 2024, 11:42am UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/2 "2024-05-22T11:42:44Z")

</div>

ArchWiki - as always - is a good source of information → [zram - ArchWiki](https://wiki.archlinux.org/title/Zram)

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [May 25, 2024, 11:48pm UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/3 "2024-05-25T23:48:20Z")

</div>

Thank you for your answer.  
I know Arch is our mother but I always have the doubt how much I can or should access pure Arch.  
While learning to use Mabox, I was left with the feeling that I shouldn’t treat it the same as Manjaro or Arch, maybe wrongly and never resolved that doubt. How different is Mabox from Arch internally, can I use everything Arch in Mabox?  
I always stick to what’s available on Mabox so I’m reassured that if I install something it’s in our repositories and anything I’ve done before from upgrading to customising is because I read about it on the forum or the official Mabox website.  
The errors or problems I’ve had were always caused by me, and if something I didn’t manage to solve is because I don’t have the knowledge or lack of time, but nothing has affected the proper functioning of my Mabox which is still as operational as when I installed it.

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [May 26, 2024, 12:42am UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/4 "2024-05-26T00:42:32Z")

</div>

Having read it, as it was not clear to me, I looked for more information and found endeavour’s information, which was very clear and explicit.  
[zram-generator](https://forum.endeavouros.com/t/enabling-zram-in-endeavouros/37746)  
Now I’m going to reset my PC, I hope I didn’t do the grub modification wrong or I’ll be in trouble.  
If I disappear is because I did it wrong and I must solve the problem.

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [May 26, 2024, 12:53am UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/6 "2024-05-26T00:53:37Z")

</div>

![Mabox_20240525-21-45-25](https://forum.maboxlinux.org/uploads/default/original/2X/e/e464fcd63a3aa65991ac7419b8907ff11ae6e08c.webp)

Well, I didn’t die trying.  
It works, now it’s time to see if I really notice any improvement or if I have to go back to the original.

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [June 12, 2024, 12:49am UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/7 "2024-06-12T00:49:22Z")

</div>

In the tutorials to install zram-generator they advise to delete the swap partition, I did it in the end, and it didn’t work well so I had to go back to zero, now I don’t know if the kernel zswap is active or not but the machine is working fine. Maybe even better than before in terms of speed, now without zram and without swap although I reformatted and enabled a partition as swap.  
I’m missing something because Conky still shows zram, now as if it’s empty but no swap.

---

<div class="post-metadata">

### Author: ![Claudio](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/claudio/32/2830_2.png) [@Claudio](https://forum.maboxlinux.org/u/Claudio)
#### Post date: [July 6, 2024, 1:00am UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/8 "2024-07-06T01:00:01Z")

</div>

I don’t know if the kernel’s zswap is active but there I see that it is using the disk swap, in truth it uses it very little, I don’t know what will happen when doing some work with Gimp that I understand is the software that can cause more RAM consumption. I will comment when I try it.

---

<div class="post-metadata">

### Author: ![User567](https://forum.maboxlinux.org/letter_avatar_proxy/v4/letter/u/5fc32e/32.png) [@User567](https://forum.maboxlinux.org/u/User567)
#### Post date: [April 12, 2026, 12:07pm UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/9 "2026-04-12T12:07:52Z")

</div>

Hi. Have you figured it out? I have just installed mabox on a laptop with 4G ram and look for zram to handle many tabs in web browser.

---

<div class="post-metadata">

### Author: ![danielhb](https://forum.maboxlinux.org/user_avatar/forum.maboxlinux.org/danielhb/32/3941_2.png) [@danielhb](https://forum.maboxlinux.org/u/danielhb)
#### Post date: [April 26, 2026, 1:01am UTC](https://forum.maboxlinux.org/t/zram-in-mabox/1681/10 "2026-04-26T01:01:25Z")

</div>

My toaster works very well with this configuration:

| Name | Type | Size | Used | Priority |
| --- | --- | --- | --- | --- |
| /dev/zram0 | partition | 6291452 | 29440 | 100 |
| /swapfile | file | 8388604 | 0 | 15 |
| /dev/sdd6 | partition | 8386556 | 0 | 5 |

in what order are they activated?

1º) zram  
2º) swapfile  
3º) partition swap  
Ideal if you have SSD, to protect the device.

* * *

In /etc/fstab:

```auto
UUID="uuid of your swap partition" none swap sw,pri=5 0 0
/swapfile none swap sw,pri=15 0 0

```

* * *

with `swapon -s` you see the use of the swaps you have

For zram I gave him 75% of the physical RAM. I have 8G, but when I had 4G it was the same, it worked perfectly.

Chatgpt helps you a lot, clarifying that you use MABOX Linux, Manjaro based.

I hope this information will help you.  
Greetings from Argentina. 🫂 🇦🇷
