-
Notifications
You must be signed in to change notification settings - Fork 81
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
long boot times with zram_count=16 #200
Comments
First thing, you should always use only one zram device since there's no performance improvement from having multiple (this should be documented). Secondly I'd recommend systemd/zram-generator if you only use zram (should also be documented). I'll keep this issue in mind, but don't expect any patches soon. |
That is interesting because the default behavior is actually that it creates ${NCPU} zram devices. I just tested it by commenting the zram_count in the config file. Shouldnt the default then be just one zram device? And it does not explain where the dependency to dbus-broker is coming from: 49 s without dbus-broker compared to 4 s with dbus-broker is a big difference. |
Please read this: Since we have multiple streams per zram device - there is no use to have multiple zram devices. |
The referenced systemd issue got resolved, bug was identified as something missed during 2016 commit. PR was merged recently for upcoming v251 release of systemd.
Should be safe to close issue? (unless you want to wait for v251 release and broader availability) |
From my point of view it can be closed. Thank you! |
|
I am using endeavourOS with systemd-swap 4.4.0-2.
Since the last update I experienced very long boot times of almost 2 min. For me it seemed to be related to the systemd update to 247.4-2. A similar issue is reported for systemd systemd/systemd#15316
The solution mentioned there is also working for me:
But in the meantime I did more investigations and found that systemd-swap has something to do with it.
This is the config I used to use:
This creates 16 zram devices with 502 MB each. (64 GB of RAM)
Without dbus-broker I get very long start times like
48.988s systemd-swap.service
with dbus-broker enabled the start time is much faster.
3.805s systemd-swap.service
But if I set zram_count=1, which creates one zram device of size 7,9 GB. the start time is even faster even without dbus-broker:
1.659s systemd-swap.service
Why is that? What is the dependency to dbus-broker all about?
The text was updated successfully, but these errors were encountered: