But how does it perform under real use?
After opening a wave of applications, we found that even if the phone's physical memory occupies as high as 80%, the virtual memory of the swap partition is still at low occupancy.
Therefore, it is not possible to propose another concept of virtual memory scheduling, swappiness.
Simply put, the value of swappiness corresponds to the weight of virtual memory used. The larger the value, the more actively the system will use virtual memory.
Someone might say: Then just adjust it to the most positive one, can you use more virtual memory? But the truth is not that simple.
First of all, there is the speed issue. Due to the use of storage as memory, even today's UFS flash memory chips, their I/O performance is still not as good as physical memory.
Secondly, due to the nature of the swap partition, it is impossible to give priority to virtual memory at any time.
And if the swappiness value is too large, it will cause the background process to frequently recycle, release, and load the storage.
Summary of advantages and disadvantages
Advantages:
For current mainstream devices, a proper amount of memory expansion can indeed improve background capabilities and enhance user experience.
At present, various customized systems will occupy more resources due to visual effects such as animation and dynamic rendering. In addition, many brands still use 6G memory for the ultimate price-performance ratio.
Therefore, the experience of low-memory devices is indeed unsatisfactory, and now the introduction of memory expansion can alleviate these problems.