From Fedora Project Wiki

Revision as of 01:47, 29 June 2020 by Chrismurphy (talk | contribs) (initial writeup)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Description

Test disable swap-on-zram permanently.


How to test

  1. swap-on-zram should be enabled and running to start this test.
  2. Permanently disable swap-on-zram.
     sudo touch /etc/systemd/zram-generator.conf
    or
    sudo dnf remove zram-generator-defaults

    And now reboot.

  3. 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

  1. Status should be inactive (dead).
  2. There should be no /dev/zram0 device listed for the zramctl and swapon commands.