projects
/
GitHub
/
LineageOS
/
android_device_samsung_a5xelte.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac49fcc
)
a5xelte: ramdisk: tune VM parameters to fix issues with MTP
author
Danny Wood
<danwood76@gmail.com>
Fri, 17 May 2019 07:40:35 +0000
(08:40 +0100)
committer
Jan Altensen
<info@stricted.net>
Mon, 12 Aug 2019 14:25:19 +0000
(16:25 +0200)
Change-Id: I5fc5deeb15594cb81d8200157f86a99394f5d017
ramdisk/etc/init.target.rc
patch
|
blob
|
blame
|
history
diff --git
a/ramdisk/etc/init.target.rc
b/ramdisk/etc/init.target.rc
index 854c1be8eaafc98b486aa3ded9f3442570c6d8a8..2dce079c4c2a7498f7616bd8ea4541ac2a0be353 100644
(file)
--- a/
ramdisk/etc/init.target.rc
+++ b/
ramdisk/etc/init.target.rc
@@
-4,6
+4,13
@@
on boot
write /proc/sys/net/core/rmem_max 2097152
write /proc/sys/net/core/wmem_max 2097152
+ # Set min_free_kbytes to keep larger VM chuncks lying around
+ write /proc/sys/vm/min_free_kbytes 32768
+
+ # Tune virtual memory
+ write /proc/sys/vm/swappiness 160
+ write /proc/sys/vm/vfs_cache_pressure 50
+
on fs
# Permissions for LCD
chown system system /sys/class/lcd/panel/ldu_correction