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

stresstestapp cause perfetto captured only 1mins log instead of 5mins #491

Open
wjj1928 opened this issue Nov 7, 2024 · 0 comments
Open

Comments

@wjj1928
Copy link

wjj1928 commented Nov 7, 2024

I use below config to capture android13 bootup trace. it's defined as 5mins log which works fine only bootup and keep device idle.

But if I run stresstestapp (android aosp code at external/stresstestapp) with below command:

adb shell /data/local/tmp/stressapptest -s 180 -M 1536 -C 12
[Uploading logs.zip…]()

then perfettto only got 1mins logs from UI, trace attached. I wait perfetto finished then pull trace file.

Since this stress test used almost 1.5GB memory, I wonder if anything important to perfetto has been killed by lowmemorykiller.

aplog attached as well.

duration_ms: 300000
write_into_file: true
file_write_period_ms: 500                              
    
buffers {
  size_kb: 32768
  fill_policy: DISCARD
}
buffers {
  size_kb: 32768
  fill_policy: DISCARD
}
            
data_sources {
    config {
        name: "linux.system_info"
    }
}

data_sources {
  config {
    name: "linux.ftrace"
    ftrace_config {
      ftrace_events: "sched/sched_process_exec"
      ftrace_events: "sched/sched_process_exit"
      ftrace_events: "sched/sched_process_fork"
      ftrace_events: "sched/sched_process_free"
      ftrace_events: "sched/sched_process_hang"
      ftrace_events: "sched/sched_process_wait"

      ftrace_events: "sched/sched_switch"
      ftrace_events: "sched/sched_wakeup_new"
      ftrace_events: "sched/sched_waking"            
      ftrace_events: "task/task_newtask"
      ftrace_events: "task/task_rename"
            
      ftrace_events: "power/cpu_frequency"
      ftrace_events: "power/cpu_idle"
      ftrace_events: "power/suspend_resume"

      ftrace_events: "mm_event/mm_event_record"
      ftrace_events: "kmem/rss_stat"
      ftrace_events: "kmem/ion_heap_grow"
      ftrace_events: "kmem/ion_heap_shrink"
      
      atrace_categories: "input"
      atrace_categories: "power"
      atrace_categories: "freq"
      symbolize_ksyms: true
    }
  }
}
# Polling the current cpu frequency.
data_sources: {
    config {
        name: "linux.sys_stats"
        sys_stats_config {
            cpufreq_period_ms: 1000
            
            meminfo_period_ms: 1000
            meminfo_counters: MEMINFO_MEM_TOTAL
            meminfo_counters: MEMINFO_MEM_FREE
            meminfo_counters: MEMINFO_MEM_AVAILABLE
            meminfo_counters: MEMINFO_BUFFERS
            meminfo_counters: MEMINFO_CACHED
            meminfo_counters: MEMINFO_SWAP_CACHED
            
            vmstat_period_ms: 1000
            vmstat_counters: VMSTAT_NR_FREE_PAGES
            vmstat_counters: VMSTAT_NR_ALLOC_BATCH
            vmstat_counters: VMSTAT_NR_INACTIVE_ANON
            vmstat_counters: VMSTAT_NR_ACTIVE_ANON

            stat_period_ms: 1000
            stat_counters: STAT_CPU_TIMES
            stat_counters: STAT_FORK_COUNT            
        }
    }
}

data_sources: {
    config {
        name: "linux.process_stats"
        process_stats_config {
            scan_all_processes_on_start: true
            proc_stats_poll_ms: 500
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant