-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add ZRAM kernel module #230
Comments
Seems like it would give us some nice performance improvements on these low-ram systems. Could users with ChromeOS report how large of zram partitions are used on 2GB and 4GB models? |
I dont use ChromeOS but on Mobian (Debian for Pine) we generally set it to 50% and all cores (4), and it works very well |
CONFIG_ZRAM was actually already enabled on the armhf kernel. Now enabled on the arm64 kernel as well. Next is to setup the userspace config to take advantage of it. |
It isnt on my install and I installed v1.1... to enable in userspace install zramswap and edit /etc/defaults/zramswap |
PrawnOS/kernel/resources/armhf/config Line 1478 in f845964
/dev/zram0 which further confirms it is enabled.
By "on all cores (4)" are you saying there is a zram device per core? |
Yes, it utilizes all cores which is optimal, otherwise you only get 1/4 the swap capacity/processing. Ill have to double check the exact error Im getting because when I started it it screamed about the module not existing... |
ah, so you are talking about |
Im not sure about how it translates to the /sys blocks, but as far as the config itself those are the variables/values we found to work best. (Im not a dev, Im a linux admin who tries to help as much as he can lol, so sorry if Im missing an obvious link here) |
Zram takes a parameter to set the number of devices it creates, the default is 1 which is why you only see So you'd either need to build it as a module and load it with:
or add the parameter to the kernel parameters when you build the kernel. |
@graves thanks but my confusion is around if we want a zram device per cpu or if |
Module or flag. This is pretty standard on ChromeOS as well as most Linux distros now (it has been added to Mobian for Pine devices too)
The text was updated successfully, but these errors were encountered: