forked from topjohnwu/magisk-module-installer
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
ui_print "" | ||
ui_print "################################" | ||
ui_print "# #" | ||
ui_print "# crok's RAM management tweaks #" | ||
ui_print "# #" | ||
ui_print "################################" | ||
ui_print "" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/system/bin/sh | ||
# Virtual memory tweaks | ||
stop perfd | ||
echo '100' > /proc/sys/vm/swappiness | ||
echo '0' > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk | ||
echo '100' > /proc/sys/vm/vfs_cache_pressure | ||
echo '128' > /sys/block/mmcblk0/queue/read_ahead_kb | ||
echo '128' > /sys/block/mmcblk1/queue/read_ahead_kb | ||
echo '8000' > /proc/sys/vm/min_free_kbytes | ||
echo '0' > /proc/sys/vm/oom_kill_allocating_task | ||
echo '5' > /proc/sys/vm/dirty_ratio | ||
echo '20' > /proc/sys/vm/dirty_background_ratio | ||
chmod 666 /sys/module/lowmemorykiller/parameters/minfree | ||
chown root /sys/module/lowmemorykiller/parameters/minfree | ||
echo '21816,29088,36360,43632,50904,65448' > /sys/module/lowmemorykiller/parameters/minfree | ||
rm /data/system/perfd/default_values | ||
start perfd | ||
sleep 20 | ||
# Set Activity Manager's max. cached app number -> 160 (instead of the default 32 (or even lower 24): | ||
settings put global activity_manager_constants max_cached_processes=160 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#skip_mount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Tweak the memory management of the device, enable more background apps.. et cetera.. | ||
ro.sys.fw.bg_apps_limit=128 | ||
ro.vendor.qti.sys.fw.bg_apps_limit=128 | ||
ro.vendor.qti.sys.fw.bservice_enable=true | ||
ro.vendor.qti.sys.fw.bservice_age=10000 | ||
ro.vendor.qti.sys.fw.bservice_limit=128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/system/bin/sh | ||
|
||
# Delete Activity Manager's max. cached app number variable and system will use the Activity Manager's default | ||
settings delete global activity_manager_constants | ||
|