Thread: Swap
- 08-11-2011, 11:01 AM #1
So I Hear You Can Mod
- Join Date
- Nov 2010
- Location
- UAE
- Posts
- 398
- Thanks
- 34
- Thanked 114 Times in 66 Posts
- Downloads
- 3
- Uploads
- 0
Swap
As we are all well aware, our XT doesn't have endless amounts of RAM. After a fresh boot I have around 120MB of RAM available, which quickly fills up when launching multiple large apps. When filled, things become sloooooooooooow and annoying. Now I could just ditch it and get a new device with more RAM, but then again I didn't spend hours making the fast "flawless" ROM to be outplayed by the RAM.
The solution: Swap!
What you need:
- A fast SDHC card (the faster the better obviously)
- A kernel with swap support
- The app "swapper"
Great thing is, you can create the swap file on a FAT or ext partition. Set the size, format it and you're done.
I use 256MB of swap on a class10 card - and now even the biggest apps just fly
-
5 Users Say Thank You to GroovyG For This Useful Post
blackwing182 (08-11-2011), Hairo (08-11-2011), josuearisty (08-13-2011), Saurus (08-11-2011), turl (08-11-2011)
- 08-11-2011, 11:24 AM #2
Moderator
- Join Date
- Dec 2010
- Posts
- 605
- Thanks
- 118
- Thanked 763 Times in 236 Posts
- Downloads
- 2
- Uploads
- 0
Also, remember SD Cards don't have infinite life and every write counts; using swap on it might reduce it's lifetime. But then, you probably won't be using your XT anymore when it fails because of this
-
The Following User Says Thank You to turl For This Useful Post:
Hairo (08-11-2011)
- 08-11-2011, 02:21 PM #3
So I Hear You Can Mod
- Join Date
- Nov 2010
- Location
- UAE
- Posts
- 398
- Thanks
- 34
- Thanked 114 Times in 66 Posts
- Downloads
- 3
- Uploads
- 0
True, but with the expected cycles to failure being in the millions with current flash cards already, both the cards and the phone will have become anciently obsolete well before even coming close to failing
-
The Following User Says Thank You to GroovyG For This Useful Post:
josuearisty (08-13-2011)
- 08-11-2011, 03:59 PM #4
[MENTION=3226614]GroovyG[/MENTION], mm, i saw it before (i had swap on my Motorola Zine) but i heard somewhere that it might slow some android phones so i never used swap...
PD: A class 4 SDHC will work fine??Last edited by Hairo; 08-11-2011 at 04:27 PM.


- 08-11-2011, 04:43 PM #5
Put it together with this and see what you get - [SCRIPT] The Best RAM Optimization
Blinding Electronic Speed
Your method looks good, [MENTION=3226614]GroovyG[/MENTION]. I'll try it first.Hic sunt dracones...
- 08-11-2011, 07:04 PM #6
Moderator
- Join Date
- Dec 2010
- Posts
- 605
- Thanks
- 118
- Thanked 763 Times in 236 Posts
- Downloads
- 2
- Uploads
- 0
- 08-11-2011, 07:33 PM #7
- 08-12-2011, 07:40 AM #8
So I Hear You Can Mod
- Join Date
- Nov 2010
- Location
- UAE
- Posts
- 398
- Thanks
- 34
- Thanked 114 Times in 66 Posts
- Downloads
- 3
- Uploads
- 0
[MENTION=3209357]Saurus[/MENTION],
Not all of them would help with swap, and even be counterproductive as they aim to keep RAM free by closing apps.
With swap you want the exact opposite, keep everything in RAM/swap so there's no need to actually close anything - thereby gaining the extra speed. All of the useful VM tweaks are already in the ROM.
[MENTION=1122281]Hairo[/MENTION],
It will of course work with a class4 as well, just the gains in performance won't be that substancial.
-
The Following User Says Thank You to GroovyG For This Useful Post:
Saurus (08-16-2011)
- 08-12-2011, 06:54 PM #9
What do you think on a thirty two Gigs? Haha Just saying...
Sent from my MB501 using Tapatalk
"Remember that life loves you, but most of the time, you don't love life"



- 08-13-2011, 10:15 AM #10
Moderator
- Join Date
- Dec 2010
- Posts
- 605
- Thanks
- 118
- Thanked 763 Times in 236 Posts
- Downloads
- 2
- Uploads
- 0
-
The Following User Says Thank You to turl For This Useful Post:
rfunderburk (08-13-2011)
- 08-13-2011, 10:30 PM #11
i hav like 80mb of phone memory available, is it possible to use about 50-60 of phone memory instead of SD card ?
- 08-13-2011, 11:49 PM #12
Moderator
- Join Date
- Dec 2010
- Posts
- 605
- Thanks
- 118
- Thanked 763 Times in 236 Posts
- Downloads
- 2
- Uploads
- 0
-
The Following User Says Thank You to turl For This Useful Post:
skivvies (08-14-2011)
- 08-14-2011, 06:57 AM #13
So I Hear You Can Mod
- Join Date
- Nov 2010
- Location
- UAE
- Posts
- 398
- Thanks
- 34
- Thanked 114 Times in 66 Posts
- Downloads
- 3
- Uploads
- 0
What you can do to free up more phone memory, is moving some apps to the system partition. The app "System App Remover" can do it for you, it's quite useful for large apps that don't get updates very often, like office and such.
-
The Following User Says Thank You to GroovyG For This Useful Post:
skivvies (08-14-2011)


LinkBack URL
About LinkBacks
Reply With Quote


