diff options
author | Jaegeuk Kim <jaegeuk@google.com> | 2020-02-01 01:49:24 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-02-01 01:49:24 +0000 |
commit | be9114f22005861929dca4dff8b84223a1c42bf8 (patch) | |
tree | 60feeac0f7256baf64d69fa7a796b5f18fe15dc9 /rootdir | |
parent | 96d6745fe4dd110d2f23e3811e36c798a75dd2a7 (diff) | |
parent | 9e09cbceb016e7646b15b29f17c905b14a9fbab3 (diff) | |
download | system_core-be9114f22005861929dca4dff8b84223a1c42bf8.tar.gz system_core-be9114f22005861929dca4dff8b84223a1c42bf8.tar.bz2 system_core-be9114f22005861929dca4dff8b84223a1c42bf8.zip |
Merge "rootdir: init.rc to limit discard size to 128MB" into qt-qpr1-dev
Diffstat (limited to 'rootdir')
-rw-r--r-- | rootdir/init.rc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/rootdir/init.rc b/rootdir/init.rc index 0fa9febdd..e898d4dc9 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -682,6 +682,11 @@ on boot write /sys/fs/f2fs/${dev.mnt.blk.data}/cp_interval 200 write /sys/fs/f2fs/${dev.mnt.blk.data}/gc_urgent_sleep_time 50 + # limit discard size to 128MB in order to avoid long IO latency + # for filesystem tuning first (dm or sda) + # Note that, if dm-<num> is used, sda/mmcblk0 should be tuned in vendor/init.rc + write /sys/devices/virtual/block/${dev.mnt.blk.data}/queue/discard_max_bytes 134217728 + # Permissions for System Server and daemons. chown radio system /sys/android_power/state chown radio system /sys/android_power/request_state |