yashsingh1/xdaforums huggingface dataset:
[myTouch 3G, Magic Android Development] Qancer:
i have a sapphire 32b

did you run the rwsystem script? maybe i should not try the 2.0 =x

thanks for being the first penguin :)

**EDIT

i'm actually running the jac 1.8 on the sapphire right now and performed the script to fix wifi

and everything works perfectly.

what do you mean by broken compcache/linux swap?
[myTouch 3G, Magic Android Development] eatabagel:
Well, 2.0 is really, really speedy. Except I noticed that there was no orientation and no wifi on the 32B by default.

So like in 1.8 you're supposed to do rwsystem and magic and m. But once you do that and it flashes sapphire.img, swapping gets seriously messed up.

After running a "swap -s" I get tons and tons of errors when trying to run compcache. I posted my error messages on the Dream thread for 2.0 (somewhere around page 978 or something).

I reinstalled 2.0 a couple of times and noticed that without the magic script, I get swapping while with the magic script, I do get wifi but all swapping or compcache or backing cache with cc is messed up, won't load.

A couple of other people reported this problem so I know it's not just me... but I don't know if they get theirs as a result of running the magic script for wifi. I know my problems are related to that.
[myTouch 3G, Magic Android Development] Qancer:
well i disable my compcache

did you try changing the user.conf ? thats how i set my swap and etc
[myTouch 3G, Magic Android Development] rfer:
Is any of you getting random reboots? Everything was working great, really speedy and smooth. But suddenly, every time it wakes up takes a load of time and I assume it went to the bootloading again...
[myTouch 3G, Magic Android Development] Qancer:
i used to have that problem with other roms

make sure you have 96 linux swap and 40 swappiness

after those settings i didnt seem to have it

also a class 6 sd card
[myTouch 3G, Magic Android Development] rfer:
Hmm, could be that. I actually changed my swap size from 96 to 64. We'll try with 96 when I get some spare time
[myTouch 3G, Magic Android Development] TrackstarGIBSON:
*update* So I went ahead and put 1.8 on and did the script...only 2 known problems I see is the auto rotate still isn't working and I still gotta wait like 15 or so secs everytime I go home. Running 96 swap wit 40 swappieness on the mytouch and it doesn't seem to be helping. I have a 4gig ext3 card also. Anything else I can do to fix these problems?
[myTouch 3G, Magic Android Development] nycbasic:
It's weird how the accelerometer isn't working or 2.0 and 2.1. I wonder if they're going to fix it.
[myTouch 3G, Magic Android Development] Qancer:
weird i have a 1.8 and auto rotate multi touch

and all the jazz seems to be working for me ...
[myTouch 3G, Magic Android Development] TheArtiszan:
After flashing make sure you do the commands in 2nd post.
[myTouch 3G, Magic Android Development] dills84:
i keep getting HTC loading screens. ended up using the old home screen instead. much faster.

Can someone tell me their user.conf settings that ISN'T getting loading screens?
[myTouch 3G, Magic Android Development] rfer:
Use the commands provided on the second post. I'm playing Teeter right now ;)
[myTouch 3G, Magic Android Development] phillip_hooper:
Heres what I did to make this run on my MT3G with wifi, accelerometer, and no loading screens:

Format SD card with 96MB swap partition

sdparted -efs ext3 -ss 96 -s

Wipe.

Install rom.

Reboot

adbshell/terminal commands:

su
rwsystem
magic
m
reboot

edit user.conf:

compcache_en=0

linux_swap_en=1

scaling_min_freq=384000

adb shell/terminal commands:

echo 40 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;

verify there are no errors in adb shell/terminal:

/system/bin/swap -s
[myTouch 3G, Magic Android Development] dferreira:
Thanks for the instructions but I have some questions:

- Do you reboot the phone after installing the rom, before running the adb shell commands?

I get this if I do them right after installing the rom

and if I perform them after first boot, I get:

- I know that user.conf is in /system/bin/user.conf, but how do you edit it? There is no pico or vi available to be able to edit from the adb shell...

- Do we do all this before loading the ROM from the first time?

- After running the setup wizard, the phone just reboots itself... is this normal??? I never had a ROM that did this!
[myTouch 3G, Magic Android Development] phillip_hooper:
Install the rom, reboot and let the rom fully load (~10 min), then run the adb shell commands.

