mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-05-03 20:37:17 +09:00
sm6250-common: get back to default from long-standing VM tweaks
This patch removed the old writeout policy tune which was never touched since 2009. In the meantime, most of Android devices are equipped with over 4GB DRAM and very fast flash storages like UFS, which becomes more like desktop or servers in 2009. So, it'd be worth to go back to use the default kernel configs. Bug: 136483670 Bug: 137190999 Bug: 152936751 Test: check value output Change-Id: I1ebbf9f1f27a921103db51e96a50aadd6ec0dde8 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com> Signed-off-by: Martin Liu <liumartin@google.com>
This commit is contained in:
parent
d646153a0b
commit
bf69bf5116
@ -137,6 +137,10 @@ function configure_memory_parameters() {
|
|||||||
# wsf Range : 1..1000 So set to bare minimum value 1.
|
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||||
echo 1 > /proc/sys/vm/watermark_scale_factor
|
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||||
|
|
||||||
|
# Back to default VM settings
|
||||||
|
echo 3000 > /proc/sys/vm/dirty_expire_centisecs
|
||||||
|
echo 10 > /proc/sys/vm/dirty_background_ratio
|
||||||
|
|
||||||
configure_zram_parameters
|
configure_zram_parameters
|
||||||
|
|
||||||
configure_read_ahead_kb_values
|
configure_read_ahead_kb_values
|
||||||
|
Loading…
x
Reference in New Issue
Block a user