android - 何故现在安卓手机的后台应用,占用内存如此多,那么安卓系统调度内存的总原则是什么?
迷茫
迷茫 2017-04-17 17:33:04
0
2
644

描述问题

从来不杀后台进程,因为自己信奉缓存这一套

但是也惊异于现在安卓应用的内存占用之大,比如「开机不久后内存剩下500M左右」,但我显然是会不断缓存后台应用的

故对安卓系统的内存调度原则产生了兴趣

上下文环境

国产X米手机5-3GRAM  (常用应用20几个)

习惯:
1. 从来不杀后台进程(坚持「内存不用就是浪费」的道理)

重现

普遍现象

已经尝试哪些方法仍然没有解决(附上相关链接)

根据自己对Linux的些许了解,自己的模糊认识如下:

  1. 有多少用多少, 最好全部用上

  2. 新进程加进来,踢掉闲置进程

问题简化

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all(2)
Peter_Zhu

In fact, memory cannot analyze how much memory is running in the background, nor is it the main reason why the phone is stuck. You have to compare the memory usage in iOS. It is not less than Android at all, not to mention that the iPhone itself has less memory.
The power consumption of mobile phones is concentrated on the CPU. No matter how much memory you use, it will consume the same amount.
Regarding the scheduling of background applications, the mechanisms of Android and iOS are similar. If the application is full, clear the background program to make space. Programs have priorities, and those with lower priorities will be killed first.
The difference is that Android and iOS have different mechanisms for background programs. iOS only allows a small number of programs to stay in the background, while Android has no restrictions and allows programs to invade the background. In particular, Google has not entered the country. The domestic Android market is in chaos, and there is no market to restrict the behavior of apps. This has promoted the design of Android apps to be arbitrary. Even if some apps do not have the need to stay in the background, they still have to do some tricks to stay in the background. If things go on like this, the mobile phone will be under high load for a long time, which will cause the Android machine to become more and more stuck as it is used.

刘奇

1, apps will wake up each other + start automatically in the background + prevent themselves from being killed by triggering system events
2, the cache is accumulating, and sometimes the cache of the app can be completely cleared without uninstalling the app
3, the app design is bloated and there is no performance optimization
As for the general principle of Android system memory scheduling, it is not very clear

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!