1.查看各个进程的ION

:/sys/kernel/debug/ion/heaps # cat system-heap

cat system-heap

client              pid             size

----------------------------------------------------

surfaceflinger              211          6565888

surfaceflinger              211         50413568

fb                1         32538624

----------------------------------------------------

orphaned allocations (info is from last known client):

surfaceflinger              211          7864320 0 1

----------------------------------------------------

total orphaned          7864320

total          90009600

deferred free                0

----------------------------------------------------

0 order 8 highmem pages in pool = 0 total

27 order 8 lowmem pages in pool = 28311552 total

0 order 4 highmem pages in pool = 0 total

8 order 4 lowmem pages in pool = 524288 total

0 order 0 highmem pages in pool = 0 total

4 order 0 lowmem pages in pool = 16384 total

2.每个进程对这个buffer的引用情况:

cat /proc/进程号/fd

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