Open sxravan opened 4 years ago
With the .bashrc fix, my swappiness is always 0.
$ su -c "cat /proc/sys/vm/swappiness"
0
Is there any way to persist this change? On Linux platforms (servers, desktop), the change can be persisted in /etc/sysctl.conf, is there an equivalent for OxygenOS ?
Regards, Shravan
I did the same thing and wowwwwwwwwwwwwwwwwwww no more lags now :) My oneplus works perfectly fine ^^
Only got positive results till now!! Working just fine.
Hello,
I have rooted my OnePlus with with OxygenOS 9.0.4. I was navigating through all files and found that the value for the swappiness is 100.
To be noted that swappiness is the value which affects how aggressively a Linux system should use swap. 100 => always use swap, 0=> swap, but less aggressively.
Can you please add the value of 0 as default for your future OxygenOS release ?
I have made a quick fix on my phone, adding this code to a bashrc on termux. Everytime I reboot my phone, the first thing to do is open Termux to change the swappiness value.
Since then, my device has stopped being laggy, playing games (Asphalt 9), still no swap is being used.
Regards, Shravan