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

On some multicore processors, Zram can cause slow start-up. #176

Closed
daiaji opened this issue Aug 14, 2020 · 1 comment
Closed

On some multicore processors, Zram can cause slow start-up. #176

daiaji opened this issue Aug 14, 2020 · 1 comment
Labels

Comments

@daiaji
Copy link

daiaji commented Aug 14, 2020

I'm using 3900x (12c24t), and using the default configuration will result in too many zram devices to be created and mounted, and the boot speed will be very slow.
If it makes sense to create multiple zram devices, you should consider multithreading to create and mount zram devices.
I now use the parameter zram_count=1, the situation is relieved.

@eMPee584
Copy link

eMPee584 commented Sep 6, 2020

I also noticed zram_count being set to number of CPU cores unconditionally, which was the only way to parallelize access before the introduction of "multi stream functionality" with kernel 3.15.

Since kernel 4.7

Regardless of the value passed to [max_comp_streams], ZRAM will always
allocate multiple compression streams - one per online CPU - thus
allowing several concurrent compression operations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants