Skip to content

New Package Request: zram-generator #905

@george-angel

Description

@george-angel

Package name and purpose
This generator provides a simple and fast mechanism to configure swap on /dev/zram* devices.

Impact of adding this package to the Flatcar OS image

The package improves on the following core values:

  • Secure by default
  • Always up to date
  • Improve container experience
  • Operate at scale / automation / telemetry

The package will increase the image size by: 0.8 MBytes.

How might this package increase the attack surface:

  • Very limited

Benefits of adding this package
Flatcar has some light documentation on using zram swap: https://flatcar-linux.org/docs/latest/setup/storage/adding-swap/#using-zram but its manual.
Being able to use zram-generator will:

  1. Automate the process of zram swap creation
  2. Enable easy config for the swap size logic (Fedora's default is 1:1 system memory or 8GB - whichever is smaller, example config: zram-size = min(ram, 8192))
  3. Manage creating of swap - no need to try and hand craft system unit files to load modules, create device, turn it on, etc.

Additional information
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions