Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Package Request: zram-generator #905

Closed
2 of 4 tasks
george-angel opened this issue Nov 30, 2022 · 0 comments · Fixed by flatcar/scripts#1772
Closed
2 of 4 tasks

New Package Request: zram-generator #905

george-angel opened this issue Nov 30, 2022 · 0 comments · Fixed by flatcar/scripts#1772
Labels
good first issue Get started with Flatcar contribution with this issue. kind/new-package

Comments

@george-angel
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Get started with Flatcar contribution with this issue. kind/new-package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants