From 1b461b22dbbe96315967e5164529926e127517c3 Mon Sep 17 00:00:00 2001 From: urain39 Date: Sun, 24 Jul 2022 20:43:44 +0800 Subject: [PATCH 1/2] m1721: correct write caching zeelog's write caching is not good for m1721 (even mido), it will get OOM when coping large files. After this commit, we will use min about 256 MiB and max about 512 MiB as write caching. Also, writeback delays reduced to 60~300s (due to data loss). Signed-off-by: urain39 --- rootdir/etc/init.target.rc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rootdir/etc/init.target.rc b/rootdir/etc/init.target.rc index 7728a471..e75ca337 100644 --- a/rootdir/etc/init.target.rc +++ b/rootdir/etc/init.target.rc @@ -222,13 +222,13 @@ service vendor.sensors.qti /vendor/bin/sensors.qti on property:sys.boot_completed=1 # write caching - # Tell the kernel to use up to 99% of the RAM as cache for writes - # and instruct kernel to use up to 50% of RAM before slowing down + # Tell the kernel to use up to 18% of the RAM as cache for writes + # and instruct kernel to use up to 10% of RAM before slowing down # the process that's writing. - write /proc/sys/vm/dirty_ratio 99 - write /proc/sys/vm/dirty_background_ratio 50 + write /proc/sys/vm/dirty_ratio 18 + write /proc/sys/vm/dirty_background_ratio 10 - # Tell that 10 minutes write delay is ok to even start writing - # stuff on the disk (ten minutes = 60000; 1 hour 360000). - write /proc/sys/vm/dirty_expire_centisecs 60000 - write /proc/sys/vm/dirty_writeback_centisecs 60000 + # Tell that 5 minutes write delay is ok to even start writing + # stuff on the disk (five minutes = 30000; one minute = 6000). + write /proc/sys/vm/dirty_expire_centisecs 30000 + write /proc/sys/vm/dirty_writeback_centisecs 6000 From 95797b934b74ef95da52ea8702a3b04b32d12746 Mon Sep 17 00:00:00 2001 From: urain39 Date: Sun, 31 Jul 2022 01:39:13 +0800 Subject: [PATCH 2/2] m1721: update values-zh-rCN translations Signed-off-by: urain39 --- parts/res/values-zh-rCN/strings.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parts/res/values-zh-rCN/strings.xml b/parts/res/values-zh-rCN/strings.xml index f667e204..125395f5 100644 --- a/parts/res/values-zh-rCN/strings.xml +++ b/parts/res/values-zh-rCN/strings.xml @@ -16,7 +16,7 @@ 数值: %s 默认 默认数值: %s\n长按以设置 - 默认数值已设定 + 已设为默认数值 mBack 设置 @@ -31,4 +31,4 @@ - \ No newline at end of file +