From Fedora Project Wiki
Description
Test disable swap-on-zram permanently.
How to test
- swap-on-zram should be enabled and running to start this test.
- Permanently disable swap-on-zram.
sudo touch /etc/systemd/zram-generator.conf
or
sudo dnf remove zram-generator-defaults
And now reboot.
- Confirm it's stopped:
$ zramctl $ swapon NAME TYPE SIZE USED PRIO /dev/sda5 partition 10.4G 0B -2 $ sudo systemctl status swap-create@zram0 ● swap-create@zram0.service - Create swap on /dev/zram0 Loaded: loaded (/usr/lib/systemd/system/swap-create@.service; static; vendor preset: disabled) Active: inactive (dead) Docs: man:zram-generator(8) man:zram-generator.conf(5) $
Expected Results
- Status should be inactive (dead).
- There should be no /dev/zram0 device listed for the
zramctl
andswapon
commands.