Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

m1721: fix write caching & update zh-rCN translations #12

Open
wants to merge 2 commits into
base: lineage-19.1
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions parts/res/values-zh-rCN/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<string name="custom_seekbar_value">数值: <xliff:g id="v">%s</xliff:g></string>
<string name="custom_seekbar_default_value">默认</string>
<string name="custom_seekbar_default_value_to_set">默认数值: <xliff:g id="v">%s</xliff:g>\n长按以设置</string>
<string name="custom_seekbar_default_value_is_set">默认数值已设定</string>
<string name="custom_seekbar_default_value_is_set">已设为默认数值</string>

<!-- mBack -->
<string name="mback_title">mBack 设置</string>
Expand All @@ -31,4 +31,4 @@
<item>中</item>
<item>高</item>
</string-array>
</resources>
</resources>
16 changes: 8 additions & 8 deletions rootdir/etc/init.target.rc
Original file line number Diff line number Diff line change
Expand Up @@ -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