To edit the user.conf file from your computer open a command prompt and type:

adb pull /system/bin/user.conf user.conf
edit user.conf

<make your changes and save>

Then put the file back on the phone:

adb push user.conf /system/bin/user.conf
[myTouch 3G, Magic Android Development] Qancer:
i THINK

philip_hooper

you have to perform

'adb remount'

before adb pull otherwise you can't pull it. again.. i THINK, don't quote me =x just trying to help out :)
[myTouch 3G, Magic Android Development] phillip_hooper:
I think you got the errors from the magic script because it should be done while in the rom, not from the recovery. The script deletes the source sapphire files after installing them. When you ran the script, the files didn't install, but it still deleted the source after running, so when you ran it again after rebooting, the source files were gone.
[myTouch 3G, Magic Android Development] dferreira:
I'm trying now, with v2.1 and see how it goes. Thanks for your guide!

EDIT:

It works! :) I'm quite happy with this Hero ROM, fast and very responsive. It's a keeper, that's for sure!
[myTouch 3G, Magic Android Development] ujamerstand:
well, I've been trying to get v2.1 to work on a 32a device. After replacing the kernel with cyanogen's Base Kernel v4.1.9.2 (the one with BFS and all) with TigerTael's patches, I was able to get through all the boot screens, and straight into force closes on android.process.acore and other processes-_-

I have logcat of the force closes here:http://www.sendspace.com/file/d31qkl

I'm not quite sure if it is caused by this line:

E/dalvikvm( 1547): acore will have a 24MB heap

If anyone can help, please do!
[myTouch 3G, Magic Android Development] Henchmin:
I'm not quite sure what I am doing wrong...the edits to user.conf don't seem to stick and when I type

echo 40 > /proc/sys/vm/swappiness;
swapon /dev/block/mmcblk0p3;

into ADBshell, it says Device or resource busy. I've tried both in recovery mode and when the phone is on.

What am I doing wrong?

Here is my status

=== Linux Swap status ===

Linux SWAP enabled on /dev/block/mmcblk0p3

Linux Swap: swappiness - 40(system) 40(user)

=== VM status ===

Set VM: page-cluster - 0(system) 0(user)

Set VM: laptop_mode - 0(system) 0(user)

Set VM: dirty_expire_centisecs - 4500(system) 4500(user)

Set VM: dirty_writeback_centisecs - 750(system) 750(user)

Set VM: dirty_background_ratio - 5(system) 5(user)

Set VM: dirty_ratio - 10(system) 10(user)

=== CPU status ===

Set CPU: scaling_min_freq - 128000(system) 128000(user)

Set CPU: scaling_max_freq - 528000(system) 528000(user)

Set CPU: sampling_rate - 2000000(system) 2000000(user)

Set CPU: powersave_bias - 0(system) 0(user)

Set CPU: up_threshold - 45(system) 45(user)
[G1 Q&A, Help & Troubleshooting] sjbayer3:
For the layman?

Please explain how it can help my phone, or if its worth it. Thanks.
[G1 Q&A, Help & Troubleshooting] bmfc187:
http://lmgtfy.com/?q=android+compcache

-BMFC
[G1 Q&A, Help & Troubleshooting] andjohn:
Search dude.

SEARCH. Come on man, you were smart enough to get to XDA, you should be smart enough to find out about Compcache.

http://xdaforums.com/showthread.php?t=558614
[G1 Q&A, Help & Troubleshooting] sjbayer3:
Thanks for the technical information, but as I stated, I am much more interested in layman understanding.

What will it do for my G1?
[G1 Q&A, Help & Troubleshooting] AdamPI:
How layman can you get?

Very roughly 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 runs out 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.
[G1 Q&A, Help & Troubleshooting] Konklone:
"How laymen can you get? Blah blah blah virtual addressing blah blah blah dormant memory blah blah blah"

Come on man. He wants to know if it'll make his phone faster, but if there are any noticeable downsides too. I'd also like to know the answer to that.
[G1 Q&A, Help & Troubleshooting] rp1783:
Wow, you just learned how not to get help on XDA. Congratulations!
[G1 Q&A, Help & Troubleshooting] B-man007:
If you don't want to take the effort to understand what the technology does...you dont need it
[G1 Q&A, Help & Troubleshooting] AdrianK:
RAM have stuff. More RAM make phone faster. Squish stuff in RAM. RAM have more free space. Phone go faster.
[G1 Q&A, Help & Troubleshooting] killyouridols:
As about as "Layman" as it gets! :D
[G1 Q&A, Help & Troubleshooting] pjcforpres:
compcache is a long lost Native American tribe that Android was able to discover and has brought to the forefront of Android users minds!

