Skip to content

Backing device & recompression feature request #16

@alazyworkaholic

Description

@alazyworkaholic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions