Android的dumpsys meminfo的"已交换脏QUOT; coloumn意思? [英] Android dumpsys meminfo "Swapped Dirty" coloumn meaning?

查看:381
本文介绍了Android的dumpsys meminfo的"已交换脏QUOT; coloumn意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有关于输出问了很多问题亚行外壳dumpsys meminfo的像这样的:
<一href=\"http://stackoverflow.com/questions/26776134/adb-shell-dumpsys-meminfo-what-is-the-meaning-of-each-cell-of-its-output\">adb壳dumpsys meminfo中 - 这是它的输出的每个单元的含义?
现在,我们有这样的好文章,描述类型的内存分配:
https://developer.android.com/tool​​s/debugging/debugging-memory.html

然而,不存在已交换脏类型的存储器分配的提。这是什么兽?据我所知,Android不换脏页,但有时我会得到该列中非零值:

  PSS的私人专用堆已交换堆的堆
                总计脏的干净的脏尺寸的Alloc免费
               ------ ------ ------ ------ ------ ------ ------
 本机堆3861 3844 0 2024 7128 6801 326
 Dalvik的堆7073 6996 0 5408 45111 31778 13333


解决方案

一些Android设备不使用交换,但他们交换到RAM中,而不是闪光灯。 Linux有COM pressed页面的功能,称为ZRAM,然后将其交换到一个特殊的RAM区域,并且DECOM $ P $再次需要时psses他们。

因此​​,在已换脏中列出的网页有可能在ZRAM。

There are many questions asked regarding output of the "adb shell dumpsys meminfo" like this one: adb shell dumpsys meminfo - What is the meaning of each cell of its output? And now we have this nice article describing types of memory allocations: https://developer.android.com/tools/debugging/debugging-memory.html

And yet, there is no mentioning of "Swapped Dirty" type of memory allocation. What is this beast? AFAIK, Android does not swap dirty pages and yet sometimes I'll get non zero value in that column:

                  Pss  Private  Private  Swapped     Heap     Heap     Heap
                Total    Dirty    Clean    Dirty     Size    Alloc     Free
               ------   ------   ------   ------   ------   ------   ------
 Native Heap     3861     3844        0     2024     7128     6801      326
 Dalvik Heap     7073     6996        0     5408    45111    31778    13333

解决方案

Some Android devices do use swap, but they swap to RAM rather than flash. Linux has a feature called ZRAM that compressed pages and then swaps them to a special RAM area, and decompresses them again when needed.

So the pages listed in "Swapped Dirty" are likely in ZRAM.

这篇关于Android的dumpsys meminfo的&QUOT;已交换脏QUOT; coloumn意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