From 905977eb72bee3077069e1dd7a0499e69424b718 Mon Sep 17 00:00:00 2001 From: Wenchao Hao Date: Mon, 15 Sep 2025 22:01:47 +0800 Subject: [PATCH] update Signed-off-by: Wenchao Hao --- applist | 11 +++++++++++ run.sh | 40 +++++++++++++++++++++++----------------- 2 files changed, 34 insertions(+), 17 deletions(-) diff --git a/applist b/applist index 34ca8a6..af57d7d 100644 --- a/applist +++ b/applist @@ -1,3 +1,14 @@ +com.UCMobile +com.taobao.taobao +com.qiyi.video +com.ss.android.ugc.aweme +com.smile.gifmaker +com.kugou.android +com.xunmeng.pinduoduo +tv.danmaku.bili +com.tencent.qqlive +com.jingdong.app.mall +com.android.camera com.tencent.tmgp.sgame com.tencent.tmgp.pubgmhd com.tencent.jkchess diff --git a/run.sh b/run.sh index e3ae416..7cc112e 100755 --- a/run.sh +++ b/run.sh @@ -5,8 +5,9 @@ WAIT=3 clear_background=0 mthp_stat=0 cleancache=0 +REBOOT=0 -while getopts ":s:c:w:h:kTC" opt +while getopts ":s:c:w:h:kTCR" opt do case $opt in s) @@ -21,6 +22,9 @@ do w) WAIT=$OPTARG ;; + R) + REBOOT=1 + ;; T) mthp_stat=1 ;; @@ -76,24 +80,26 @@ mkdir $dir/thpmaps echo "round app start_type start_time rss pss pagefaults minorfaults majorfaults itlbmiss dtlbmiss cpustall inc_ratio inc_total order4_ratio order4_cont nr_inc_direct_reclaim" >> $dir/result for round in $(seq 1 $cycle); do - # 重启并等待重启完成 - echo "rebooting" - adb reboot - sleep 30 + if [ $REBOOT -eq 1 ]; then + # 重启并等待重启完成 + echo "rebooting" + adb reboot + sleep 30 - # 重启后等待adb - # 如果10min还未成功则判断失败 - for w in $(seq 1 600); do - if [ $(adb devices | grep $ANDROID_SERIAL -c) -eq 0 ]; then - echo waiting device $w - sleep 1 - continue - fi - adb root - break - done + # 重启后等待adb + # 如果10min还未成功则判断失败 + for w in $(seq 1 600); do + if [ $(adb devices | grep $ANDROID_SERIAL -c) -eq 0 ]; then + echo waiting device $w + sleep 1 + continue + fi + adb root + break + done - sleep 10 + sleep 10 + fi adb root adb shell cat /sys/kernel/mm/transparent_hugepage/hugepages-64kB/enabled > $dir/hugepages-64kB_enabled