Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starting systemd times out #185

Closed
danielboston38 opened this issue Aug 19, 2023 · 6 comments
Closed

starting systemd times out #185

danielboston38 opened this issue Aug 19, 2023 · 6 comments
Labels
question Further information is requested

Comments

@danielboston38
Copy link

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.

@nabijaczleweli nabijaczleweli added the question Further information is requested label Aug 19, 2023
@nabijaczleweli
Copy link
Collaborator

apparently arch wiki currently says


zram-generator provides a [email protected] 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 [email protected] instance(s).

You can check the swap status of your configured /dev/zramN devices by reading the unit status of your [email protected] 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

@danielboston38
Copy link
Author

danielboston38 commented Aug 19, 2023

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'.

@nabijaczleweli
Copy link
Collaborator

idk what to tell you. have you tried doing what the wiki says?

@nabijaczleweli nabijaczleweli closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2023
@danielboston38
Copy link
Author

thats where im having the issue. i did systemctl daemon-reload and then tried to start it and thats when im getting this issue.

@danielboston38
Copy link
Author

so i guess this software is broken?

@regulator-g
Copy link

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/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

3 participants