Installs and configures zram_generator
zram_generator::zram{'zram1':
zram_size => 'ram / 2',
}
This will create a /dev/zram1
device half the size of available RAM and activate it.
A set of zram_generator::zram
can be loaded from hiera:
zram_generator::zrams:
zram0:
fs_type: 'ext4'
mount_point: '/run/mount'
zram1:
zram_size: 1024
See REFERENCE.md for full details of parameters.