JacHero 2.7.4r2 Compcache? Help - G1 Q&A, Help & Troubleshooting

So I'm currently running JACHero 2.7.4r2, and I'm still encountering long loads htc screens and lag. I'm aware that compcache starts up automatically at boot and that its supposed to reduce lag ect, and help the rom smoother and works better than Swap linux. How is it that others are having so much success with their roms performance? Am I supposed to tweak the settings of compcache?
I did some research and this is what I got...
Edit the userinit.sh file you're using. Check the proper threads for compcache in development forums.
As far as Compcache vs swap, I've gone back to no swaps, it seems snappier by itself without these methods. It could be a personal preference though depending on what apps/services you use the most.
Click to expand...
Click to collapse
How do I get to the userinit.sh file? and what are good settings to use?
Also on the first page of JACHeroski2.7.4r2 it also says...
**Please do NOT use userinit.sh for Swap it is already done in this build and that will cause you to have swap issues
Click to expand...
Click to collapse
So I'm a bit confused as to what I'm supposed to do here. I'm also running a 32 swap linux partition, should i keep it? Or Remove it?
Thanks

Mine is running really good on linux-swap.... I'm not switching to CompCache until it's 100% ironed out.

So can we enable compcache? My class 6 might not arrive before I go on holiday (Tuesday) and Im thinking linux-swap will be too slow on a class 2 :-S

AdrianK said:
So can we enable compcache? My class 6 might not arrive before I go on holiday (Tuesday) and Im thinking linux-swap will be too slow on a class 2 :-S
Click to expand...
Click to collapse
Yes, you can enable compcache, its already on by default in 2.7.4r2. He said not to use userinit.sh for linux-swap as he already added command into a2sd.sh. So that's automatic as well. You can check if they're working by going into Terminal and typing:
#cat /proc/ramzswap
#free
#cat /proc/swaps

mines working but still is slow, ect. Is it cause its only experimental?

I think i found my issue, i reset overclock to be default so its NOT overclocked anymore, and i see improvements.

h.nocturna said:
Yes, you can enable compcache, its already on by default in 2.7.4r2. He said not to use userinit.sh for linux-swap as he already added command into a2sd.sh. So that's automatic as well. You can check if they're working by going into Terminal and typing:
#cat /proc/ramzswap
#free
#cat /proc/swaps
Click to expand...
Click to collapse
So compache runs automatically? So no need for a swap partition?

If you have compcache and a swap partition, you're going to have problems. Use one or the other.

goldenarmZ said:
If you have compcache and a swap partition, you're going to have problems. Use one or the other.
Click to expand...
Click to collapse
Or you might try using linux-swap as a backing swap for the compcache. If you wanna find out more, just check out the compcache tutorial thread.

