Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
grifforama
Old
(Last edited by grifforama; 28th January 2010 at 05:26 PM.)
#1  
Senior Member - OP
Thanks Meter 56
Posts: 1,042
Join Date: Dec 2009
Default Compcache. Swappiness ?

With enabled compcache, and swapppiness set to 10

I have the following

free
total used free shared buffers
Mem: 195916 193708 2208 0 12
Swap: 131064 105536 25528
Total: 326980 299244 27736
#

I'm pretty noob at all this, but I'm learning.

Is 10 swappiness a default setting ? compcache.sh has this

/system/xbin/insmod /system/lib/modules/lzo_decompress.ko
/system/xbin/insmod /system/lib/modules/lzo_compress.ko
/system/xbin/insmod /system/lib/modules/xvmalloc.ko
/system/xbin/insmod /system/lib/modules/ramzswap.ko disksize_kb=131072
/system/xbin/swapon /dev/block/ramzswap0
echo "10" > /proc/sys/vm/swappiness


What if I increase the swappiness from 10 to 60 ?

Do my memory numbers look OK ? I'm a bit worried about my free numbers ?

 
chuckhriczko
Old
#2  
Recognized Developer
Thanks Meter 36
Posts: 1,066
Join Date: Aug 2008
Location: Walnutport, PA

 
DONATE TO ME
Quote:
Originally Posted by grifforama View Post
With enabled compcache, and swapppiness set to 10

I have the following

free
total used free shared buffers
Mem: 195916 193708 2208 0 12
Swap: 131064 105536 25528
Total: 326980 299244 27736
#

I'm pretty noob at all this, but I'm learning.

Is 10 swappiness a default setting ? compcache.sh has this

/system/xbin/insmod /system/lib/modules/lzo_decompress.ko
/system/xbin/insmod /system/lib/modules/lzo_compress.ko
/system/xbin/insmod /system/lib/modules/xvmalloc.ko
/system/xbin/insmod /system/lib/modules/ramzswap.ko disksize_kb=131072
/system/xbin/swapon /dev/block/ramzswap0
echo "10" > /proc/sys/vm/swappiness


What if I increase the swappiness from 10 to 60 ?

Do my memory numbers look OK ? I'm a bit worried about my free numbers ?

Swappiness at 10 is usually good. The higher the number the more often it will swap. On an sd card this means lower life. When speaking of compcache however, not using the sd card, it means more cpu usage. So you can play with higher numbers but usually between 10 and 60 are good. I wouldnt go above 60 btw.
 
PS4AndroidHacker
Old
#3  
PS4AndroidHacker's Avatar
Senior Member
Thanks Meter 7
Posts: 177
Join Date: Jul 2009
Location: Barberton,Ohio

 
DONATE TO ME
I don't know if this is along the same lines but I had an older app still on my external harddrive from my old T-Mo G1 called Swapper.apk. I moved to my SD Card last night,installed it,set it up and turned on swappiness and set it up. It updated from the android market as well today. my swap size is 256 MB. and had my swappiness set to 100. Is that too much? Everything is running fine and it seemed like it actually gave me a little more space for apps which I like(I tend to run a lot of apps)
My information says this:

Memory:195344 KB
Used: 188420
Free: 6924
Swap:250008 KB
Used:0
Free:250008

I'm kinda a noob at this swappiness stuff.Could you guys please enlighten me a little more please. I'm getting ready to try out Data2Ext2 as well to see what else I can come up with or try out Firerats again. Any info and help is greatly appreciated!

Rooted Droid 3: Fiance' spilled coke on it,retired now.

Rooted Droid 4

Rooted Droid Razr

Rooted HTC Evo 3D 4G(Virgin Mobile) with unlocked bootloader!!

Rooted LG Optimus Slider(Virgin Mobile)
 
chuckhriczko
Old
#4  
Recognized Developer
Thanks Meter 36
Posts: 1,066
Join Date: Aug 2008
Location: Walnutport, PA

 
DONATE TO ME
Quote:
Originally Posted by andy_lowe02 View Post
I don't know if this is along the same lines but I had an older app still on my external harddrive from my old T-Mo G1 called Swapper.apk. I moved to my SD Card last night,installed it,set it up and turned on swappiness and set it up. It updated from the android market as well today. my swap size is 256 MB. and had my swappiness set to 100. Is that too much? Everything is running fine and it seemed like it actually gave me a little more space for apps which I like(I tend to run a lot of apps)
My information says this:

Memory:195344 KB
Used: 188420
Free: 6924
Swap:250008 KB
Used:0
Free:250008

I'm kinda a noob at this swappiness stuff.Could you guys please enlighten me a little more please. I'm getting ready to try out Data2Ext2 as well to see what else I can come up with or try out Firerats again. Any info and help is greatly appreciated!
That should be fine though 64 might be better. I remember with the G1 if you had swappiness set up higher than 64 you got bad performance. Just remember unless you're low on space on your phone a swap file may actually lower performance.
 
PS4AndroidHacker
Old
#5  
PS4AndroidHacker's Avatar
Senior Member
Thanks Meter 7
Posts: 177
Join Date: Jul 2009
Location: Barberton,Ohio

 
DONATE TO ME
Wink Thanks!

Quote:
Originally Posted by chuckhriczko View Post
That should be fine though 64 might be better. I remember with the G1 if you had swappiness set up higher than 64 you got bad performance. Just remember unless you're low on space on your phone a swap file may actually lower performance.
Thank You for your input,I have adjusted it to 64 and it actually is running a bit better and smoother for some reason!!

Rooted Droid 3: Fiance' spilled coke on it,retired now.

Rooted Droid 4

Rooted Droid Razr

Rooted HTC Evo 3D 4G(Virgin Mobile) with unlocked bootloader!!

Rooted LG Optimus Slider(Virgin Mobile)
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...