COMPCACHE Working on UD 2.1.0!! [Instructions]

anuraj1

Active Member
Joined
Jan 8, 2010
Messages
1,140
Reaction score
0
Location
AZ
[Updated for UD 2.3.0!] COMPCACHE Working on UD 2.1.0!! [Instructions]

IF YOU ARE ON UD 2.3.0+, CHECK THIS THREAD TO MAKE COMPCACHE WORK: http://www.droidforums.net/forum/ul...pcache-ud-2-3-0-instructions.html#post1039009


What is CompCache? Answer(Post #10 in this thread)>> http://www.droidforums.net/forum/ul...orking-ud-2-1-0-instructions.html#post1032090

This is for the original Droid.

Flash a kernel capable of compcache (like the Slayher kernels found here-use the ones labeled NEW! version 1.6):

Froyo Kernels by slayher - CyanogenMod Forum

Flash this update.zip to install the compcache script AFTER you have flashed a Slayher kernel:

http://android.antbox.org/slayher/slayher_compcache_droid.zip

To make Compcache start on boot, do this:

(If using Nightly Build 11/28+ or UD 2.3.0, the following part may already be done for you. You will still need the above steps for CompCache.)

Use Root Explorer to get to /etc/init.d/20userinit

press the mount R/W button

longpress on 20userinit and choose "open in text editor"

add this line to the bottom of the file (skip a line after the last command):

/system/bin/compcache start
 
You can check the status of compcache by typing "compcache stats" without the quotes in the terminal emulator. If it gives you stats, it is on, if it gets an error, it is off. You can also check in SetCPU under info. The items that start with "Swap" will have numbers associated with them if compcache is on, or will be zero if it is off.

Terminal emulator commands that might come in handy:

(You must type "su" without the quotes once before using these commands)

compcache start

compcache stop

compcache stats

If you want to stop compcache from starting at boot, remove the line you added to the end of 20userinit
 
I kept getting errors in terminal emulator unless I typed 'Su'

Sent from one of those missing Droids
 
ty for the guide compcache running successful here dancedroid
 
I actually wanna know what exactly compcache does in my theory I believe it caches stuff from the cpu to the ram temporarly so things tend to load faster when you go back to them... please don't bash me if I'm wrong

Sent from my Droid using Tapatalk
 
This worked perfectly! It was super easy and took only 2mins. Thanks for posing this!

Sent from my Droid using DroidForums App
 
Yes, this is a command that requires superuser permission, so before typing these commands you'll have to type 'su' once to elevate your permission level in terminal emulator.

I kept getting errors in terminal emulator unless I typed 'Su'

Sent from one of those missing Droids



Sent from my Motorola Droid
 
what is compache

same thing i was thinking..

From XDA-Developers:

You have a finite amount of memory (RAM). When memory is accessed it is virtual addressing, so an application is given a piece of memory, but this isn't real RAM, the operating system manages this and maps it to where the data really is. Because of this system, the OS can give out more memory than is actually available. It can then store some of this memory on a storage medium and "swap" it with some other programmes memory when one is needed and the other isn't. This is how swap works.

With compcache, instead of storing the dormant memory on a hard disk it is compressed and stored in the RAM itself on a virtual disk. This takes up some RAM, but because it is compressed then more RAM is spare than if the data were left in memory as it is. Again this has the effect that more memory space can be handed out than the RAM that is really there.

Because Android manages applications so that when memory run sout it just closes applications running in the background, more applications can reside in the larger virtual memory space than before, making multi-tasking more pleasant and responsive.


Sent from my Motorola Droid
 
For those in question (as I was) the need for compcache - I can see a huge difference in speed while switching between applications - definitely worth the few minutes to install this
 
Back
Top