So this is why my newest jacheroski lags that much.. But in the tutorial, there's nothing about disabling the compcache. So how can I remove it, or make linux-swap backing up compcache?
edit: I'd rather disable compcache, because I'm too lazy and not willing to create linux-swap in the future again. (gah, if there's something wrong in what I wrote - sorry, but my english isn't perfect. i'm trying ;p)

BolecDST said:
So this is why my newest jacheroski lags that much.. But in the tutorial, there's nothing about disabling the compcache. So how can I remove it, or make linux-swap backing up compcache?
edit: I'd rather disable compcache, because I'm too lazy and not willing to create linux-swap in the future again. (gah, if there's something wrong in what I wrote - sorry, but my english isn't perfect. i'm trying ;p)
Click to expand...
Click to collapse
It's easier to just delete your swap partition.. boot into recovery, enter console with [alt+x] and do this:
Code:
parted /dev/block/mmcblk0 rm 3
Its easy enough to create a new swap partition in the future.. just follow the instructions in the 1st post of the jachero thread again.
I've not looked into compcache so I'm not sure how to disable that.

Related

Running a fully fxnal, speedy, and reliable hero rom

I haven't really kept up with he new roms put out but what are some general specs that I would need 2 run a rom as described above? (i.e. if I need swap, compcache, how to config a good compcache script, amt of swap [swappiness maybe?], and anything else that is necessary) Thanx, any help is wonderful, oh and if I'm missing anything or am just unclear feel free to clear it up
imurpops984 said:
I haven't really kept up with he new roms put out but what are some general specs that I would need 2 run a rom as described above? (i.e. if I need swap, compcache, how to config a good compcache script, amt of swap [swappiness maybe?], and anything else that is necessary) Thanx, any help is wonderful, oh and if I'm missing anything or am just unclear feel free to clear it up
Click to expand...
Click to collapse
It's acutally pretty easy.
On your SDCard set up in the following order:
Fat32
Ext3 (<1gb in size)
Linux Swap (32mb in size)
Pick up JACxHEROv1.2 (this is the hero rom that I am currently running)(Here)
Flash away! If you need further help pm me!
nolimit78 said:
It's acutally pretty easy.
On your SDCard set up in the following order:
Fat32
Ext3 (<1gb in size)
Linux Swap (32mb in size)
Pick up JACxHEROv1.2 (this is the hero rom that I am currently running)(Here)
Flash away! If you need further help pm me!
Click to expand...
Click to collapse
I suggest
Fat32
Ext3 (512mb)
Linux Swap (32mb or 64mb in size) most people liked 64mb a little more than 32.
nephron said:
I suggest
Fat32
Ext3 (512mb)
Linux Swap (32mb or 64mb in size) most people liked 64mb a little more than 32.
Click to expand...
Click to collapse
I've tried 64mb swap and came across a boot loop. Some of the hero roms freak out if it's over 32mb in my experiences.. But again these are the things that I did to get hero running and it's running beautifully.
nolimit78 said:
It's acutally pretty easy.
On your SDCard set up in the following order:
Fat32
Ext3 (<1gb in size)
Linux Swap (32mb in size)
Pick up JACxHEROv1.2 (this is the hero rom that I am currently running)(Here)
Flash away! If you need further help pm me!
Click to expand...
Click to collapse
Doesnt JACxHero 1.2 have a sms issue??? like you miss tons of texts, or does it just apply to mms messages..
Noobyflasher said:
Doesnt JACxHero 1.2 have a sms issue??? like you miss tons of texts, or does it just apply to mms messages..
Click to expand...
Click to collapse
This has been a hit and miss issue. If it does have the mms.apk issue then all you have to do is reformat the EXT3 partition and it goes away.
nolimit78 said:
This has been a hit and miss issue. If it does have the mms.apk issue then all you have to do is reformat the EXT3 partition and it goes away.
Click to expand...
Click to collapse
Are you sure....like reformat before flashing like usual or reformat again after flashing??
Yep I've had the issue myself. It's a problem that the mms.apk is getting corrupt every once in a while. All you have to do is wipe the EXT3 partition and reboot the phone. The ROM will reinstall the mms.apk.
EDIT: I also had a problem with trying to restore some old mms using "Backup for Root Users". I would restore and it would force close on me. I deleted all the messages and it fixed that issue.

Useless Thread[Delete]

Deleted Thread Due to Technical Difficulties
Check
Dream Android Development
Can you change the swap size and the other while in an ROM or do you need to do it in the recovery console and then reflash your ROM?
** Just changed all my setting for swap of 96 MB. ITS SO SUPER FAST ITS UNBELIVEABLE!!!!
I don't think you need to reflash if you can replace the swap partition without affecting the others.
What I mean is I left free space on the end of my SD card so I could experiment with different swap sizes. I've been using 40 on Drizzy Personal V3 but I'm going to try 96 now and see if I notice a difference.
Thank you so much. I gave up on the Hero roms after 1 day due to the lag. Now I am running a 96 mb swap and couldn't be happier!
You should add how to create a swap partition and also how to use Compcache as it could be very helpful. Other than that this looks pretty helpful. I also dont see the need for linux swap in any CM mod since they are very stable and are very smooth. It is an option, but i dont think its at all necessary...
EDIT: Also add how to change swapiness manualy . That would be very helpful...
wow... yha, so like um... well its totaly... like ...you know... ok..? ok
that was like trying to folow a bad paulie shore movie... ( like there were good ones)
+1 for write up on how to set-up and run swap (preferrably for dummies and n00bs)
i updated the thread with how to partition your sd whatever
but
im working on the command for terminal to set swappiness
because i used adb to push a user.conf
learned it~many thanks~and howabout 128M?and how much perfect swapiness value for 96m is?
Ayerwin said:
learned it~many thanks~and howabout 128M?and how much perfect swapiness value for 96m is?
Click to expand...
Click to collapse
128 is not good
i really didnt like its overall performamnce
oh and for 96 i use 60 for swappiness
????
i get the swapper some one asked if you could just change the file size with out reformating ill prolly reformat just to make a clean hero build the other ? is when you set 96 what do u mean by 60 isnt the whole 96 being used?
frost785 said:
i get the swapper some one asked if you could just change the file size with out reformating ill prolly reformat just to make a clean hero build the other ? is when you set 96 what do u mean by 60 isnt the whole 96 being used?
Click to expand...
Click to collapse
Well if you you instsll any build the settings on that build are default "i think"
32 swapiness or 20 cant remember and what want to do is set it to 60 so it wont lag and is faster
cuz if you leave it on 32/96 it gets laggy but with 60/96 its the "sweet spot"
jf4888 said:
128 is not good
i really didnt like its overall performamnce
oh and for 96 i use 60 for swappiness
Click to expand...
Click to collapse
thx sir,i'll try it with v4hero this weekend hah
more ?
ok then i must not get it i know how to change the partition format thats basic but how do i change the swappiness i know they have a program on the market but that doest do it befor start up after is this. sh /system/bin/swap -s i know this is the comand but not sure where to enter it and does it auto give me my default swapness thanks for your help ill keep reading
thanks jf4888, your tutorial helped me more the the other ones.
force closes
I get plenty of force closes with CM's 4.01. I have compcache. My brother did the linux-swap and said it's been so much better. Some people say CM's rom doesn't need swap??? That boggles my mind. I love his roms and get less force closes than JF, but it's far from perfect when force closes are involved.
you might want to include how to update your ext3 to ext4 for those that so desire it. other than that, great guide.
frost785 said:
ok then i must not get it i know how to change the partition format thats basic but how do i change the swappiness i know they have a program on the market but that doest do it befor start up after is this. sh /system/bin/swap -s i know this is the comand but not sure where to enter it and does it auto give me my default swapness thanks for your help ill keep reading
Click to expand...
Click to collapse
i put up the command to set swap through terminal it should work considering i tried it myself
usernam3 said:
thanks jf4888, your tutorial helped me more the the other ones.
Click to expand...
Click to collapse
Here welcome
Oh and for now on start directing people to
The ultimate newb thread
Its a wip(work in progress)
And we hope for it to become a sticky so others
When they have a problem with anything
And I mean anything can go there and have any question answered
install swap partition without formatting whole sd?
Thanks for the great guide. Noob here I already formtted my sd card and have apps2sd etc but would like to create a swap partition (running cyonogen 4.0.1 with ext2, ext3)
Is there a way to create a swap partition without having to format the whole sd and recreating ext2 and 3?

Best settings for CyanogenMod

Hey guys can you suggest me the perfect settings for my 2GB sd?
Do I need to use Swap? (now I have 64 mb of swap)
What kind of EXT it's best? (now I have ext4)
Thank you!
Krishath said:
Hey guys can you suggest me the perfect settings for my 2GB sd?
Do I need to use Swap? (now I have 64 mb of swap)
What kind of EXT it's best? (now I have ext4)
Thank you!
Click to expand...
Click to collapse
I believe ext4 is best, as it's the newest linux filesystem. I'm currently using ext3, because most ROMs don't support ext4, but I'll probably upgrade soon.
As for swap, I also have a 64mb swap partition, but default it isn't utilized. CompCache is already enabled, but I'd also like to know how to enable it.
EDIT: Swap requires a userinit.sh I'm about to try it out...
AdrianK said:
I believe ext4 is best, as it's the newest linux filesystem. I'm currently using ext3, because most ROMs don't support ext4, but I'll probably upgrade soon.
As for swap, I also have a 64mb swap partition, but default it isn't utilized. CompCache is already enabled, but I'd also like to know how to enable it.
EDIT: Swap requires a userinit.sh I'm about to try it out...
Click to expand...
Click to collapse
Yeah but what it's the best setting for this ROM?
EXT4 + SWAP 64MB are alright?
So swap partition isn't used by default? How we "activate" it?
Krishath said:
Yeah but what it's the best setting for this ROM?
EXT4 + SWAP 64MB are alright?
So swap partition isn't used by default? How we "activate" it?
Click to expand...
Click to collapse
Isn't much difference between ext3 and ext4. Cyanogen himself uses ext4, so...
You need to make a custom userinit.sh, follow that guide I posted.
Swap size probably doesn't matter too much, as long as it's not too big. 64 will be fine, any speed increase from a different size will be minimal.
This is how I'm running 4.0.4...
- 32MB Linux Partition - enabled using Swapper.
- 528MHz set ALL the time - enabled using SetCPU(Makes the UI sooo much smoother. Didnt really notice a difference in battery life either).
Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.
Will try it now
AdrianK said:
Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.
Click to expand...
Click to collapse
Can you post your usernit.sh?
AdrianK said:
Using userinit.sh I enabled CompCache with linux swap on a 64 partition and it does seem smoother. Also switched to ext4 now, don't really see a difference.
Click to expand...
Click to collapse
i would suggest you stick to ext3 because it's more commonly used as of right now... also 64mb is a good sized partition, and linux swap is good, but compcache and Backing Swap is a lot better...
prince.siraj said:
i would suggest you stick to ext3 because it's more commonly used as of right now... also 64mb is a good sized partition, and linux swap is good, but compcache and Backing Swap is a lot better...
Click to expand...
Click to collapse
Can I have some "made" files to put in my SD card? I have a "normal" 2GB microsd card with 64 mb of swap... I'd be glad for this
I really dont see anything wrong with ext4, Ive had a look in a few rom release threads and most of them have support for it. I use cyanogen mod 99% of the time anyway...
Krishath said:
Can I have some "made" files to put in my SD card? I have a
"normal" 2GB microsd card with 64 mb of swap... I'd be glad for this
Click to expand...
Click to collapse
Are you talking about userinit.sh and user.conf? Just follow the link I posted earlier, took me about 10 minutes to set up.
for swap dont go over 45mb. i honestly can notice the dif. i us my g1 as a test dummy. ext2,3,4 honestly does not make a dif in my eyes. i have tried all. i use linux mint to partition my sd. which by the way is the easiest and sickest way to partition. just had to put that out there for lin users. root root lol!! but ya. over 45mb makes me feel its really trying to find the swap space. try it and give me your opinion. i have partitioned my sd from recovery mkpartfs, windows partition to linux partition editor. ya. trust me. i currently use 40mb swap. that is what really matters. use at ur comfort and day to day usage. fosho!!

Browser reloads pages unneeded!

Hi folks, my problem is the unneeded page reloads when re-opening a Tab or going back to the , in background running, browser!
like... when having 2 or more tabs open and switching around (or back) it reloads the page! That nervs! Its not needed in my opinion! Same when surfing, going to the "desktop" and back to the running browser, it does the same! anyone has a tip for me ??
enable compache with backing swap
how? im little new with a rooted phone. i've done one or two things, but nothing really special.
tranceonline said:
how? im little new with a rooted phone. i've done one or two things, but nothing really special.
Click to expand...
Click to collapse
partition your sdcard here
get a userinit.sh and user.conf file here
there are detailed instructions in each to get them working
As u see in my signature my sd is paritioned!! So i need these files ok. I'll look when home tonight. Thx alot for now!! I'll post if it worked or not
tranceonline said:
As u see in my signature my sd is paritioned!! So i need these files ok. I'll look when home tonight. Thx alot for now!! I'll post if it worked or not
Click to expand...
Click to collapse
you will need to add a linux-swap partition for backing swap. compache is enabled by default. to do that use the resize command in parted in the recovery console
david1171 said:
you will need to add a linux-swap partition for backing swap. compache is enabled by default. to do that use the resize command in parted in the recovery console
Click to expand...
Click to collapse
i have a swap partition with about 64 MB i think.

Linux-swap Cynanogen?

ok so i made a linux-swap partion on my sd card that is 64mb. Now do i need to activate it somehow? or does cynogen do it for me? i tried to search but couldnt find. also do i need update my radio? it is 2.22.19.26I
You need user.conf and userinit.sh files on your ext partition. There's a guide on how to set that up here.
ok and can i have compcache and linux-swap at the same time? or do they do the same thing? also do i need to make a partion for compcache? and i cant find the htc keyboard in 4.2.3.1, does it come with it?
i thought if you have 4.2.3.1 you didnt have to add the files as it does everything for you? am I missing something.
is compcache and linux swap the same thing? and do we need both?
nahanee20 said:
is compcache and linux swap the same thing? and do we need both?
Click to expand...
Click to collapse
lol, no.
Swap is virtual memory. It uses a seperate partition to act as extra RAM, but it's nowhere near comparable to real RAM.
Compcache compresses what's in the RAM, so there's more space to cram files in. The problem is constantly compressing and decompressing files in RAM puts a heavy strain on the CPU.
so do i need to put the usernit files on or did this rom already do it?
does anyone know how to use the user.config app to do this?
nahanee20 said:
does anyone know how to use the user.config app to do this?
Click to expand...
Click to collapse
You DO NOT have to add any user int files to your sd for swap to work.
Its already rolling if you installed correctly.
go to terminal and use the print command to view your allocated spaces for each ext
Better yet, use the "free" command to see if it is really being used. I am pretty sure Cynanogen does not use a swap partition by default. It needs to be enabled. A easy way to check and setup your swap it to download swapper.
When I type free in the terminal I see 0 for total, used and free swap. I made an ext4 and a 32mb swap partition on my sd card. How do I enable swap on Cyanogen 4.2.5?
beav_35 said:
When I type free in the terminal I see 0 for total, used and free swap. I made an ext4 and a 32mb swap partition on my sd card. How do I enable swap on Cyanogen 4.2.5?
Click to expand...
Click to collapse
search user.conf app on market

Categories

Resources