Layman's terms: compcache is the fastest of all the solutions used to increase "available" memory for our phones active processes, but is the most limited in actually expanding that limit. linux-swap on the SD card is the best solution for MASSIVE expansion needed to run things like Hero ROMs that are larger than the physical memory of our devices.

compache= compressed cache, btw
[G1 Q&A, Help & Troubleshooting] B-man007:
noo compACHE is what you get after reading posts like that :P
[G1 Q&A, Help & Troubleshooting] mt3g:
dope lol I love doing that
[G1 Q&A, Help & Troubleshooting] pjcforpres:
LOL! Ouch! It aches! It aches! I guess that is what I get for typing on my G1.
[G1 Q&A, Help & Troubleshooting] senaia:
best explanation EVER

here's my 2 cents...

take your closet, fill it with clothes... thats ram being filled

put clothes into airlock bag and suck air out, then put in closet, MORE SPACE!! thats compcache :)
[G1 Q&A, Help & Troubleshooting] mr.incredible:
Space is after all, the final frontier...:D
[G1 Q&A, Help & Troubleshooting] nopotential:
Well, I understand it now. :(
[G1 Q&A, Help & Troubleshooting] Ace42:
Well said my friend:D
[G1 Q&A, Help & Troubleshooting] cesarb:
lmfao.... Epic win!!!!
[G1 Q&A, Help & Troubleshooting] marlopainter:
Brilliant analogy! :D
[G1 Q&A, Help & Troubleshooting] mdnghtphnx:
You know what jerks? You didn't originally possess all this knowledge that makes you feel so damn 1337. You learned it somehow, maybe asking people? Sound like a familiar circumstance. I googled exactly what the idiot first responder suggested and guess what? I found this thread. So get off your damn high horse. Be helpful or don't post. YOU AREN'T NEEDED.

RAM have stuff. More RAM make phone faster. Squish stuff in RAM. RAM have more free space. Phone go faster.[/QUOTE]

^ This guy gave the best explanation for what the original guy asked. So thanks to you, sir.
[G1 Q&A, Help & Troubleshooting] cityeyes:
Agreed. Now a once useful google search goes straight to an essentially useless thread (unless you want either an incredibly simplified explanation, or an in-depth explanation of the technical bits, but no real world results).

There are upsides and downsides to using compcache. I'm assuming the OP came here looking for some real life examples as to how it might help them out or mess with their phone.

There's a good article on Compcache on the Cyanogen Wiki, in case anybody stumbles upon this thread randomly in the future:

http://wiki.cyanogenmod.com/index.php/Compcache

It goes over the positives and negatives of using the method. Positives being more ram, negatives being the fact that compressing and decompressing the items stored in your ram might leave you with a slower phone in the long run.

Finally, there's an informative post here on XDA that covers the benefits of compcache as opposed to stock and swap. It's a bit anecdotal, but it's still good to see a comparison:

http://xdaforums.com/showthread.php?t=547752
[G1 Q&A, Help & Troubleshooting] zhourj:
this thread really helps me. I just bought a G1 recently and start to look for good roms. there are quite a few included this compache feature so I really want to know how it works and what it really does, and in the end whether it's really good. I saw some people say bad things about this. after reading this I now have some ideas.

Can I understand this way, that this method can increase your available RAM. However, since it need to compress, then the cpu much need to work on that compressing procedure, so maybe there will be some performance drop? because of it's compressing stuff at the same time?
[G1 Q&A, Help & Troubleshooting] revo420:
Dude. Seriously. Look one freakin' post up...
[G1 Q&A, Help & Troubleshooting] SeEsAw12:
Fire!!!! Me hunger MOARRRRR!!!!!!!1

You come to a forum on the interwebz and expect people to be courteous to a question that has been answered countless times and can easily by found by using the search menu?

Don't google, You're in a website full of amazing information with a search function.

You're just too lazy to look through each response. It's nobody's fault but yours... I know, i've been there.
[G1 Q&A, Help & Troubleshooting] legend221:
Til this day I get a laugh seeing this comment.

Definitely anyone can understand, even my 13 year old brother thought it was funny.

To anyone getting offended by AdrianK's comment please get off your high horse and laugh at yourself..

If someone has to explain to you up to that level maybe custom Roms isn't for you after all.
[G1 Q&A, Help & Troubleshooting] n171n:
Thanks for the explanation man, much appreciated.
[G1 Q&A, Help & Troubleshooting] zhourj:
Hey, I am serious. the one post up me is the very reason that I want to discuss this with you guys. If you have tried different compache/swap settings and have some feelings I'd really like to hear it because I haven't tried them yet.

What I've said is my understanding after read those two recommended links. But clearly that guy further up said something in "layman style" and seems is on the contrary side. (compache make phones run faster, and seems there are people agree)

From basic computer experiences I know more rams can boost your performance but here compache uses cpu resource to compress the ram. Now I tend to believe what on the cyan-wiki was said that swap only is faster, and compache, although gives you more ram, but comsumes some computing power.

I just want somebody who has real experience to confirm with me.

Dude
[G1 Q&A, Help & Troubleshooting] Shrivel:
I've had the opposite experience myself. I find that none is overall faster for me, but when I've used them, a 16 or 32MB Compcache is way faster than my 96MB swap partition on a class 6 SD card. This is on 1.6 btw - I don't run 2.0/2.1.
[G1 Q&A, Help & Troubleshooting] zhourj:
oh, Is it really like when you switch on the phone, it s much faster, but later if you never reboot, it will get slower?
[G1 Q&A, Help & Troubleshooting] mitchellvii:
Thanks man. It's 5:30 am on a Saturday and that made me laugh out loud. SNL Caveman Lawyer Does Android! :D
[G1 Q&A, Help & Troubleshooting] mitchellvii:
Oh no, through his carelessness, the OP has used up valuable space on the Internet. Now there will be no room to post the cure for cancer!

Here's the deal and a message to all the "thread police" who come into a thread pontificating about how "all of this has been discussed a million times before!":

Not everyone cares about this stuff as much as you do. Not everyone wants to spend an hour pouring over 3000 posts in 15 threads to get the answer they are looking for. Many of those people who are "laymen" wouldn't understand 99% of what they are reading anyway. So, the OP asked a question that has been asked and maybe answered before? So what!? This is the Q & A Thread, is it not? It's NOT the Developer Thread. So, if you don't find the OP's question "worthy" of your consideration, f'ing IGNORE IT! Don't come in here making a well-meaning new person feel like an idiot for asking a sincere question. Gawd, seriously.

Any Radial Oncologists in here? What is a Radial Oncologist? That question has been asked a million times - look it up. But I digress - assuming you are not a Radial Oncologist, if I showed you a slide from a biopsy of potentially cancerous tissue, would you be able to point out the cancer cells to me? No, why not? Perhaps because you don't know what cancer cells look like? The same is true of someone coming in here who has a question but no technical background. They cannot search the website and identify the correct answer because they don't know what the correct answer looks like.

I swear some of the people in here remind me of "Computer Guy" on SNL (since I seem to be thinking about SNL comparisons this morning).
[G1 Q&A, Help & Troubleshooting] mistermxda:
Very funny. I love it. Can't get more layman than that.

One thing I can't find out it, what is the optimal amount of compcache is for the droid1. Can anyone help with that?

I'm running BBv.0.6.1, if that helps.

Thanks

MisterMXDA
[G1 Q&A, Help & Troubleshooting] samiusmc:
Too funny. LMFAO!
[G1 Q&A, Help & Troubleshooting] oldpueblo:
Haha I also googled to learn this and hit this thread first. :p
[G1 Q&A, Help & Troubleshooting] Entropy512:
And it also can't get too much closer to being wrong.

Whether compcache helps is heavily dependent on what apps you're running, how many, how much memory YOUR phone has, and how fast its CPU is.

Just like the old Celeron 300A - It had half the cache memory of its big Pentium brother, but it ran the cache faster. So it sucked on many workloads, but happened to rock on workloads that fit into its cache.

Swap, compcache - they're all tradeoffs with no definitive answer that is universally right. Asking for a definitive answer when none exists just pisses people off and is why people have been so hostile on this thread.

It might help your phone go faster, it might not - making a claim like the "layman's answer" above is just plain WRONG because it is NOT guaranteed to make the phone go faster. It might, it might not. The Cyanogenmod wiki entry is the best resource for this and tells it like it is.
[G1 Q&A, Help & Troubleshooting] tmotechsupport:
+1

I also found that the gentleman speaking about non tech people looking for tech answers hit home. As you can see from my name I work for Tmo tech support and Im on here lurking a lot. But I take calls for 10 hours a day from people who dont even bother to read buttons that are clearly labeled 'menu' and ask me where the menu button is.

I think there is a happy middle ground, its difficult to find on a forum though.
[G1 Q&A, Help & Troubleshooting] superwrench:
thanks, excellent info!

Very good info for this noob. Some of the other posts had me laughing to tears!!!
[G1 Q&A, Help & Troubleshooting] PetrichorXFi:
I am also curious when/if compcache increases performance. Zhourj, thanks for stating the potential advantages/disadvantages with mild technical terms despite others giving you crap over asking for confirmation.

Despite this thread being in the G1 thread, I would like to understand compcache well enough to be able to adapt it to other phones/devices in addition to the G1.

I have the following questions regarding compcache

Hypothetical Situation:

Android ExampleDevice1

total ram: 64MB ram

System uses: 24MB

Compcache (25% of total ram): 16MB

App A running: 10Mb

App B is now opening, requesting 10MB RAM

According to the Cyanogenmod Wiki, Compcache "is, in short, virtual swap, setting aside a certain percentage (usually 25%) of your RAM as 'compressed' swap".

1) Does your device show this 25% memory as used, unused, or simply not shown under "running services"? Using ExampleDevice1 prior to Apps A and B opening, would the available ram show:

