android ion 内存泄漏排查

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

你可能感兴趣的:(android)