How about some Virtual RAM for your iPhone
At the risk of making my blog look like an iPhone special, here I am blogging after ages, once again about the iPhone
.
In my last post, I shared a way to increase the performance of your iPhone by removing some unnecessary stuff from it. This time the tweak involves adding a package to increase the memory and improve the performance of the applications a little better.
This application does nothing but creates a swap file on your iPhone. Most linux users must be aware of the Swap file concept, which is nothing but a special area on your storage disk allocated to be used as Random Access Memory, in case the applications need it. This swap file resides on the permanent storage and frequent reading and writing to it can sometimes prove to be very expensive in terms of performance . Hence, this concept usually works well with the applications that run in the background as they don’t need to actively use the RAM.
So how good can this be for a device like iPhone which doesn’t believe in having the background applications ? This app (like most other hacks) can be installed only on a JailBroken device and it can be very useful with the backgrounder app. Those who don’t use the backgrounder would still get the benefit as some of the important apps like, mail app and iPod tend to stay sitting idle consuming memory in the background even if you don’t use them. With this swap file installed, there is a noticeable improvement in the available RAM for all these scenarios.
To install the app, you need to download the .deb file and install it from the mobile terminal. This doesn’t have any icon or a toggle switch (as of now). However, if you have SBSettings installed, you can notice the difference with the available RAM shown by it. Most users see a substantial improvement in the numbers. This, of course, wouldn’t make so much difference to those who have a 3GS, as they already have more than sufficient RAM on their devices, but nevertheless they would also notice the increase in the available RAM count. The swap file is of 256 Mb, but the developer suggests that it would automatically add 256 more if its all consumed up at any point.
You can download the file from the link here : Virtual RAM/Swap file for iPhone.
For further discussions and reading, you can checkout the source link to xSellize forum.
Update 1: A few other developers have toyed around with this concept, and have come up with an even better way to use the swap space..
The second method seems to be a documented feature for the iPhone OS, which is not active by default. There is a plist file “com.apple.dynamic_pager.plist” which is supposed to be put in /System/Library/LaunchDaemons to get this working. Using this plist would use a built-in program to create a virtual memory swap file to be used. I’m not sure if this was something which Apple has kept hidden on purpose or it got introduced as a result of JailBreak, but the ‘dynamic_pager’ program is already on the iPhone located in /sbin.
This approach creates a dynamic virtual memory swap file ‘on demand’ without any size limit. And this seems to be less buggy than the previous version.
To use this method, download the plist file from here , put it to /System/Library/LaunchDeamons and reboot. Don’t forget to uninstall the previous VM package before using this one.
Update 2: I’ve tried using both the versions, and I like the native plist version much better. With the first Chinese VM app, it used to allow having a lot of free memory, but the phone got laggy while trying to push stuff on the swap space. It sometimes even got stuck at one screen for minutes together before getting the app to work. So it was nice to have free memory, but it didnt please me as the overall system impact was laggy.
With the native plist method, its been a smooth ride so far, no lags whatsoever. I’ve got mail app, ipod, safari running in the background and still have almost 43 MB memory, free to be used. I tried playing GangStar with it, and it was smooth, and didn’t crash even once.
Keep watching this space for more updates
Do let me know, if you tried using it and noticed any improvement with the performance.
November 4th, 2009 at 7:20 am
Tried it, it works great!
The new .Plist option is far better than the other iPhone VM options!
I’ve linked this page to Sinfuliphone.com
THANKS!
November 5th, 2009 at 9:04 pm
I’ve tried the plist method, didn’t feel any different. some system info app tell me there’s no increase of memory. can you help me to get this work? mine is iPhone 3G, OS 3.12
December 13th, 2009 at 5:41 am
I just tried the plist thing cuz I was having crashing problems like crazy, I have sbsettings and I could see my ram decreasing until there was none left at all and then it crashes.
I installed how you said, and my ram counter bobs around 29 and 30 when I have like 6 apps or more open. regardless how much crap I open it doesn’t go below. This is awesome! Thanks you solved all my iphone problems, which was just one…lol. I guess what the file does is create more ram when it gets to a certain point. I see no lag at all also. It’s flawless. Thanks again
December 28th, 2009 at 11:04 pm
While this hack fry tour iphne like the other VM mods
January 7th, 2010 at 3:27 am
This is discussed heavily on xsellize too, and its common thought that this WILL FRY your RAM Chip
Why don’t you try this approach
http://xsellize.com/showthread.php/76965-Repeating-memory-free
January 22nd, 2010 at 6:47 pm
So… i did this… i like it compared to not having it… but i do notice a lot of slowness while multitasking. I do wish it was a solution to having a bunch of things running. At least they don’t crash… at least not as much as before!
I just hope they figure out a way to increase the RAM amount in these things… I could use double or more what’s built in!
January 29th, 2010 at 1:49 pm
Thank you so much for writing this article. It’s simply amazing what you did. Really
I had a lot of problems with my iPhone 3G, 8Go. Every time it crashed, because it’s got more or less just 8-10 Mo free RAM. Now, by your plist file, my iPhone fuse
I’m so happy today, thanks to you. Thanks a lot. All the best :p
February 16th, 2010 at 5:11 am
This appears to be an awesome tip, but I ended up uninstalling. Sure, my phone booted with 80MB+. But instead of freezing at 6MB< it froze at 30MB. Net gain = 0. Same performance as before. Not worth the risk.
thanks anyway!
May 16th, 2010 at 6:51 am
[...] Here is an article for you guys to check out: http://danishkhan.com/blog/2009/09/ho…; [...]