a) 40MB(Available RAM) = 64(Total RAM)-24(System Used RAM) ?

or

b) 24MB(Available RAM) = 64(Total RAM)-24(System Used RAM)-16MB(compcache) ?

I believe Example1 Device would have 64-24-16-10 = 6MB memory available upon App B's open request

2) Not taking into account memory management killers, etc: Does Compcache compress App A upon A's opening? Or does the system compress App A into compcache upon B's open request?

3) Because compcache uses more CPU cycles to compress the data, does this negate the benefit on slower CPU devices? Clearly this depends on the amount of physical RAM, so I'm asking more focused on... how much does compcache affect CPU utilization? On average 10%? 50%?

4) If a system has enough physical RAM for all apps to be open without using compcache, does it simply NOT compress the data? Logically this seems to make sense as it would increase performance of active apps (as long as no other apps open to consume the remaining available non-compressed RAM)
[G1 Q&A, Help & Troubleshooting] AndDiSa:
In your example there would be still 20MB free (64 - 24 -10 -10), because compcache will occupy *up to* the given amount of memory, but only if needed. If everything fits into the real memory, no compcache will be used.
[G1 Q&A, Help & Troubleshooting] miguel.b:
EPIC....LMAO
[G1 Q&A, Help & Troubleshooting] isisnx:
wanted to know how to disable it
[Touch HD Themes and Apps] targett:
Hi,

