Skip to content

Performance: add Yocto Memory_Map test and reusable collection helpers#504

Open
Srikanth Muppandam (smuppand) wants to merge 2 commits into
qualcomm-linux:mainfrom
smuppand:memory_map
Open

Performance: add Yocto Memory_Map test and reusable collection helpers#504
Srikanth Muppandam (smuppand) wants to merge 2 commits into
qualcomm-linux:mainfrom
smuppand:memory_map

Conversation

@smuppand

Copy link
Copy Markdown
Contributor

Add a new Memory_Map performance test for Yocto targets and extend [lib_performance.sh](http://lib_performance.sh/) with reusable memory collection helpers.

This test replaces the older dependency on Android-only tools such as procrank and dmabuf_dump by collecting equivalent debug data from standard Linux interfaces such as /proc, /sys, debugfs, DMA-BUF, KGSL, zram, slab, vmalloc and per-process smaps_rollup.

The summary follows Qualcomm-style memory accounting:

  • NHLOS = rounded total RAM - Total Linux memory
  • Kernel Static = Total Linux memory - MemTotal
  • Apps + Framework = sum of process PSS from /proc/*/smaps_rollup
  • Free Mem = MemAvailable

Add reusable memory-map helpers to collect Linux memory artifacts without
Android-only tools such as procrank or dmabuf_dump.

The helpers collect /proc, /sys, debugfs, DMA-BUF, KGSL, zram, slab,
vmalloc, reserved-memory, per-process smaps_rollup and platform details.
They also generate a final stdout-friendly memory component summary using
Qualcomm-style formulas for NHLOS, Kernel Static, Apps + Framework and
Free Memory.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
Add the Memory_Map performance test to collect memory-map and memory
debug artifacts on Yocto targets.

The test supports configurable output directory, collection delay, top
process count, debugfs mounting and verbose debug output. It prints a
final memory component table to stdout for quick triage and documents
the collected artifacts, formulas, usage examples and LAVA parameters.

Signed-off-by: Srikanth Muppandam <smuppand@qti.qualcomm.com>
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

Successfully merging this pull request may close these issues.

1 participant