Skip to main content
Topic: ZRAMen Artix-Plasma-openRC (Read 2066 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

ZRAMen Artix-Plasma-openRC

Hi,
i want replace my `swap` with `zram` and deactivate `zswap`

Install `zrame`:
Code: [Select]
sudo pacman -S zramen zramen-openrc
Detect installed service, enable, start and recheck:
Code: [Select]
sudo rc-service --list | grep zram
sudo rc-update add zramen default
sudo rc-service zramen start
sudo rc-status --servicelist -s | grep zram
Disable 'swap` if any
Code: [Select]
# find swap-partition
lsblk
# shwitch off swap, type here you partition e.g. /dev/sda3
sudo swapoff /dev/nvme1n1p3
# disable swap from `/etc/fstab` by typing # on front of swap UUID-Line
sudo nano /etc/fstab
Create zram-device, disable 'zswap"  configure ZRAM:
Code: [Select]
modprobe zram num_devices=1
echo N > /sys/module/zswap/parameters/enabled
echo lz4 > /sys/block/zram0/comp_algorithm
echo 48G > /sys/block/zram0/disksize
mkswap --label zram0 /dev/zram0
swapon --priority 100 /dev/zram0
/etc/fstab
Code: [Select]
# ZRAM
UUID=9f46d511-1a3d-466c-a657-de92101e13b7       swap    swap    defaults        0 0
Disable `zswap` permanently (Kernelmodule Grub, rEFInd)



Re: ZRAMen Artix-Plasma-openRC

Reply #1
are you asking a question?

it looks thorough...

You can have both though also if you wish.  It's not an either or  situation...  you can use zram, a swapfile, and a swap partition if you like. or any combo...
Cat Herders of Linux

Re: ZRAMen Artix-Plasma-openRC

Reply #2
are you asking a question?

it looks thorough...

You can have both though also if you wish.  It's not an either or  situation...  you can use zram, a swapfile, and a swap partition if you like. or any combo...

Yes, I followed the instructions but 'zramen' didn't appear bei 'lsblk' and asking the 'OpenRC' service appear the message:
Code: [Select]
rc-status

zramen                                                                     [  crashed  ]
As explained, I want replace the 'swap-partition' using 'zramen' but want disable 'zswap'.

Can you or someone else help me to eliminate my error?

Thanks again

Re: ZRAMen Artix-Plasma-openRC

Reply #3
Code: [Select]
rc-status

zramen                                                                     [  crashed  ]
Next step would be to find out why it crashed. Services usually write diagnostic messages to log files. Log files in traditional GNU/Linux (without systemd) are usually located inside /var/log.

Re: ZRAMen Artix-Plasma-openRC

Reply #4
Next step would be to find out why it crashed. Services usually write diagnostic messages to log files. Log files in traditional GNU/Linux (without systemd) are usually located inside /var/log.
here the output of: 'file:///var/log/rc.log'

Code: [Select]

rc shutdown logging started at Thu May 12 16:02:35 2022

urandom           | * Saving random seed ...
local             | * Stopping local ...openrc-settingsd  | * Stopping openrc-settingsd ...

ckb-next-daemon   | * Stopping Corsair Keyboards and Mice Driver ...
zramen            |zramen#info: Removing zram swap device: /dev/zram0
sddm              | * Stopping sddm ...
bluetoothd        | * Stopping bluetoothd ...
 [ ok ]
connmand          | * Stopping connmand ...
acpid             | * Stopping acpid ...
cupsd             | * Stopping cupsd ...
NetworkManager    | * Stopping NetworkManager ... [ !! ]

 [ ok ]
 [ ok ]
cronie            | * Stopping cronie ...
syslog-ng         | * Stopping syslog-ng ...
 [ ok ]
 [ ok ]
swap              | * Deactivating swap devices ...
 [ ok ]
avahi-daemon      | * Stopping avahi-daemon ...
 [ ok ]
 [ ok ]
zramen            |zramen#info: Removed zram swap device: /dev/zram0
 [ ok ]
 [ ok ]
elogind           | * Stopping elogind ...
 [ ok ]
dbus              | * Stopping dbus ...
 [ ok ]
 [ ok ]
 [ ok ]
localmount        | * Unmounting loop devices
localmount        | * Unmounting filesystems
localmount        | *   Unmounting /home/tony/Data/sa-850-evo-250 ...
 [ ok ]
localmount        | *   Unmounting /home/tony/Data/nvme-data ...
 [ ok ]
localmount        | *   Unmounting /boot/efi ...
 [ ok ]
hwclock           | * Setting hardware clock using the system clock [UTC] ...
udev              | * Stopping udev ...
 [ ok ]
 [ ok ]
swap              |swapoff: cannot find the device for UUID=9f46d511-1a3d-466c-a657-de92101e13b7
 [ ok ]

rc shutdown logging stopped at Thu May 12 16:02:38 2022


rc boot logging started at Sun May 15 09:36:39 2022

modules           | * Loading module crypto_user ...
termencoding      | * Setting terminal encoding [UTF-8] ...
 [ ok ]
keymaps           | * Setting keyboard mode [UTF-8] ...
 [ ok ]
keymaps           | * Loading key mappings [us] ...
 [ ok ]
 [ ok ]
hwclock           | * Setting system clock using the hardware clock [UTC] ...
 [ ok ]
loopback          | * Bringing up network interface lo ...
fsck              | * Checking local filesystems  ...
 [ ok ]
sysctl            | * Configuring kernel parameters ...
fsck              |fsck.fat 4.2 (2021-01-31)
fsck              |There are differences between boot sector and its backup.
fsck              |This is mostly harmless. Differences: (offset:original/backup)
fsck              |  65:01/00
fsck              |  Not automatically fixing this.
 [ ok ]
fsck              |Dirty bit is set. Fs was not properly unmounted and some data may be corrupt.
fsck              | Automatically removing dirty bit.
hostname          | * Setting hostname to Tony-Haupt-PC from /etc/hostname ...
fsck              |
fsck              |*** Filesystem was changed ***
fsck              |Writing changes.
fsck              |/dev/nvme1n1p1: 5 files, 38/261872 clusters
 [ ok ]
procfs            | * Mounting misc binary format filesystem ...
fsck              | * Filesystems repaired
 [ !! ]
 [ ok ]
binfmt            | * Loading custom binary format handlers ...
root              | * Remounting filesystems ...
 [ ok ]
 [ ok ]
swap              | * Activating swap devices ...
mtab              | * Updating /etc/mtab ...
mtab              | * Creating mtab symbolic link
 [ ok ]
swap              |swapon: cannot find the device for UUID=9f46d511-1a3d-466c-a657-de92101e13b7
 [ ok ]
localmount        | * Mounting local filesystems ...
 [ ok ]
opentmpfiles-setup| * Setting up tmpfiles.d entries ...
bootmisc          | * Creating user login records ...
urandom           | * Initializing random number generator ...
opensysusers      | * Setting up sysusers.d entries ...
 [ ok ]
 [ ok ]
 [ ok ]
bootmisc          | * Wiping /tmp directory ...
 [ ok ]
 [ ok ]
save-keymaps      | * Saving key mapping ...
consolefont       | * Setting console font [default8x16] ...
save-termencoding | * Saving terminal encoding ...
 [ ok ]
 [ ok ]
dbus              | * Starting dbus ...
 [ ok ]
net.lo            | * Bringing up interface lo
net.lo            | *   Caching network module dependencies
elogind           | * Starting elogind ...
 [ ok ]
 [ ok ]
net.lo            | *   127.0.0.1/8 ...
 [ ok ]
net.lo            | *   Adding routes
net.lo            | *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 [ ok ]

rc boot logging stopped at Sun May 15 09:36:40 2022


rc default logging started at Sun May 15 09:36:40 2022

ckb-next-daemon   | * Starting Corsair Keyboards and Mice Driver ...
zramen            | * Starting zramen ...
 [ ok ]
 [ ok ]
bluetoothd        | * Starting bluetoothd ...
 [ ok ]
NetworkManager    | * Starting NetworkManager ...
connmand          | * Starting connmand ...
syslog-ng         | * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
 [ ok ]
 [ ok ]
 [ ok ]
syslog-ng         | * Starting syslog-ng ...
 [ ok ]
NetworkManager    |Connecting.                  1scronie            | * Starting cronie ...
 [ ok ]
acpid             | * Starting acpid ...
 [ ok ]
Connecting..                 1sConnecting...                1sConnecting....               1sConnecting.....              1sConnecting......             1sConnecting.......            1sConnecting........           1sConnecting.........          1sConnecting..........         1sConnecting...........        1sConnecting............       1sConnecting.............      1sConnecting..............     1sConnecting...............    1sConnecting...............    0s [offline]
NetworkManager    | * Marking NetworkManager as inactive. It will automatically be marked
NetworkManager    | * as started after a network connection has been established.
NetworkManager    | * WARNING: NetworkManager has started, but is inactive
avahi-daemon      | * Starting avahi-daemon ...
 [ ok ]
netmount          | * WARNING: netmount will start when NetworkManager has started
sddm              | * Starting sddm ...
 [ ok ]
cupsd             | * Starting cupsd ...
 [ ok ]
local             | * Starting local ...
 [ ok ]

rc default logging stopped at Sun May 15 09:36:42 2022


rc shutdown logging started at Sun May 15 09:35:46 2022

local             | * Stopping local ...
 [ !! ]
urandom           | * Saving random seed ...
acpid             | * Stopping acpid ...
ckb-next-daemon   | * Stopping Corsair Keyboards and Mice Driver ...
openrc-settingsd  | * Stopping openrc-settingsd ...
zramen            |zramen#info: Removing zram swap device: /dev/zram0
cronie            | * Stopping cronie ...
sddm              | * Stopping sddm ...
 [ ok ] [ ok ]

bluetoothd        | * Stopping bluetoothd ...
 [ ok ]
cupsd             | * Stopping cupsd ...
swap              | * Deactivating swap devices ...
 [ ok ]
NetworkManager    | * Stopping NetworkManager ...
connmand          | * Stopping connmand ...
 [ ok ]
 [ ok ]
avahi-daemon      | * Stopping avahi-daemon ...
zramen            |zramen#info: Removed zram swap device: /dev/zram0
 [ ok ]
 [ ok ]
 [ ok ]
elogind           | * Stopping elogind ...
 [ ok ]
dbus              | * Stopping dbus ...
 [ ok ]
 [ ok ]
 [ ok ]
syslog-ng         | * Stopping syslog-ng ...
 [ ok ]
localmount        | * Unmounting loop devices
localmount        | * Unmounting filesystems
localmount        | *   Unmounting /home/tony/Data/sa-850-evo-250 ...
 [ ok ]
localmount        | *   Unmounting /home/tony/Data/nvme-data ...
 [ ok ]
localmount        | *   Unmounting /boot/efi ...
 [ ok ]
hwclock           | * Setting hardware clock using the system clock [UTC] ...
udev              | * Stopping udev ...
 [ ok ]
swap              |swapoff: cannot find the device for UUID=9f46d511-1a3d-466c-a657-de92101e13b7
 [ ok ]
 [ ok ]

rc shutdown logging stopped at Sun May 15 09:35:48 2022


rc shutdown logging started at Sun May 15 09:35:46 2022

local             | * Stopping local ...
 [ !! ]
urandom           | * Saving random seed ...
acpid             | * Stopping acpid ...
ckb-next-daemon   | * Stopping Corsair Keyboards and Mice Driver ...
openrc-settingsd  | * Stopping openrc-settingsd ...
zramen            |zramen#info: Removing zram swap device: /dev/zram0
cronie            | * Stopping cronie ...
sddm              | * Stopping sddm ...
 [ ok ] [ ok ]

bluetoothd        | * Stopping bluetoothd ...
 [ ok ]
cupsd             | * Stopping cupsd ...
swap              | * Deactivating swap devices ...
 [ ok ]
NetworkManager    | * Stopping NetworkManager ...
connmand          | * Stopping connmand ...
 [ ok ]
 [ ok ]
avahi-daemon      | * Stopping avahi-daemon ...
zramen            |zramen#info: Removed zram swap device: /dev/zram0
 [ ok ]
 [ ok ]
 [ ok ]
elogind           | * Stopping elogind ...
 [ ok ]
dbus              | * Stopping dbus ...
 [ ok ]
 [ ok ]
 [ ok ]
syslog-ng         | * Stopping syslog-ng ...
 [ ok ]
localmount        | * Unmounting loop devices
localmount        | * Unmounting filesystems
localmount        | *   Unmounting /home/tony/Data/sa-850-evo-250 ...
 [ ok ]
localmount        | *   Unmounting /home/tony/Data/nvme-data ...
 [ ok ]
localmount        | *   Unmounting /boot/efi ...
 [ ok ]
hwclock           | * Setting hardware clock using the system clock [UTC] ...
udev              | * Stopping udev ...
 [ ok ]
swap              |swapoff: cannot find the device for UUID=9f46d511-1a3d-466c-a657-de92101e13b7
 [ ok ]
 [ ok ]

rc shutdown logging stopped at Sun May 15 09:35:48 2022


rc boot logging started at Sun May 15 09:43:07 2022

termencoding      | * Setting terminal encoding [UTF-8] ...
modules           | * Loading module crypto_user ...
 [ ok ]
keymaps           | * Setting keyboard mode [UTF-8] ...
 [ ok ]
keymaps           | * Loading key mappings [us] ...
 [ ok ]
 [ ok ]
hwclock           | * Setting system clock using the hardware clock [UTC] ...
 [ ok ]
sysctl            | * Configuring kernel parameters ...
hostname          | * Setting hostname to Tony-Haupt-PC from /etc/hostname ...
 [ ok ]
loopback          | * Bringing up network interface lo ...
 [ ok ]
fsck              | * Checking local filesystems  ...
 [ ok ]
fsck              |fsck.fat 4.2 (2021-01-31)
procfs            | * Mounting misc binary format filesystem ...
 [ ok ]
fsck              |/dev/nvme1n1p1: 5 files, 38/261872 clusters
 [ ok ]
root              | * Remounting filesystems ...
 [ ok ]
binfmt            | * Loading custom binary format handlers ...
 [ ok ]
mtab              | * Updating /etc/mtab ...
mtab              | * Creating mtab symbolic link
 [ ok ]
swap              | * Activating swap devices ...
swap              |swapon: cannot find the device for UUID=9f46d511-1a3d-466c-a657-de92101e13b7
 [ ok ]
localmount        | * Mounting local filesystems ...
 [ ok ]
opentmpfiles-setup| * Setting up tmpfiles.d entries ...
urandom           | * Initializing random number generator ...
 [ ok ]
opensysusers      | * Setting up sysusers.d entries ...
 [ ok ]
 [ ok ]
bootmisc          | * Creating user login records ...
 [ ok ]
bootmisc          | * Wiping /tmp directory ...
 [ ok ]
save-keymaps      | * Saving key mapping ...
dbus              | * Starting dbus ...
consolefont       | * Setting console font [default8x16] ...
 [ ok ]
net.lo            | * Bringing up interface lo
 [ ok ]
save-termencoding | * Saving terminal encoding ...
net.lo            | *   Caching network module dependencies
 [ ok ]
elogind           | * Starting elogind ...
 [ ok ]
 [ ok ]
net.lo            | *   127.0.0.1/8 ...
 [ ok ]
net.lo            | *   Adding routes
net.lo            | *     127.0.0.0/8 via 127.0.0.1 ...
 [ ok ]
 [ ok ]

rc boot logging stopped at Sun May 15 09:43:08 2022


rc default logging started at Sun May 15 09:43:08 2022

zramen            | * Starting zramen ...
ckb-next-daemon   | * Starting Corsair Keyboards and Mice Driver ...
 [ ok ]
 [ ok ]
syslog-ng         | * Checking your configfile (/etc/syslog-ng/syslog-ng.conf) ...
bluetoothd        | * Starting bluetoothd ...
connmand          | * Starting connmand ...
 [ ok ]
 [ ok ]
NetworkManager    | * Starting NetworkManager ...
 [ ok ]
 [ ok ]
syslog-ng         | * Starting syslog-ng ...
 [ ok ]
cronie            | * Starting cronie ...
 [ ok ]
acpid             | * Starting acpid ...
 [ ok ]
NetworkManager    |Connecting..                 1sConnecting...                1sConnecting....               1sConnecting.....              1sConnecting......             1sConnecting.......            1sConnecting........           1sConnecting.........          1sConnecting..........         1sConnecting...........        1sConnecting............       1sConnecting.............      1sConnecting..............     1sConnecting...............    1sConnecting...............    0s [offline]
NetworkManager    | * Marking NetworkManager as inactive. It will automatically be marked
NetworkManager    | * as started after a network connection has been established.
NetworkManager    | * WARNING: NetworkManager has started, but is inactive
avahi-daemon      | * Starting avahi-daemon ...
 [ ok ]
netmount          | * WARNING: netmount will start when NetworkManager has started
sddm              | * Starting sddm ...
 [ ok ]
cupsd             | * Starting cupsd ...
 [ ok ]
local             | * Starting local ...
 [ ok ]

rc default logging stopped at Sun May 15 09:43:10 2022


Re: ZRAMen Artix-Plasma-openRC

Reply #5
Code: [Select]
swap              | * Activating swap devices ...
swap              |swapon: cannot find the device for UUID=9f46d511-1a3d-466c-a657-de92101e13b7
zramen            | * Starting zramen ...
You haven't disabled the swap service. Do this. Also, rc.log doesn't say a lot, stop zramen first and then run rc-service --debug zramen start from the terminal and see what it does exactly.

Re: ZRAMen Artix-Plasma-openRC

Reply #6
Code: [Select]
swap              | * Activating swap devices ...
swap              |swapon: cannot find the device for UUID=9f46d511-1a3d-466c-a657-de92101e13b7
zramen            | * Starting zramen ...
You haven't disabled the swap service. Do this. Also, rc.log doesn't say a lot, stop zramen first and then run rc-service --debug zramen start from the terminal and see what it does exactly.

Thanks for indications, swap service stopped, disabling didn't work:
Code: [Select]
sudo rc-service swap stop

swap              | * WARNING: you are stopping a boot service
swap              |swap              | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/swap stop
swap              | * Deactivating swap devices ...                                                                                                                                                         [ ok ]

sudo rc-update del swap
 * rc-update: service `swap' is not in the runlevel `default'
[/code]
Restarting `zramed` crashed again, here the output:
Code: [Select]
sudo rc-service --debug zramen start
zramen            |zramen            | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/zramen start
zramen            |+ sourcex -e /etc/rc.conf
zramen            |+ '[' -e = -e ']'
zramen            |+ shift
zramen            |+ '[' -e /etc/rc.conf ']'
zramen            |+ . /etc/rc.conf
zramen            |++ rc_parallel=YES
zramen            |++ rc_depend_strict=NO
zramen            |++ rc_logger=YES
zramen            |++ rc_verbose=yes
zramen            |++ rc_crashed_start=YES
zramen            |++ rc_nocolor=NO
zramen            |++ unicode=YES
zramen            |++ rc_tty_number=12
zramen            |+ '[' -d /etc/rc.conf.d ']'
zramen            |+ _conf_d=/etc/init.d/../conf.d
zramen            |+ _c=zramen
zramen            |+ '[' -n zramen -a zramen '!=' zramen ']'
zramen            |+ unset _c
zramen            |+ sourcex -e /etc/init.d/../conf.d/zramen.default
zramen            |+ '[' -e = -e ']'
zramen            |+ shift
zramen            |+ '[' -e /etc/init.d/../conf.d/zramen.default ']'
zramen            |+ return 1
zramen            |+ sourcex -e /etc/init.d/../conf.d/zramen
zramen            |+ '[' -e = -e ']'
zramen            |+ shift
zramen            |+ '[' -e /etc/init.d/../conf.d/zramen ']'
zramen            |+ return 1
zramen            |+ unset _conf_d
zramen            |+ sourcex /usr/lib/openrc/sh/runit.sh
zramen            |+ '[' /usr/lib/openrc/sh/runit.sh = -e ']'
zramen            |+ . /usr/lib/openrc/sh/runit.sh
zramen            |+ sourcex /usr/lib/openrc/sh/s6.sh
zramen            |+ '[' /usr/lib/openrc/sh/s6.sh = -e ']'
zramen            |+ . /usr/lib/openrc/sh/s6.sh
zramen            |++ '[' -z '' ']'
zramen            |++ s6_service_path=/var/svc.d/zramen
zramen            |+ sourcex /usr/lib/openrc/sh/start-stop-daemon.sh
zramen            |+ '[' /usr/lib/openrc/sh/start-stop-daemon.sh = -e ']'
zramen            |+ . /usr/lib/openrc/sh/start-stop-daemon.sh
zramen            |+ sourcex /usr/lib/openrc/sh/supervise-daemon.sh
zramen            |+ '[' /usr/lib/openrc/sh/supervise-daemon.sh = -e ']'
zramen            |+ . /usr/lib/openrc/sh/supervise-daemon.sh
zramen            |++ extra_commands='healthcheck unhealthy '
zramen            |+ sourcex /etc/init.d/zramen
zramen            |+ '[' /etc/init.d/zramen = -e ']'
zramen            |+ . /etc/init.d/zramen
zramen            |++ pidfile=/run/zramen.pid
zramen            |++ command=/usr/bin/zramen
zramen            |++ command_args=make
zramen            |++ command_background=true
zramen            |+ yesno yes
zramen            |+ '[' -z yes ']'
zramen            |+ case "$1" in
zramen            |+ return 0
zramen            |+ EINFO_VERBOSE=yes
zramen            |+ export EINFO_VERBOSE
zramen            |+ for _cmd in "$@"
zramen            |+ '[' start '!=' status -a start '!=' describe ']'
zramen            |+ '[' -n '' ']'
zramen            |++ command -v cgroup_add_service
zramen            |+ '[' cgroup_add_service = cgroup_add_service ']'
zramen            |+ grep -qs /sys/fs/cgroup /proc/1/mountinfo
zramen            |+ '[' -d /sys/fs/cgroup -a '!' -w /sys/fs/cgroup ']'
zramen            |+ cgroup_add_service
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/blkio/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/cpu/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/cpuacct/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/cpuset/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/devices/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/freezer/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/hugetlb/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/memory/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/misc/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/net_cls/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/net_prio/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/openrc/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/perf_event/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/pids/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/rdma/tasks ']'
zramen            |+ printf %d 0
zramen            |+ for d in /sys/fs/cgroup/*
zramen            |+ '[' -w /sys/fs/cgroup/unified/tasks ']'
zramen            |+ openrc_cgroup=/sys/fs/cgroup/openrc
zramen            |+ '[' -d /sys/fs/cgroup/openrc ']'
zramen            |+ cgroup=/sys/fs/cgroup/openrc/zramen
zramen            |+ mkdir -p /sys/fs/cgroup/openrc/zramen
zramen            |+ '[' -w /sys/fs/cgroup/openrc/zramen/tasks ']'
zramen            |+ printf %d 0
zramen            |++ command -v cgroup_set_limits
zramen            |+ '[' cgroup_set_limits = cgroup_set_limits ']'
zramen            |+ cgroup_set_limits
zramen            |+ local blkio=
zramen            |+ '[' -n '' ']'
zramen            |+ local cpu=
zramen            |+ '[' -n '' ']'
zramen            |+ local cpuacct=
zramen            |+ '[' -n '' ']'
zramen            |+ local cpuset=
zramen            |+ '[' -n '' ']'
zramen            |+ local devices=
zramen            |+ '[' -n '' ']'
zramen            |+ local hugetlb=
zramen            |+ '[' -n '' ']'
zramen            |+ local memory=
zramen            |+ '[' -n '' ']'
zramen            |+ local net_cls=
zramen            |+ '[' -n '' ']'
zramen            |+ local net_prio=
zramen            |+ '[' -n '' ']'
zramen            |+ local pids=
zramen            |+ '[' -n '' ']'
zramen            |+ return 0
zramen            |++ command -v cgroup2_set_limits
zramen            |+ '[' cgroup2_set_limits = cgroup2_set_limits ']'
zramen            |+ '[' start = start ']'
zramen            |+ cgroup2_set_limits
zramen            |+ local cgroup_path
zramen            |++ cgroup2_find_path
zramen            |++ grep -qw cgroup2 /proc/filesystems
zramen            |++ case "${rc_cgroup_mode:-hybrid}" in
zramen            |++ printf /sys/fs/cgroup/unified
zramen            |++ return 0
zramen            |+ cgroup_path=/sys/fs/cgroup/unified
zramen            |+ '[' -z /sys/fs/cgroup/unified ']'
zramen            |+ mountinfo -q /sys/fs/cgroup/unified
zramen            |+ rc_cgroup_path=/sys/fs/cgroup/unified/zramen
zramen            |+ '[' '!' -d /sys/fs/cgroup/unified/zramen ']'
zramen            |+ mkdir /sys/fs/cgroup/unified/zramen
zramen            |+ '[' -f /sys/fs/cgroup/unified/zramen/cgroup.procs ']'
zramen            |+ printf 0
zramen            |+ '[' -z '' ']'
zramen            |+ return 0
zramen            |+ break
zramen            |+ eval 'printf '\''%s\n'\'' '
zramen            |++ printf '%s\n'
zramen            |+ read _d
zramen            |+ '[' -n '' ']'
zramen            |+ read _d
zramen            |+ '[' 0 -ne 0 ']'
zramen            |+ unset _d
zramen            |+ eval 'printf '\''%s\n'\'' '
zramen            |+ read _f
zramen            |++ printf '%s\n'
zramen            |+ '[' -n '' ']'
zramen            |+ read _f
zramen            |+ '[' 0 -ne 0 ']'
zramen            |+ unset _f
zramen            |+ '[' -n '' ']'
zramen            |+ '[' -n start ']'
zramen            |+ '[' start = depend ']'
zramen            |+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
zramen            |+ '[' describe = start ']'
zramen            |+ for _cmd in describe start stop status ${extra_commands:-$opts} $extra_started_commands $extra_stopped_commands
zramen            |+ '[' start = start ']'
zramen            |++ command -v start
zramen            |+ '[' start = start ']'
zramen            |+ yesno
zramen            |+ '[' -z '' ']'
zramen            |+ return 1
zramen            |+ for _cmd in $extra_stopped_commands
zramen            |+ '[' cgroup_cleanup = start ']'
zramen            |+ unset _cmd
zramen            |+ case $1 in
zramen            |+ verify_boot
zramen            |+ '[' '!' -e /run/openrc/softlevel ']'
zramen            |+ return 0
zramen            |++ command -v start_pre
zramen            |+ '[' '' = start_pre ']'
zramen            |+ start
zramen            |+ default_start
zramen            |+ local func=ssd_start
zramen            |+ case "$supervisor" in
zramen            |+ ssd_start
zramen            |+ '[' -z /usr/bin/zramen ']'
zramen            |+ local _background=
zramen            |+ ebegin 'Starting zramen'
zramen            | * Starting zramen ...
zramen            |+ yesno true
zramen            |+ '[' -z true ']'
zramen            |+ case "$1" in
zramen            |+ return 0
zramen            |+ '[' -z /run/zramen.pid ']'
zramen            |+ '[' -n '' ']'
zramen            |+ _background='--background --make-pidfile'
zramen            |+ yesno ''
zramen            |+ '[' -z '' ']'
zramen            |+ return 1
zramen            |+ eval start-stop-daemon --start --exec /usr/bin/zramen '' '' --pidfile /run/zramen.pid --background --make-pidfile -- make
zramen            |++ start-stop-daemon --start --exec /usr/bin/zramen --pidfile /run/zramen.pid --background --make-pidfile -- make
zramen            | * Detaching to start `/usr/bin/zramen' ...
zramen            |+ eend 0 'Failed to start zramen'                                                                                                                                                        [ ok ]
zramen            |+ service_set_value command /usr/bin/zramen
zramen            |+ '[' -n '' ']'
zramen            |+ '[' -n /run/zramen.pid ']'
zramen            |+ service_set_value pidfile /run/zramen.pid
zramen            |+ '[' -n '' ']'
zramen            |+ return 0
zramen            |++ command -v start_post
zramen            |+ '[' '' = start_post ']'
zramen            |++ command -v cgroup_cleanup
zramen            |+ '[' cgroup_cleanup = cgroup_cleanup ']'
zramen            |+ '[' start = stop ']'
zramen            |++ command -v cgroup2_remove
zramen            |+ '[' cgroup2_remove = cgroup2_remove ']'
zramen            |+ '[' start = stop ']'
zramen            |+ '[' -z /usr/bin/zramen ']'
zramen            |+ shift
zramen            |+ continue 2
zramen            |+ '[' -n '' ']'
zramen            |+ exit 0

Re: ZRAMen Artix-Plasma-openRC

Reply #7
You haven't disabled the swap service. Do this. Also, rc.log doesn't say a lot, stop zramen first and then run rc-service --debug zramen start from the terminal and see what it does exactly.
Restarting the swap-service/daemon, I discover it use two files to start
Code: [Select]
sudo rc-service swap start

swap              |swap              | * Executing: /usr/lib/openrc/sh/openrc-run.sh /usr/lib/openrc/sh/openrc-run.sh /etc/init.d/swap start
swap              | * Activating swap devices ...
the first one (openrc-run.sh) is a generic one and the second (swap) have `start` with command `swapon -a >/dev/null;;` and `stop` with command `swapoff -a >/dev/null;;` but...

who/what issue following command?:
Code: [Select]
/etc/init.d/swap start

how to neutralize this command?
and why is the 'old' swap not switched off by installing `zramen`?