Swap or compcache or both or none
This is a discussion on Swap or compcache or both or none within the Droid Hacks forums, part of the Droid Hacking category; Hopefully one of the mods can turn this into a poll but I've been curious as to what everyone uses and why. So do you ...
View Poll Results: Do you use compcache, swap, both or none of them?
- Voters
- 8. You may not vote on this poll
-
Swap or compcache or both or none
Hopefully one of the mods can turn this into a poll but I've been curious as to what everyone uses and why. So do you use compcache, swap, both or none of them and why do you use (or not use) them and why.
Personally I usually use swap because it always seems to lag much less than compcache and it fills up much more slowly allowing me to not worry about clearing it very often
supercharged modified liquid 3.0 w/turbocharged 3g
Pete's 5 slot lv 1.25GHz w/ kickasskernel tweaks
19.8 linpack score
1856 quadrant score
tweaks, hacks, and other goodies here
current phone The GALAXY NEXUS LTE
all
the 
stock-for now...

previous phone the trusty ol' droid 1
-
-
None. Seemed like my phone eventually slowed down with either, so I gave up using them.
Tapped from an Unbrickable DROID
Follow us on Google Currents & be sure to subscribe. Here's how to stay Current.
-
I've been using a swap partition for about 6 months now. Seems like that was the only way for my phone to run any gingerbread ROM. Have been using winner00s cm7 builds about as long. Would like some script or somethin so I don't have to use swapper2. I remember there was a thread awhile ago I was talking with somebody I think kevdog about it but have No idea where it would be at. But yea I use a 64mb swap partition with swapper2.
Sent from my Droid using DroidForums
-
There is a way without swapper2. Run this in terminal emulator or copy/paste it into any script in /etc/init.d (if you have an init.d folder) or use script manager to make a script with this in it and run it at boot
swapon /dev/block/mmcblk0p3
and to turn it off
swapoff /dev/block/mmcblk0p3
Btw I pulled that from swapper2 itself lol under advanced settings it says the default directory for the swap partition and I found the swapon and swapoff scripts from running busybox in terminal to show all available commands
supercharged modified liquid 3.0 w/turbocharged 3g
Pete's 5 slot lv 1.25GHz w/ kickasskernel tweaks
19.8 linpack score
1856 quadrant score
Last edited by metalspring; 10-30-2011 at 09:41 PM.
tweaks, hacks, and other goodies here
current phone The GALAXY NEXUS LTE
all
the 
stock-for now...

previous phone the trusty ol' droid 1
-

Originally Posted by
metalspring
There is a way without swapper2. Run this in terminal emulator or copy/paste it into any script in /etc/init.d (if you have an init.d folder) or use script manager to make a script with this in it and run it at boot
swapon /dev/block/mmcblk0p3
and to turn it off
swapoff /dev/block/mmcblk0p3
Btw I pulled that from swapper2 itself lol under advanced settings it says the default directory for the swap partition and I found the swapon and swapoff scripts from running busybox in terminal to show all available commands
supercharged modified liquid 3.0 w/turbocharged 3g
Pete's 5 slot lv 1.25GHz w/ kickasskernel tweaks
19.8 linpack score
1856 quadrant score
Yea I sometimes had to use that when I was having trouble with swapper2. Thanks again for that tho, it's a very useful command. And Yea I do have a /etc/unit.d/ folder, I'm on cm7. Now how do you go about setting swappiness? In the /etc/sysctl.conf file?
Was it you that listed all those sysctl commands in a different thread? I take it that's the same file those are related to? So I could just set swappiness to like 5 or 10 and I'd be all set? Tons of questions I know. Then I could check if it's working by looking in the memory section of SetCPU.
Sent from my Droid using DroidForums
-

Originally Posted by
meishkov
Yea I sometimes had to use that when I was having trouble with swapper2. Thanks again for that tho, it's a very useful command. And Yea I do have a /etc/unit.d/ folder, I'm on cm7. Now how do you go about setting swappiness? In the /etc/sysctl.conf file?
Was it you that listed all those sysctl commands in a different thread? I take it that's the same file those are related to? So I could just set swappiness to like 5 or 10 and I'd be all set? Tons of questions I know. Then I could check if it's working by looking in the memory section of SetCPU.
Sent from my Droid using DroidForums
Several ways to set swappiness
1. Add this into the sysctl.config file
vm.swappiness = 30
2. Add this at the end of the first script in init.d
sysctl -w vm.swappiness = 30
3. Run this in terminal emulator (not sure this way sticks though)
sysctl -w vm.swappiness=30
Btw keep all spacing the same
supercharged modified liquid 3.0 w/turbocharged 3g
Pete's 5 slot lv 1.25GHz w/ kickasskernel tweaks
19.8 linpack score
1856 quadrant score
tweaks, hacks, and other goodies here
current phone The GALAXY NEXUS LTE
all
the 
stock-for now...

previous phone the trusty ol' droid 1
-
What about all those other values you were talking mixing and matching in the sysctl thread I can still use those right? Thanks again
By the way I've been running swappiness at 5 so it takes longer to fill up or whatever. Or is that too low?
Sent from my Droid using DroidForums
-

Originally Posted by
meishkov
What about all those other values you were talking mixing and matching in the sysctl thread I can still use those right? Thanks again
By the way I've been running swappiness at 5 so it takes longer to fill up or whatever. Or is that too low?
Sent from my Droid using DroidForums
Yeah you can use all of those and as for 5 being too low it all depends on your usage. Just run everything for a day or so like you'd normally do without rebooting then type in
free
in terminal emulator and if you still have tons of swap space left then you can increase it
supercharged modified liquid 3.0 w/turbocharged 3g
Pete's 5 slot lv 1.25GHz w/ kickasskernel tweaks
19.8 linpack score
1856 quadrant score
tweaks, hacks, and other goodies here
current phone The GALAXY NEXUS LTE
all
the 
stock-for now...

previous phone the trusty ol' droid 1
-
Follow us on Google Currents & be sure to subscribe. Here's how to stay Current.
-
Hey metalspring thanks for all your help man. I've been running without swapper2 and just that swapon command, but how does it manage itself? In other words does it know to restart once the majority of free swap memory is used up?
I've also been running all those sysctl tweaks you posted so the swappiness is set at 30, or does that not even effect swap??
Sent from my Droid using DroidForums
Last edited by meishkov; 10-31-2011 at 09:46 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Similar Threads
-
By chmcclellan in forum Cyanogenmod
Replies: 101
Last Post: 05-27-2011, 05:44 PM
-
By Phatdaddyz01 in forum UltimateDroid
Replies: 0
Last Post: 02-18-2011, 10:32 AM
-
By Trips555 in forum Liquid
Replies: 0
Last Post: 02-06-2011, 06:04 PM
-
By juniorjwh in forum Team D1-MIUI
Replies: 7
Last Post: 02-02-2011, 01:30 PM
-
By bdub33 in forum Hacking Help
Replies: 5
Last Post: 11-26-2010, 02:20 AM
Search tags for this page
android swap off
,
compcache on or off
,
does gpa use compcache
,
droid compcache 26%
,
droid swap script
,
droid swappiness 15
,
gpa droid compcache
,
how to compcache android
,
how to use swap android
,
incredible init.d script not running gingerbread
,
swap or compcache
,
swapon /dev/block/mmcblk0p3 on boot
,
using swap and compcache
,
what is linksys speedbooster
,
what is swap and compcache android
Click on a term to search our site for related topics.