Closed danielboston38 closed 1 year ago
apparently arch wiki currently says
zram-generator provides a systemd-zram-setup@.service
unit to automatically initialize zram devices without users needing to enable/start the template or its instances. See zram-generator(8) and zram-generator.conf(5).
Before starting, permanently disable zswap using the kernel parameter or sysctl knob. [1]
Then, to create a zram swap device using zstd
and half of the entire available ram, install zram-generator, then create /etc/systemd/zram-generator.conf
with the following:
/etc/systemd/zram-generator.conf
[zram0]
zram-size = ram / 2
compression-algorithm = zstd
swap-priority = 100
fs-type = swap
Run daemon-reload, then start your configured systemd-zram-setup@zramN.service
instance(s).
You can check the swap status of your configured /dev/zramN devices by reading the unit status of your systemd-zram-setup@zramN.service
instance(s), or by using zramctl(8).
post content of /etc/systemd/zram-generator.conf
, post what you're starting, post content of journal after you start it
sudo systemctl start /dev/zram0.service, [paste link inlined]
[zram0]
host-memory-limit = none
zram-size = ram / 2
compression-algorithm = zstd
swap-priority = 100
fs-type = swap
Aug 19 13:10:11 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start timed out.
Aug 19 13:10:11 amypond systemd[1]: Timed out waiting for device /dev/zram0.service.
Aug 19 13:10:11 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start failed with result 'timeout'.
Aug 19 13:13:39 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start timed out.
Aug 19 13:13:39 amypond systemd[1]: Timed out waiting for device /dev/zram0.service.
Aug 19 13:13:39 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start failed with result 'timeout'.
Aug 19 13:20:45 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start timed out.
Aug 19 13:20:45 amypond systemd[1]: Timed out waiting for device /dev/zram0.service.
Aug 19 13:20:45 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start failed with result 'timeout'.
Aug 19 13:39:26 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start timed out.
Aug 19 13:39:26 amypond systemd[1]: Timed out waiting for device /dev/zram0.service.
Aug 19 13:39:26 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start failed with result 'timeout'.
Aug 19 14:03:10 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start timed out.
Aug 19 14:03:10 amypond systemd[1]: Timed out waiting for device /dev/zram0.service.
Aug 19 14:03:10 amypond systemd[1]: dev-zram0.service.device: Job dev-zram0.service.device/start failed with result 'timeout'.
idk what to tell you. have you tried doing what the wiki says?
thats where im having the issue. i did systemctl daemon-reload and then tried to start it and thats when im getting this issue.
so i guess this software is broken?
I had a similar issue, ended up making a bash script and using systemd to run it
its not that clear in the instructions but i think you need to disable zswap and enable the zram kernel module, try the steps listed here: https://www.dwarmstrong.org/zram-swap/
i am following the arch wiki to use zram-generator and enabling the systemd times out. im using the example conf file from the wiki and i added host-memory-limit = none.