After jailbreaking iPhone running iOS10, some of you already met with the problem that the storage space of your iDevice is insufficient, and some users even found that iPhone’s apps crashed unexpectedly. This tutorial is mainly discussing how to modify iPhone’s virtual memory and its related issues.
Step1: Download Mobile Terminal and iFile in Cydia.
Step2: Launch Mobile Terminal.
Step3: Enter su and Root Password, You can preset the root password as alpine.
Step4: Continue to enter dynamic_pager -H 5246870912 -L570425344 -P 1.
Step5: Open iFile and check if there is a file called swapfile0 size of 512 M under var/vm.
Step6: Reboot iPhone.
You’re able to change the code in step 4, it can be changed into 265 MB virtual memory and 1GB virtual memory. Please note the case difference.
512 MB virtual memory: dynamic_pager -H 5242800 -S 268435456 -L 301989888 -P 1
1GB virtual memory: dynamic_pager -H 33554432 -S 1073741824 -L 1140850688 -P 1
You need to modify the vm folder permission first, and then it will generate a file for virtual memory. In addition, the virtual memory can be closed if you restart iPhone or directly delete the file from your iPhone, log off iPhone won’t close the virtual memory.