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

Backing device & recompression feature request #16

Open
alazyworkaholic opened this issue Mar 14, 2024 · 0 comments
Open

Backing device & recompression feature request #16

alazyworkaholic opened this issue Mar 14, 2024 · 0 comments

Comments

@alazyworkaholic
Copy link

This script helps a lot but it still doesn't leverage all of zram's potential, at least when compiled with some optional features.

zram allows memory-constrained machines to not only compress some ram, but also write pages that have been idle for some time to disk. That requires compiling zram with CONFIG_ZRAM_WRITEBACK and CONFIG_ZRAM_TRACK_ENTRY_TIME, then echoing a number of seconds to /sys/block/zramX/idle.

zram also allows use of secondary compression algorithms through the CONFIG_ZRAM_MULTI_COMP option. So for example, if lzo can't compress a page, zstd could have a try.

I hope someone who knows how can add these features to the script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant