Zram, how to enable? (in Manjaro/Arch-Porteus)

Arch based Porteus community project
Post Reply
Posts: 115
Joined: 10 Nov 2013, 12:02
Distribution: LXDE3.5Manjaro, LXDE3.01-32bit
Location: Sweden

Zram, how to enable? (in Manjaro/Arch-Porteus)

Post#1 by ElectriQT » 25 Jan 2017, 12:03

Hi, long time since I was here, and the main reason for that:
The Porteus 3.5 Nemesis works so nice for me! With the frequent updates and all. :- )

(I have seen some small bugs since I started, had to change upower / pm-util,
needed to remove a symlink libcadec to be able to update,
but I did figure how to solve this problems by my self)

I am glad to see that the Arch-Manjaro-Porteus project still going on / restarted,
In my opinion this is the best one so far, almost bug free
I really like LXDE, and the automatic security updates in Manjaro-linux, and so on,
however.. there is some memory leak, probably in the html5 player or in Firefox.
Sometimes I have no HDD, but now it is installed on a very small HDD
I don't use any swap-partition, so then suddenly it can freeze the
system ..really hard.., Sometimes even the sysRq "R E I S U B" will not work,
A hard power off seems to be the only way if it really freezes everything before I can "killall firefox" :- /

Q. What is the correct method to enable Z-ram in this version?

I am almost new to Linux, so I am not 100% sure about how to do this,
I found some scripts here:

Last edited by ElectriQT on 26 Jan 2017, 12:12, edited 2 times in total.

User avatar
Posts: 1353
Joined: 28 Dec 2010, 11:31
Distribution: ⟰ Porteus 3.2 Cinnamon x86_64
Location: ☭ Russian Federation, Lipetsk region, Dankov

Re: Zram,how to enable?

Post#2 by Blaze » 25 Jan 2017, 16:39

Try zram=25% in /mnt/sdb1/boot/syslinux/porteus.cfg

For example

APPEND initrd=initrd.xz changes=/porteus zram=25%

Linux porteus 4.12.7-porteus #1 SMP PREEMPT Sun Aug 13 17:38:30 x86_64 Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Tobago PRO [Radeon R7 360 / R9 360 OEM] (rev 81) » Vengeance LPX 16GB DDR4 K2 3200MHz C16

Posts: 115
Joined: 10 Nov 2013, 12:02
Distribution: LXDE3.5Manjaro, LXDE3.01-32bit
Location: Sweden

Re: Zram,how to enable? (in Manjaro/Arch-Porteus)

Post#3 by ElectriQT » 26 Jan 2017, 00:46

Blaze wrote: boot/syslinux/porteus.cfg
APPEND initrd=initrd.xz changes=/porteus zram=25%
-Nope,that did not work :- (

top (Htop) tells me: "Swp 0k/0k"

Maybe I need to shut of any running normal Harddrive-swap first?
[Edit: No, no difference. I tried swapon / swapoff -a ]

EDIT, I have the LXDE-version of Manjaro/Arch based PorteusNemesis3.5,
(I had no issues with Zram in the Slackwarebased Porteus)
All the latest updates from Manjaro installed with pacman update manager.)
EDIT, I Removed some redundant text. Moved a part of it to a second question about the Firewall.

User avatar
Black ninja
Black ninja
Posts: 48
Joined: 06 Nov 2015, 23:36
Distribution: porteus 3.2 xfce archBang
Location: uk & portugal

Re: Zram, how to enable? (in Manjaro/Arch-Porteus)

Post#4 by normalGuy » 26 Jan 2017, 21:13

Maybe cheatcode:

... Prevents the automatic use of an existing swap partition.
By default, Porteus searches your attached drives for
partitions that are formatted as swap, and will mount them
for use within Porteus. The 'noswap' cheatcode disables
this behaviour.
Works with me with arch in HD and porteus Usb.

Post Reply