Is there any way to extract the folder icons from one ROM and use them for another?

I like the look of one, but the useability of another...

Thanks
[Touch HD Themes and Apps] MrKaon:
sure you can

go to the this reg key

[HKLM]\Security\Shell\StartInfo\Start

find the folder's name which you are looking, inside it there is a string key name Icon, pay attention in value, it is the name and path of the icon file
[Tilt, TyTN II, MDA Vario III Themes and Apps] comprodigy:
I had someone update my at&t tilt, afterwords i can make or receive one call the the speaker makes a slight buzzing sound and i cant hear or talk to anyone on the phone, incoming or outgoing. all the other functions work like there supposed to. :confused:
[Tilt, TyTN II, MDA Vario III Themes and Apps] Mister B:
Might be due to the wrong radio version for the ROM !

really need more info on ROM & radio versions to be sure.

Do a search on it & look into your current ROM version & your current radio version & use the Kaiser wiki to help you:

http://wiki.xda-developers.com/index.php?pagename=HTC_Kaiser
[Tilt, TyTN II, MDA Vario III Themes and Apps] livethemoment2:
Re-flash the Radio using the steps found here: http://xdaforums.com/showthread.php?t=433835

Radios can be found here: http://xdaforums.com/showthread.php?t=393182

If after you're done the problem persist, post more details so we can help.

Good luck.