For the early Android phones at that time, due to technical reasons, 2G memory was considered the flagship configuration, while most of the masses had 1G or even 512M memory configurations.
Moreover, because the Android system is based on Linux, the earliest concept of Android memory expansion, namely virtual memory, appeared at that time.
Similar to Windows, the principle of Android's virtual memory is also the same. It is also used as RAM by dividing a part of the storage space.
Principle of memory expansion
However, memory expansion still has limitations.
The realization principle is that after the swap partition is allocated locally, a swap file of the corresponding size is generated, and the storage area occupied is called virtual memory.
In the process of using the device, the real memory will still be used first. When the memory is insufficient, the system will automatically release the less frequently used applications and save them in the swap space.
When the user switches back to the application, the system automatically reads the data from the swap space and restores it to the real memory, finally realizing the exchange.
Simply put, because of the existence of the swap partition, virtual memory is not as big as possible.