Is Installing a Swapfile ok?

Unless Linux gets rid of LZO compression, I don’t see that there’s much that can slip (and, even if that happened, the user would just have to edit one line in the systemd-zram.service file to change to another compression algorithm).

I wasn’t criticising zram-generator - I tried it myself but my ADHD-addled brain must have missed a set-up step somewhere as it wouldn’t start, so I went with an alternative (systemd-zram) that required no setting-up (apart from enabling/starting the service) & instantly did the job for me. And, at the moment, it is working fine:

free --human
               total        used        free      shared  buff/cache   available
Mem:            28Gi       5.0Gi        19Gi       592Mi       4.7Gi        23Gi
Swap:           21Gi        82Mi        21Gi

When I used Arch, just over one year ago, I used to use:

AUR (en) - zramswap

… also from 2019

but what it relies on hardly ever changes

1 Like

I thought so, and it was actually zram. :slight_smile:

I still had zswap in my mind after seeing it briefly in the inxi output. I dismissed soon after and decided to speed things along a little, as nobody seemed to be making much progress.

Yes, I thought so too; especially considering not much else seemed to be in OPs best interest. However, thanks for highlighting zram as a possible alternative. I’m sure others reading might be inspired, as the use of systemd units is slowly beginning to gain some traction for various tasks.

Unfortunately, the dynamic nature of zram isn’t ideal when taking into consideration hibernation, as @Nachlese noted earlier. The OP hasn’t reacted to hibernation when it was mentioned several times, but has allowed swap space for it, so I presume needs have been met.

I was considering using zram myself for a side project, using a 250GiB SSD, where available space actually matters.

1 Like

I do keep forgetting to mention zram does not support hibernation.
I might guess most people dont use it either, but its an important caveat.

2 Likes

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.