sm8550-common: Configure RAM Plus
Change-Id: I19387c70498ca93f155329fdaf4c4f27a167f88f
This commit is contained in:
@@ -213,7 +213,9 @@ PRODUCT_PACKAGES += \
|
||||
ueventd.qcom.rc
|
||||
|
||||
PRODUCT_PACKAGES += \
|
||||
fstab.ramplus \
|
||||
init.nfc.samsung.rc \
|
||||
init.ramplus.rc \
|
||||
init.samsung.bsp.rc \
|
||||
init.samsung.connector.rc \
|
||||
init.samsung.display.rc \
|
||||
|
@@ -9,6 +9,12 @@ prebuilt_etc {
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "fstab.ramplus",
|
||||
src: "fstab.ramplus",
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.nfc.samsung.rc",
|
||||
src: "init.nfc.samsung.rc",
|
||||
@@ -30,6 +36,13 @@ prebuilt_etc {
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.ramplus.rc",
|
||||
src: "init.ramplus.rc",
|
||||
sub_dir: "init",
|
||||
vendor: true,
|
||||
}
|
||||
|
||||
prebuilt_etc {
|
||||
name: "init.recovery.qcom.rc",
|
||||
src: "init.recovery.qcom.rc",
|
||||
|
7
init/fstab.ramplus
Normal file
7
init/fstab.ramplus
Normal file
@@ -0,0 +1,7 @@
|
||||
# Android fstab file.
|
||||
#<src> <mnt_point> <type> <mnt_flags and options> <fs_mgr_flags>
|
||||
# The filesystem that contains the filesystem checker binary (typically /system) cannot
|
||||
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK
|
||||
|
||||
# SWAP
|
||||
/dev/block/zram0 none swap defaults zramsize=2147483648,auto_configure
|
@@ -709,10 +709,10 @@ low_ram=`getprop ro.config.low_ram`
|
||||
|
||||
if [ "$ProductName" == "msmnile" ] || [ "$ProductName" == "kona" ] || [ "$ProductName" == "sdmshrike_au" ]; then
|
||||
# Enable ZRAM
|
||||
configure_zram_parameters
|
||||
# configure_zram_parameters
|
||||
configure_read_ahead_kb_values
|
||||
echo 0 > /proc/sys/vm/page-cluster
|
||||
echo 100 > /proc/sys/vm/swappiness
|
||||
# echo 100 > /proc/sys/vm/swappiness
|
||||
else
|
||||
arch_type=`uname -m`
|
||||
|
||||
@@ -817,13 +817,13 @@ else
|
||||
# Set allocstall_threshold to 0 for all targets.
|
||||
# Set swappiness to 100 for all targets
|
||||
echo 0 > /sys/module/vmpressure/parameters/allocstall_threshold
|
||||
echo 100 > /proc/sys/vm/swappiness
|
||||
# echo 100 > /proc/sys/vm/swappiness
|
||||
|
||||
# Disable wsf for all targets beacause we are using efk.
|
||||
# wsf Range : 1..1000 So set to bare minimum value 1.
|
||||
echo 1 > /proc/sys/vm/watermark_scale_factor
|
||||
|
||||
configure_zram_parameters
|
||||
# configure_zram_parameters
|
||||
|
||||
configure_read_ahead_kb_values
|
||||
|
||||
@@ -4293,7 +4293,7 @@ case "$target" in
|
||||
|
||||
# Turn on sleep modes.
|
||||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||
echo 100 > /proc/sys/vm/swappiness
|
||||
# echo 100 > /proc/sys/vm/swappiness
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
@@ -4849,7 +4849,7 @@ case "$target" in
|
||||
echo N > /sys/module/lpm_levels/L3/l3-dyn-ret/idle_enabled
|
||||
# Turn on sleep modes.
|
||||
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled
|
||||
echo 100 > /proc/sys/vm/swappiness
|
||||
# echo 100 > /proc/sys/vm/swappiness
|
||||
echo 120 > /proc/sys/vm/watermark_scale_factor
|
||||
;;
|
||||
esac
|
||||
|
3
init/init.ramplus.rc
Normal file
3
init/init.ramplus.rc
Normal file
@@ -0,0 +1,3 @@
|
||||
# KERNEL CORE MEMORY
|
||||
on property:sys.boot_completed=1
|
||||
swapon_all /vendor/etc/fstab.ramplus
|
Reference in New Issue
Block a user