I assume I should get rid of most of the swap. I also read somewhere to increase… swappiness of zram?

  • 7ai
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    1 year ago

    Zram usually has a very high compression ratio - around 4:1 for lz4 and 6:1 for zstd. You can set zram to 40-50 GB. It will still use less than 1/2 of your ram.

    Zram has an option to write poorly compressible data to the disk instead of storing it in the ram. I would split the swap partition - 3 GB for zram writeback and rest for ordinary swap.