Popular Posts


19 October 2009

Virtual Memory for iPhone

The source is here. Check the link I provided for detailed explanation. Or, the rip version from me.

What is VM?
Virtual Memory, or VM, is exactly what it sounds like. Its virtual memory. Instead of using just the internal RAM, both of these methods create Swap Files on your Flash Drive (your iPhone "hard drive") and uses that file as extra RAM. To read more about VM, click here (http://en.wikipedia.org/wiki/Virtual_memory). You can check your memory from memtools (from cydia) or by using sbsetting.

Effect?
Well, several guy said it improve ur iphone perfomance while several say, it wont. Plus, crash. As for me, I find this VM stuff very efficient. No more lag. Faster in accessing the app. I'm using iPhone 3G fw 3.1

Launch time for SMS app:
3.101
3.048
2.997

SBS free memory between each launch:
7.050
9.981
8.614

Backgrounding weather, facebook, safari, solitaire app; SMS app launch time:
4.416
3.599
3.523
3.587

Backgrounding w/ free memory between each launch:
9.077
8.499
8.348
9.065

That was all before installation. Now here's post install results

base launch:
2.971
3.035
3.021
2.910

same backgrounding:
3.033
3.085
3.047
2.995
3.021

Heavy backgrounding (added zenbound and space shuttle simulator):
12.983
8.196
8.548
17.034
9.327

Above, i rip from the original source so that u can see the effect of vm. Generally, ur iphone load faster.

Downloads
iPhoneVM.deb. After install, reboot.

This is the modifiend .plist which is work for me. Put the .plist at /System/Library/LaunchDaemons/ then reboot.

Uninstall
Open Cydia and uninstall it. (Should be at the very bottom of packages)
Now SSH into your iPhone and navigate to var/vm/ and delete the swap files inside. (DO NOT JUST DELETE THE ENTIRE var/vm DIRECTORY - ONLY DELETE THE FILES INSIDE)
Now navigate to System/Library/LaunchDaemons and delete the com.apple.dynamic_pager.plist file
REBOOT iPhone.
Done.

.plist Version
SSH into your iPhone and navigate to var/vm/ and delete the swap files inside. (DO NOT JUST DELETE THE ENTIRE var/vm DIRECTORY - ONLY DELETE THE FILES INSIDE)
Now navigate to System/Library/LaunchDaemons and delete the com.apple.dynamic_pager.plist file
REBOOT iPhone.
Done.

Proof


46Mb free. U can compare urs with mine.

0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More