Skip to content

Replace swap partition with zram-generator #41

@septatrix

Description

@septatrix

Swap partitions (and files) can result in many writes to slow disks, reduce their lifespan, and claim disk space* not usable by other means. Zram-generator solves this problem but still keeps swap for better handling of OOMs and for compressing rarely used pages. Due to the advantages Fedora for example has also made it the default years ago: Changes/SwapOnZRAM.

ParticleOS should follow best practices and adopt zram instead of a swap partition

*This is especially true because its repart definition has 4G as the minimum and it is not set to optional. So trying particleOS in a VM, one has to reverse 4 additional gigs of space

PS: Only advantage of a swap partition to my knowledge is support for hibernate but as far as I am aware this doesn't work for Secureboot or encrypted partitions anyhow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions