I have tried sudo systemctl daemon-reload and reboot to apply changes, however zram size does not change from the default installation. I have not been able to find a resource on fedora docs about this.
I might be wrong but I have been under the impression that it is what the default configuration does anyways.
It get used as much as it is needed depending on the load or whatever there is that needs to be swapped out of RAM.
I think you would need to copy that file to /etc/systemd/zram-generator.conf and edit as you wish.
The modifications done by the user under /etc will not be altered by up updates.
The zram† device, typically /dev/zram0, has a size set at create time during early boot, by zram-generator† per its configuration file. The memory used is not preallocated. It’s dynamically allocated and deallocated, on demand. Due to compression, a full /dev/zram0 uses half as much memory as its size. https://fedoraproject.org/wiki/Changes/SwapOnZRAM
[zram0] ← was missing this at first, lol
host-memory-limit = 8192
zram-size= min(ram / 4, 2048)
compression-algorithm = zstd
Although, since the configuration measures sizes with Mebibytes (fuck you Hollywood for this creation) I have also tried converting my expected disk sizes from MB to MiB and tried rebooting but zram didn’t start up. Only with powers of 2 it generates correctly, but generates them in MiB, which kinda annoys me.