-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Swappiness is too high #25
Comments
Thanks for taking the time to look at this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The module currently sets the
swappiness
to99
which is a very high value:lin_os_swap_mod/module/service.sh
Line 8 in ce839a0
The problem with this approach is that Android will very eagerly move everything to the swap even if there is plenty of memory left. This slows down the whole device because Android keeps having to move back and forth pages to the swap and then back to the memory, and this causes elevated wear on the storage.
I would suggest to decrease the
vm.swappiness
value to60
, which is standard in Linux desktop environments. What do you think?The text was updated successfully, but these errors were encountered: