+ Reply
Results 1 to 20 of 20
  1. #1
    What's Jailbreak?
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 7 Times in 2 Posts

    Lightbulb 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.plist
    Last edited by jiztek; 08-20-2009 at 08:08 PM.

  2. The Following 6 Users Say Thank You to jiztek For This Useful Post:

    96hondaex (10-02-2009), bigbadmoshe (09-30-2009), dsg (10-14-2009), Ejb5oh (08-21-2009), MadPriest (10-02-2009), stocis (10-01-2009)

  3. #2
    iPhone? More like MyPhone sTrAnGe mOdS's Avatar
    Join Date
    Dec 2008
    Location
    Tennessee
    Posts
    258
    Thanks
    21
    Thanked 18 Times in 18 Posts

    Quote Originally Posted by jiztek View Post
    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.plist
    LOL "happy"
    btw congrats on your first post!

  4. #3
    What's Jailbreak? Ejb5oh's Avatar
    Join Date
    Aug 2009
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts

    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.

  5. #4
    Livin 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?

  6. #5
    What's Jailbreak?
    Join Date
    Aug 2009
    Posts
    2
    Thanks
    0
    Thanked 7 Times in 2 Posts

    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.

  7. The Following User Says Thank You to jiztek For This Useful Post:

    Ejb5oh (08-21-2009)

  8. #6
    iPhone? More like MyPhone
    Join Date
    Feb 2009
    Posts
    191
    Thanks
    0
    Thanked 10 Times in 10 Posts

    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.

  9. #7
    iPhone? More like MyPhone
    Join Date
    Aug 2008
    Posts
    124
    Thanks
    13
    Thanked 6 Times in 6 Posts

    Quote Originally Posted by ares07 View Post
    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.
    It really depends. SLC Flash memory has typical read/write cycles for 100,000. MLC Flash memory (used on the Iphone) only has 10% of that (10,000 cycles) typically.

    But I don't know what Nokia uses. They might be using MLC type as well to save space.

  10. #8
    iPhone? More like MyPhone
    Join Date
    Feb 2009
    Posts
    191
    Thanks
    0
    Thanked 10 Times in 10 Posts

    donīt forget cost issues...

  11. #9
    Livin the iPhone Life
    Join Date
    Dec 2007
    Posts
    1,460
    Thanks
    15
    Thanked 197 Times in 184 Posts

    while I don't need it (3GS), I will tell some of my friends about this, it's pretty cool

  12. #10
    Retired Moderator stlcaddie's Avatar
    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?

  13. #11
    Green Apple
    Join Date
    Jul 2008
    Posts
    68
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Quote Originally Posted by stlcaddie View Post
    Will it hurt to do this to my 3gs or will it make it a bit better?
    I highly doubt you'll see much of a difference on a 3GS.

  14. #12
    What's Jailbreak? WTFish's Avatar
    Join Date
    Feb 2009
    Posts
    26
    Thanks
    0
    Thanked 3 Times in 2 Posts

    I have installed this but nothing happens? 40mb of RAM at startup


    | iPTBoard | My Site | ThemeDB | iCrap

  15. #13
    Livin the iPhone Life
    Join Date
    Dec 2007
    Posts
    1,460
    Thanks
    15
    Thanked 197 Times in 184 Posts

    Quote Originally Posted by WTFish View Post
    I have installed this but nothing happens? 40mb of RAM at startup
    I guess it won't show as free RAM as the "free ram" number only shows the physical free ram, not virtual one.

  16. #14
    What's Jailbreak?
    Join Date
    Jul 2009
    Location
    LA
    Posts
    16
    Thanks
    2
    Thanked 1 Time in 1 Post

    Default how to use?

    hey guys..
    I downloaded this, but I dont know how to use it??
    can anyone tell me ????

  17. #15
    Livin the iPhone Life
    Join Date
    Dec 2007
    Posts
    1,460
    Thanks
    15
    Thanked 197 Times in 184 Posts

    Quote Originally Posted by smlukkie View Post
    hey guys..
    I downloaded this, but I dont know how to use it??
    can anyone tell me ????
    you don't. once you followed the instructions in the original post, it's already set up and everything. you don't need to do anything anymore.

  18. #16
    My iPhone is a Part of Me stocis's Avatar
    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

  19. #17
    Green Apple Dorkington's Avatar
    Join Date
    Jul 2009
    Location
    Washington, DC
    Posts
    92
    Thanks
    5
    Thanked 0 Times in 0 Posts

    I'd love to hear more stories about people doing this.

    I'm considering it myself.

    Quote Originally Posted by stocis View Post
    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?
    Are you quitting out of back grounded applications or just keeping them on indefinitely?

    Does it clear up with a reboot?
    Last edited by Dorkington; 12-01-2009 at 08:49 AM. Reason: Automerged Doublepost

  20. #18
    What's Jailbreak? Ejb5oh's Avatar
    Join Date
    Aug 2009
    Posts
    15
    Thanks
    4
    Thanked 0 Times in 0 Posts

    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.

  21. #19
    What's Jailbreak?
    Join Date
    Jul 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default a little help

    Can anyone provide the original file ? 3.1.2 is my FW version.

  22. #20
    What's Jailbreak?
    Join Date
    Jul 2010
    Posts
    6
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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.
    Where 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?

    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>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts