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

Swappiness is too high #25

Open
devnoname120 opened this issue Aug 15, 2024 · 1 comment
Open

Swappiness is too high #25

devnoname120 opened this issue Aug 15, 2024 · 1 comment

Comments

@devnoname120
Copy link
Contributor

The module currently sets the swappiness to 99 which is a very high value:

sysctl vm.swappiness=99

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 to 60, which is standard in Linux desktop environments. What do you think?

@janithcooray
Copy link
Owner

Thanks for taking the time to look at this.
this is true, its quite a know drawback on swap.
but yes, i will release version with multiple options

@janithcooray janithcooray mentioned this issue Sep 2, 2024
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants