Commit Graph

13 Commits

Author SHA1 Message Date
Wei Wang
0f1811415f Set runtime readahead to 128KiB
Reduce readahead to 128KiB to reduce thrashing under memory pressure.

Bug: 110908295
Bug: 111855179
Test: Boot
Change-Id: I449d2733bc836ed7661653efb2400fc031a76644
(cherry picked from commit bed30a438f)
2018-07-27 16:35:36 +00:00
Tim Murray
722ea29d02 Revert "Switch to deadline IO scheduler post boot."
This reverts commit ae780bce59.

Test: boots
bug: 63630139
2018-06-05 15:22:31 -07:00
Thierry Strudel
875ef6a9c2 init-common.rc: map sys.retaildemo to persist.vendor.charge.*.level
Bug: 75293289
Change-Id: I0cfc3538fb7f377d578e4bf8fdc6e338a3d0a097
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-04-03 16:20:10 -07:00
Thierry Strudel
05b4cbe47c init-common: map sys.retaildemo.enabled to persist.vendor.charge.*
Bug: 73647497
Change-Id: Id317f390da648b935819e25342725a4663ee5841
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2018-03-26 17:27:35 -07:00
Mohan Srinivasan
ae780bce59 Switch to deadline IO scheduler post boot.
The deadline IO scheduler results in lower latency SD, and pulls in
latency outliers (especially when the flash starts getting fragmented).
Switch to deadline post boot.

Test: various workloads, both synthetic (fio) as well as actual
workloads (app launch, ioshark).

Bug: 63630139
Change-Id: I94b90ac09e921fdf01564bd4c6e1a1b809f3f8ec
Signed-off-by: Mohan Srinivasan <srmohan@google.com>
2017-10-27 16:27:13 -07:00
SzuWei Lin
645a109bfd Fix walleye to boot with GSI
Walleye requres /sys/class/uio/uio1/device/rtel/rtel in userdebug build,
and GSI will change the device to userdebug. So, we need to switch rtel
with the build type in boot time, even the device is in user build.

Bug: 65229896
Test: Boot (aosp_)walleye-(user|userdebug) with/without GSI to home screen
Change-Id: I8fa74c02a0a48feeef87d8e9caa702e4a44aedf7
2017-09-19 15:10:26 +08:00
Thierry Strudel
5be9d89166 init-common.rc: set ro.boot.hardware.revision
Bootloader set androidboot.revision on kernel command line and we set
ro.boot.hardware.revision to a numerical string accordingly.

Bug: 64375827
Change-Id: Ib814f765b53155721d86035405fbc6490fb5a2c3
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-08-09 22:04:22 -07:00
Maggie White
798459c745 UFS-specific runtime I/O tuning
Tested 1/2x, 1x, 2x, and 4x the current readahead buffer and noop and
cfq I/O schedulers for /dev/block/sda, which contains /data. The most
consistent performance boost was seen across all UFS vendors and storage
sizes using cfq and a readahead buffer of 1024.

Bug: 38000161
Test: Compared 1P app launch times using app-launcher for schedulers
(noop, cfq) and readahead buffer sizes (128,512,1024,2048)

Change-Id: Ifcc9145d6f7a77ba4b3844b7892291eb348d9e1c
2017-07-21 15:29:58 -07:00
John Dias
e49327c478 Change i/o scheduler back to cfq
With noop scheduler, I see dramatic jank with an irritant i/o thread;
going back to cfq, which doesn't have nearly the same negative impact
on UX.

Bug: 62375787
Test: boot, scroll a lot
Change-Id: I3c1ad17f432b25b5359f813e070fd1266dac1f87
2017-06-20 17:16:28 -07:00
Wei Wang
a21f76d060 init-common.rc: enable dm-verity boottime tuning
Bug: 36780513
Test: muskie boot

Change-Id: I102abd2807efd43aa66852efde6dfddf277217b6
2017-06-02 22:30:48 -07:00
Steve Muckle
a035f6bbef disable kernel module loading after boot
Disable kernel module loading after boot on user builds.

Bug: 38204366
Test: boot walleye, confirm kernel module does not load after boot
Change-Id: I40217ff37c1b1bcf00155e5bec74b92a020481f7
2017-05-10 16:28:53 -07:00
Wei Wang
2b9bd3ff9a muskie/walleye: boot time optimization
Bug: 36780513
Test: walleye boots and touch screen works
Change-Id: Ib3ff955886109a000ab43dc6013540bb03a31b78
2017-04-04 09:48:28 -07:00
Thierry Strudel
1db28dc80b init-common.rc: add muskie/walleye specific rc file
Change-Id: I4ef62518124a8c78dbb940e8f533704f9ee8fcb8
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-27 20:47:11 +00:00