Performance: add Yocto Memory_Map test and reusable collection helpers#504
Open
Srikanth Muppandam (smuppand) wants to merge 2 commits into
Open
Performance: add Yocto Memory_Map test and reusable collection helpers#504Srikanth Muppandam (smuppand) wants to merge 2 commits into
Srikanth Muppandam (smuppand) wants to merge 2 commits into
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a new
Memory_Mapperformance 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
procrankanddmabuf_dumpby collecting equivalent debug data from standard Linux interfaces such as/proc,/sys, debugfs, DMA-BUF, KGSL, zram, slab, vmalloc and per-processsmaps_rollup.The summary follows Qualcomm-style memory accounting:
NHLOS = rounded total RAM - Total Linux memoryKernel Static = Total Linux memory - MemTotalApps + Framework = sum of process PSS from /proc/*/smaps_rollupFree Mem = MemAvailable