简体   繁体   English

如何在Android中通过pss释放缓存的内存

[英]How to release the cached memory by pss in android

While dumpsys meminfo,I found this: 当dumpsys meminfo时,我发现了这一点:

Total RAM: 463136 kB Free RAM: 170277 kB (48221 cached pss + 68780 cached + 53276 free) Used RAM: 173253 kB (152085 used pss + 3160 buffers + 176 shmem + 17832 slab) Lost RAM: 119606 kB ZRAM: 2168 kB physical used for 2836 kB in swap (51196 kB total swap) KSM: 4940 kB saved from shared 36 kB 6280 kB unshared; 总内存:463136 kB可用内存:170277 kB(48221缓存pss + 68780缓存+ 53276空闲)已使用的RAM:173253 kB(已使用的psps + 3160缓冲区+ 176 shmem + 17832 slab)丢失的RAM:119606 kB ZRAM:2168 kB物理用于交换中的2836 kB(总交换为51196 kB)KSM:从共享的36 kB的6280 kB节省的4940 kB; 84220 kB volatile Tuning: 48 (large 128), oom 108462 kB, restore limit 36154 kB (low-ram) 84220 kB易失性调整:48(大128),oom 108462 kB,恢复限制36154 kB(低内存)

Does the memory cached by pss(48221 byte) can be release?And how to release 可以释放pss(48221字节)缓存的内存吗?

Your RAM is the memory used by your active software, meaning the operating system and the applications that are running. RAM是活动软件(即操作系统和正在运行的应用程序)使用的内存。 The only way to release memory is to close those applications that you don't need. 释放内存的唯一方法是关闭不需要的应用程序。

To answer your question it is impossible to just clear RAM without closing any applications. 为了回答您的问题,不可能不关闭任何应用程序就清除RAM。

More info: http://android-developers.blogspot.be/2014/01/process-stats-understanding-how-your.html 更多信息: http : //android-developers.blogspot.be/2014/01/process-stats-understanding-how-your.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM