Age | Commit message (Collapse) | Author |
|
* We can't make use of most of the debug features on userdebug builds.
Change-Id: I31df2090b31243b742c4e82dc08cd8491dada54f
|
|
Create pixel speicifc trace buffer and enable CMA trace events.
At bugreport, dumpstate will dump the trace buffer into
dumpstate_board.txt
binder:3947_2-3963 [003] .... 29.954681: cma_alloc_start: name=vframe count=16 align=4
binder:3947_2-3963 [003] .... 29.956230: cma_alloc_finish: name=vframe pfn=946080 page=000000003d6b380b count=16 align=4
binder:3947_2-3963 [003] .... 29.956235: cma_alloc_info: name=vframe pfn=0x946080 count=16 align=4 nr_migrated=16 nr_reclaimed=0 nr_mapped=16 err_iso=0 err_mig=0 err_test=0
binder:3947_2-3963 [003] .... 29.988325: cma_release: name=vframe pfn=946080 page=000000003d6b380b count=16
It's useful to investigate CMA allocation problems.
Test: "adb bugreport" includes the trace dump in dumpstate_board.txt
Bug: 238728493
Change-Id: I5eb2f79152d32ff7dbb4b9a7ea679facb186aa00
Signed-off-by: Minchan Kim <minchan@google.com>
|
|
Let vendor_init adjusted the zram size by device config from the
server. Allow us to study the performance and power impacts
by experiment settings.
Change persist.vendor.zram.size to persist.vendor.boot.zram.size since
it only takes effect when next booting.
Bug: 240128114
Test: adb remount ; adb push pixel-mm-gki.rc /vendor/etc/init/ ; adb reboot
Test: adb shell setprop persist.device_config.vendor_system_native_boot.zram_size 4g ;
adb reboot ; check zram swap size is 4g
Test: adb shell setprop persist.device_config.vendor_system_native_boot.zram_size 4g ;
adb shell setprop persist.vendor.boot.zram.size 3g ; adb reboot ;
check check zram swap size is 3g
Change-Id: I0bf62fe1275a1e0bed129d78db9b4e1e5c353dbe
|
|
This change adds more zram size and percentage configs.
Test: boot
Bug: 240128114
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I7ada20b67a1beb8f57666a5d2649dd5ca4324931
|
|
To prevent APC watchdog under heavy memory pressure,
set stall_limit_critical to 40.
Bug: 205182133
Test: Run ACT under a heavy memory pressure
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: Iaac006d1b1f2fff8a47875e792f6d2179bae80a9
Merged-In: Iaac006d1b1f2fff8a47875e792f6d2179bae80a9
(cherry picked from commit 360afd734baac29571b771424013edb6695e8619)
|
|
Set lmkd kill timeout value as 50 to avoid long
waiting on dying process.
Bug: 212870947
Test: check timeout property
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I0859ed63ca469f9c7572933920074369c1d5cb5a
|
|
This commit has 2 changes.
1. enabling zram after boot complete as zram backing
device needs to wait for /data/per_boot ready.
2. add a persistent property to overwrite zram size
to support experimental tests.
Bug: 200899926
Test: check zram swap and backing device
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I3caf84b1b877b9329a9fd742bcba3734c31a44c9
Merged-In: I3caf84b1b877b9329a9fd742bcba3734c31a44c9
|
|
2444469563
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/pixel/+/15940865
Change-Id: I8547c79461eef6f8f8803fac8e445c5152a37da4
|
|
Apply zram size regarding property settings
Bug: 200899926
Test: check swap size after boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I7358b769cf8a2333fdacf3eda89e1dacc326157a
|
|
614ae62ed1
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/pixel/+/15328190
Change-Id: I766d18ef369b85341826f0fe38e7655d219cd88b
|
|
Set filecache_min_kb to 150MB according to our
test data.
Bug: 193293513
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I99381d9ef024b18249ebb21dc61e4668dbe1cb31
|
|
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/google/pixel/+/15270756
Change-Id: I8290c92c00fc987856557f1ea1d8b3bd62c582da
|
|
To reduce khugepaged power/perf impact, change
khugepaged scan time to 60 sec.
Bug: 189941061
Test: check file node value
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I62473aff0d3f1e702a2c54e0408026c6302e6829
|
|
Original change: https://android-review.googlesource.com/c/platform/hardware/google/pixel/+/1753545
Change-Id: I68ad9588bf4150d20f928d8300a0191bb2c60eac
|
|
Bug: 189938926
Test: check vm parameter
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I1f08e4e59195fee527b8c30298e75cc88d55eba2
|
|
Since GKI, we have THP and watermarker boost feature. Those features
will bump up min_free_kbytes as.
THP: boot min_free_kbytes statically while mm init phase
Watermark_boost_factor: dynamically boost min_free_kbytes when hitting
fragmentation event.
Both changes will increase watermarks level by a lot and might cause
LMKD not work as our expectation. Let's reset the value to align with our
legacy projects to clarify the issues. Once we get more pro and con data,
we could enable them again.
Also, we don't have limitation to access limited physical memory so we
could reset lowmem_reserve_ratio to zero.
Bug: 190571517
Bug: 189938926
Bug: 190732106
Test: cat vm parameters
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I128d2f298dc8b82e472344d0d5c5588ce8a60702
Merged-In: I128d2f298dc8b82e472344d0d5c5588ce8a60702
|
|
This commit creates Pixel GKI version mk file and
basic pixel GKI version of rc file.
Bug: 190571517
Bug: 189938926
Bug: 190732106
Test: build
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: If84f7e3eac3260cccadfbde1b59cbdc944a44af0
Merged-In: If84f7e3eac3260cccadfbde1b59cbdc944a44af0
|
|
Since GKI, we have THP and watermarker boot feature. Those features
will bump up min_free_kbytes as.
THP: boot min_free_kbytes statically while mm init phase
Watermark_boost_factor: dynamically boost min_free_kbytes when hitting
fragmentation event.
Both changes will increase watermarks level a huge jump and might cause
LMKD not work as our expectation. Let's reset the value to align with our
legacy projects to clarify the issues. Once we get more pro and con data,
we could enable them again.
Also, we don't have limitation to access limited physical memory so we
could reset lowmem_reserve_ratio to zero.
Bug: 190571517
Bug: 189938926
Bug: 190732106
Test: cat vm parameters
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I128d2f298dc8b82e472344d0d5c5588ce8a60702
Merged-In: I128d2f298dc8b82e472344d0d5c5588ce8a60702
|
|
This commit creates Pixel GKI version mk file and
basic pixel GKI version of rc file.
Bug: 190571517
Bug: 189938926
Bug: 190732106
Test: build
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: If84f7e3eac3260cccadfbde1b59cbdc944a44af0
Merged-In: If84f7e3eac3260cccadfbde1b59cbdc944a44af0
|
|
Added SPDX-license-identifier-Apache-2.0 to:
atrace/Android.bp
bootctrl/Android.bp
dynamic_partitions/Android.bp
fastboot/Android.bp
health/Android.bp
kernel_headers/Android.bp
misc_writer/Android.bp
mm/Android.bp
perfstatsd/Android.bp
pixelstats/Android.bp
power-libperfmgr/Android.bp
power-libperfmgr/libperfmgr/Android.bp
powerstats/Android.bp
powerstats/aidl/Android.bp
pwrstats_util/Android.bp
radio/Android.bp
radio/gril_carrier_nv_headers/Android.bp
recovery/Android.bp
usb/Android.bp
vibrator/Android.bp
vibrator/common/Android.bp
vibrator/common/bench/Android.bp
vibrator/cs40l25/Android.bp
vibrator/cs40l25/bench/Android.bp
vibrator/cs40l25/diag/Android.bp
vibrator/cs40l25/tests/Android.bp
vibrator/drv2624/Android.bp
vibrator/drv2624/bench/Android.bp
vibrator/drv2624/tests/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
Android.bp
thermal/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I33fa134bd54dfc1bc92b21d420e6576cbd5fd618
Merged-in: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d
|
|
0c82fe16a1f5f956cc4906e55230fa8921644a52 to sc-dev
Change-Id: Ia4cbb3e2b746c9c19a3084085c4f2c4fbc8297ca
|
|
Added SPDX-license-identifier-Apache-2.0 to:
atrace/Android.bp
bootctrl/Android.bp
dynamic_partitions/Android.bp
fastboot/Android.bp
health/Android.bp
kernel_headers/Android.bp
misc_writer/Android.bp
mm/Android.bp
perfstatsd/Android.bp
pixelstats/Android.bp
power-libperfmgr/Android.bp
power-libperfmgr/libperfmgr/Android.bp
powerstats/Android.bp
powerstats/aidl/Android.bp
pwrstats_util/Android.bp
radio/Android.bp
radio/gril_carrier_nv_headers/Android.bp
recovery/Android.bp
usb/Android.bp
vibrator/Android.bp
vibrator/common/Android.bp
vibrator/common/bench/Android.bp
vibrator/cs40l25/Android.bp
vibrator/cs40l25/bench/Android.bp
vibrator/cs40l25/diag/Android.bp
vibrator/cs40l25/tests/Android.bp
vibrator/drv2624/Android.bp
vibrator/drv2624/bench/Android.bp
vibrator/drv2624/tests/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
Android.bp
thermal/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d
Merged-in: I58efe8db7cc3f22a585c6e3a80bef41c48b49c8d
|
|
Add the new ufs_stats trace path.
Bug: 158050420
Test: check the new kernel path
Change-Id: Ie4fa5177d912a7bae9b071b341121a76a40e68b3
Signed-off-by: Leo Liou <leoliou@google.com>
|
|
dumpstate needs to acces page_owner to help memory leak debugging.
Bug: 168344541
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: Iadd86496266ce1aa920f6af6dc30739f271025d5
|
|
The first default zram write back time is 3 hours which
is for go device to quickly save more ram. For Pixel
devices, we have more working set and could bring launch
time impact if we write back too fast. Thus, adjust the
first time write back time to 24 hours which is aligned
with periodic write back time.
We also moved zram write back policy to common folder
so it's easier to mantain.
Bug: 166739872
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I2388dd6d75ab0a938fe0edae0563fd26e48c9908
|
|
Bug: 161999587
Bug: 161955028
Bug: 162297751
Test: boot
Change-Id: I6c76360d7c83255a2a21df043f00bb3f150230cb
|
|
Bug: 151100384
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I326551bdb237ec04b5f2d2129f57d5df1a656e31
|
|
Bug: 151100384
Test: boot
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I9ff5dbb238cb045ddc4a75f6de82e4e5ff71e925
|
|
This CL creats a common rc file and include mm
trace relative sepolicy into mk file. Thus,
device side could easily add this mk file
to reduce the porting effort.
Bug: 152414692
Test: build
Merged-In: Ie034e3c5ee514be2e4a2ec243e884160ccccb836
(cherry picked from commit 9c2ecc330f1d659eb2561902808d9e4db9eb1170)
Change-Id: Ie034e3c5ee514be2e4a2ec243e884160ccccb836
|
|
This requires to enable f2fs->io_stats in kernel side, since it's hard to
find moving dm target of /data.
Bug: 152162885
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Change-Id: I11ec3bfa42476d94c8b78a7e0442c8dcaa971b75
|
|
This CL creats a common rc file and include mm
trace relative sepolicy into mk file. Thus,
device side could easily add this mk file
to reduce the porting effort.
Bug: 152414692
Test: build
Signed-off-by: Martin Liu <liumartin@google.com>
Change-Id: I53067b6301c78642eaa59754b3c254aac573a683
|
|
It monitor /proc/vmstat on every minute by default and store them
to /data/vendor/mm/ directories.
The mm_logd runs only when persist.vendor.log.mm is set to 1.
User could change the interval via persist.vendor.log.mm.interval.
Bug: 151100384
Signed-off-by: Minchan Kim <minchan@google.com>
Change-Id: I89eabf59268a7f4138ae13900f7fa479e6c20217
|