update: After 24hours, I’m pretty sure it helped quite a bit. My phone did not slow down to a crawl today nor did iOS start killing my fast app switching backgrounded apps. Will it last? Will it blend? Of course not, it’s VIRTUAL memory!
With the latest iOS 4 supporting multitasking or with any other version of iOS that has been set free from its jail, I’ve noticed that my old, slow iPhone 3g has been having memory issues.
With iOS 3 and multitasking applications such as backgrounder, I could at least manage what app I wanted to leave open in the background. Sure, it took more CPU but at least I could manage it.
With iOS 4 (multitasking enabled using the latest pwnagetools) – many apps will keep using RAM in the background if they support Fast App Switching. As more and more apps get recompiled with iOS 4 and fast app switching enabled, I noticed I needed to reboot my iPhone from time to time or manually close these apps. And as we know, task managers, blowing it, etc…
Here is how I enabled swapping on my iPhone – sorry for not quoting any definite source, the knowledge I found was spread out through many forums and no clear source could be found. In any case, I’m certainly not the one who thought about this.
iOS is a stripped down version of OS X, which supports swapping, obviously. However, the flash in your iPhone is not made to handle thousands of writes and this is why Apple doesn’t do swapping on it. Be warned, this will probably end up killing it. How fast? Hard to say. Considering my 3g is 2 years old and I’m eligible for an upgrade soon, I just don’t really care. Please inspect the file before you upload it and understand what it means – I’m not responsible for you nuking your phone. Back it up in iTunes first, too, just in case you have to restore using DFU Mode.
- Jailbreak your iPhone ( I recommend pwnagetools )
- Install OpenSSH From cydia
- Connect to your iPhone using an SCP client (Cyberduck, WinSCP, Filezilla..)
- Download this file and rename it from .txt to .plist com.apple.dynamic_pager
- Upload this file to /System/Library/LaunchDaemons
- Reboot
You will now notice that even after opening a few apps, available memory reported by SBSettings will remain close to 30-35Mb.
On top of that, if you browse to /var/vm , you will see that it created a swap file.


