Thread: iPhone Swap Space
-
08-20-2009, 08:05 PM #1
iPhone Swap Space
Today, my girlfriend was complaining about her iPhone software crashing left and right due to low memory issues. So I asked myself why can't we just enable swap space(screw the flash memory by the time it dies there will be a nicer phone out). Anyway the phone is running OS 3.0 jailbroken with OpenSSH, winterboard,ect. The usual things that end up on a jailbroken iphone. Basically the process is really simple, get a SFTP program like WinSCP and connect to your iphone as root. Then navigate to /System/Library/LaunchDaemons and upload com.apple.dynamic_pager.plist which can be downloaded via the link below. Next reboot the phone and enjoy having dynamic paging or swap space. The plist could be edited obviously changing the parameters for dynamic_pager for various reasons I just kept it as simple as possible. We tested by backgrounding so many applications the phone came to a crawl but we still had free memory!
Hope this helps some people, not sure if anyone would even be interested in this. But my girl friend sure is happy, which means I'll be getting happy later
lol good luck iphone modding.
Found out I couldn't attach plist files.
Download link for com.apple.dynamic_pager.plistLast edited by jiztek; 08-20-2009 at 08:08 PM.
-
-
08-20-2009, 08:25 PM #2iPhone? More like MyPhone
- Join Date
- Dec 2008
- Location
- Tennessee
- Posts
- 258
- Thanks
- 21
- Thanked 18 Times in 18 Posts
-
08-21-2009, 02:29 PM #3
DUDE!!! You rock. This mod has completely fixed my low memory issue thus far. The phone slows a bit but not bad. We will see if it completely stops the springboard resets that used to occur quite frequently.
Great posting!!!Last edited by Ejb5oh; 08-21-2009 at 11:12 PM.
-
08-21-2009, 03:02 PM #4Livin the iPhone Life
- Join Date
- Aug 2008
- Location
- New York
- Posts
- 1,002
- Thanks
- 3
- Thanked 77 Times in 62 Posts
Why was swap space disabled by default? Save memory on the hard drive?
-
08-21-2009, 03:19 PM #5
I'm glad others are finding this useful. As for why this feature was originally disabled, the only thing I can think was because it does slow the phone down a bit(but not as much as randomly crashing applications). That and there is a huge arguement on the use of flash media as swap because of the large amounts of read and write operations that lower the over all life span of the flash media. But if you think like I do, the likely hood is you'll have a new model before you destroy the flash media.
-
The Following User Says Thank You to jiztek For This Useful Post:
Ejb5oh (08-21-2009)
-
09-30-2009, 08:56 AM #6
i said this on the other thread: Nokia n900, their upcoming smartphone that runs Maemo (variety of Linux), is pretty much a twin of the 3gs in terms of hardware: same physical RAM, same processor and graphical chip. Well, besides physical RAM, a swap file of 1GB of virtual memory is listed on the specs. Do you think flash memory used by Nokia is much better than Appleīs? Donīt think so.
-
09-30-2009, 11:10 AM #7
-
09-30-2009, 11:37 AM #8
donīt forget cost issues...
-
09-30-2009, 01:08 PM #9
while I don't need it (3GS), I will tell some of my friends about this, it's pretty cool
-
09-30-2009, 02:07 PM #10Retired Moderator
- Join Date
- Jul 2007
- Location
- Saint Louis, MO
- Posts
- 1,087
- Thanks
- 139
- Thanked 128 Times in 90 Posts
Will it hurt to do this to my 3gs or will it make it a bit better?
-
10-01-2009, 03:29 PM #11
-
10-05-2009, 12:54 PM #12
-
10-05-2009, 01:24 PM #13
-
10-07-2009, 09:11 AM #14
how to use?
hey guys..
I downloaded this, but I dont know how to use it??
can anyone tell me ????
-
10-07-2009, 10:36 AM #15
-
10-11-2009, 02:35 AM #16My iPhone is a Part of Me
- Join Date
- Nov 2007
- Location
- Cyprus
- Posts
- 783
- Thanks
- 106
- Thanked 188 Times in 139 Posts
after a week of using this, i have to say my phone in many cases has become slow, unresponsive and freezing in applications. do more have the same issue?
Thanks is an acknowledgment
Always have your stuff when you need it with @Dropbox. 2GB account is free! http://db.tt/vYt15CO
-
12-01-2009, 08:49 AM #17
Last edited by Dorkington; 12-01-2009 at 08:49 AM. Reason: Automerged Doublepost
-
12-01-2009, 09:51 AM #18
Had to revert back to normal iPhone settings. This mod actually slowed my phone over time and caused it to operate at a crawl, while still showing about 40 mb of Ram. In essence, all it did was change the number in the available RAM section of sbsettings while crippling my phone.
-
07-19-2010, 04:47 PM #19
a little help
Can anyone provide the original file ? 3.1.2 is my FW version.
-
07-28-2010, 04:42 PM #20Where did you get the plist file from? Did you write the file? Can you explain what the various keys and settings are and if there are options for them?iPhone Swap Space
Your Ad Here
Today, my girlfriend was complaining about her iPhone software crashing left and right due to low memory issues. So I asked myself why can't we just enable swap space(screw the flash memory by the time it dies there will be a nicer phone out). Anyway the phone is running OS 3.0 jailbroken with OpenSSH, winterboard,ect. The usual things that end up on a jailbroken iphone. Basically the process is really simple, get a SFTP program like WinSCP and connect to your iphone as root. Then navigate to /System/Library/LaunchDaemons and upload com.apple.dynamic_pager.plist which can be downloaded via the link below. Next reboot the phone and enjoy having dynamic paging or swap space. The plist could be edited obviously changing the parameters for dynamic_pager for various reasons I just kept it as simple as possible. We tested by backgrounding so many applications the phone came to a crawl but we still had free memory!
Hope this helps some people, not sure if anyone would even be interested in this. But my girl friend sure is happy, which means I'll be getting happy later lol good luck iphone modding.
Here is the contents:
Code:<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <dict> <key>Label</key> <string>com.apple.dynamic_pager</string> <key>OnDemand</key> <false/> <key>ProgramArguments</key> <array> <string>/sbin/dynamic_pager</string> <string>-F</string> <string>/private/var/vm/iphone_swap</string> </array> <key>RunAtLoad</key> <true/> </dict> </plist>



LinkBack URL
About LinkBacks
Reply With Quote





