userinit.sh optimizing for wg build 9 - G1 Q&A, Help & Troubleshooting

Hello, I'm a newb here and have a question about the user.conf config. Here is my specs
G1
Wg build 9 bfs with 10mg hack, (fastest rom I've ever used)
1g sd card class 2, fat32, 400mg ext4, 96mg swap
1.33.2005 haykuro spl
Latest radio
Setpcu overclocked 528
Compcache enabled
I've been experimenting with compcach with backswapp and I can't seem to find the optimal settings for a cm 4.2.8 rom,can someone upload their user.conf file if they have a similar setup as mine? Is there a better way to run this rom ex, swap only. Compcache only...
Any help is appreciated, thank you

medic999 said:
Hello, I'm a newb here and have a question about the user.conf config. Here is my specs
1g sd card class 2, fat32, 400mg ext4, 96mg swap
Setpcu overclocked 528
Click to expand...
Click to collapse
Your not overclocking the cpu, your running it at the rated freq, you see the G1 comes with a Arm-6 528GHz CPu, so thats not overlcocking
This rom doesnt use swap, swapping from a class 2 isnt recc and isnt needed. Im not sure how much performance your expecting the G1 is at its limit, regardless of what you do the ram and Cpu limits what can be done with the phone. THe G1 is pretty close to EOL once devs are able to get their hands on other devices, i reckon you save up to lol. Sorry about the lecture though

oh. ok then, I guess ill kust rm those files and just use the built in compcache then. thx

Related

*Solved* JAC's A2SD or JAC's SLOW SD?

I have a rooted G1
& i have jf's 1.5 build with CM's recovery
But the other day out of being scared that i bricked my g1
i flashed to jf but after i thought i "bricked"
i realized that was normal when installing Hero SPL/Radio
So im think of finally flahing to Hero
but theres two options for me
1. flash he spl/radio again then install JAC's Slow SD hero ROm
2. wait till i get paid next week and buy a new 8gb or 16gb
(does the g1 support 16???) then install Jac's Hero Rom but with Apps2SD
oh and if any body out there with JAC's Slow SD rom does it really differ from the A2sd rom(except 4 the obvious)
An does it give you a decent start off of memory like 70mb internal or something
And since i already installed the hero spl/radio do i need to reflash them in order to install the rom
or can i just go ahead and flash the Slow SD rom
And last does Swapper make a difference on the Slow SD Rom
Thanks in advanced
Because i wont beable to read the replies tonight(maybe)
watchyaself said:
I have a rooted G1
& i have jf's 1.5 build with CM's recovery
But the other day out of being scared that i bricked my g1
i flashed to jf but after i thought i "bricked"
i realized that was normal when installing Hero SPL/Radio
So im think of finally flahing to Hero
but theres two options for me
1. flash he spl/radio again then install JAC's Slow SD hero ROm
2. wait till i get paid next week and buy a new 8gb or 16gb
(does the g1 support 16???) then install Jac's Hero Rom but with Apps2SD
oh and if any body out there with JAC's Slow SD rom does it really differ from the A2sd rom(except 4 the obvious)
An does it give you a decent start off of memory like 70mb internal or something
And since i already installed the hero spl/radio do i need to reflash them in order to install the rom
or can i just go ahead and flash the Slow SD rom
And last does Swapper make a difference on the Slow SD Rom
Thanks in advanced
Because i wont beable to read the replies tonight(maybe)
Click to expand...
Click to collapse
unless you have flashed another spl to your phone you still have the new spl. yes the g1 supports 16gb sdcards. i haven't tried the slow version of hero because i have a class 6 8gb sdcard but you should be able to flash the slow rom just fine. i think it leaves around 30mb of free space but i am not sure and swapper should make it run faster on the slow version set it to 32/30 (swap/swappiness) should give best results. you should invest in a class 6 sdcard though. also if using the swapper app make sure you put the swapfile in /system/sd so it will not corrupt your sdcard when you mount it. if there is anything else i have not covered just ask and i will answer to the best of my ability.
So pretty much since I already flashed the spl/radio from I think it was
Saphire ports or something like I'm able to flash to pretty much any ROM including JAC's Slow SD
With no problems??
And if I flash to JAC's Slow SD ROM today, can I reflash to the A2SD ROM next week when I get a new card
Oh yeah and is there a way to check my spl just to make sure I got the right one?
ohhh and I already know how to check my radio
Go into bootloader (camera+power) SPL:1.33.2005
david1171 said:
unless you have flashed another spl to your phone you still have the new spl. yes the g1 supports 16gb sdcards. i haven't tried the slow version of hero because i have a class 6 8gb sdcard but you should be able to flash the slow rom just fine. i think it leaves around 30mb of free space but i am not sure and swapper should make it run faster on the slow version set it to 32/30 (swap/swappiness) should give best results. you should invest in a class 6 sdcard though. also if using the swapper app make sure you put the swapfile in /system/sd so it will not corrupt your sdcard when you mount it. if there is anything else i have not covered just ask and i will answer to the best of my ability.
Click to expand...
Click to collapse
Well if he goes to JACHero 2.36 he shouldn't use swapper. Just create the linux-swap partition on your sd card and everything is auto from there. You wouldn't want to have the partition and use swapper because that will mess things up. Plus having linux-swap partition compared to swapper makes a huge difference.
supremeteam256 said:
Well if he goes to JACHero 2.36 he shouldn't use swapper. Just create the linux-swap partition on your sd card and everything is auto from there. You wouldn't want to have the partition and use swapper because that will mess things up. Plus having linux-swap partition compared to swapper makes a huge difference.
Click to expand...
Click to collapse
Erm...you mean JACHero 2.63
alritewhadeva said:
Erm...you mean JACHero 2.63
Click to expand...
Click to collapse
Yep my bad. Its to early here at work. lol
So if I create a linux swap patition using paragon partiton ill select "linux swap'
And then flash the rom ??and then after I boot up I won't need to do anything??
Oh and since I will most likely flash to JAC's a2sd rom because I'm going to buy a sdhc card next week
watchyaself said:
So if I create a linux swap patition using paragon partiton ill select "linux swap'
And then flash the rom ??and then after I boot up I won't need to do anything??
Oh and since I will most likely flash to JAC's a2sd rom because I'm going to buy a sdhc card next week
Click to expand...
Click to collapse
JACHero 2.63 will automatically see the linux-swap
Ok well I think I'm going to flash to slow sd for now then next week to a2sd
Oh and just to make sure my radio is 2.22.1.16 or something like that
And my spl is 1.33.2005 so am I all good to flash to jachero
and I have linux swap so I can flash right???
Oh and how would it most likely take to boot for the first time??
Thank you in advance
watchyaself said:
Ok well I think I'm going to flash to slow sd for now then next week to a2sd
Oh and just to make sure my radio is 2.22.1.16 or something like that
And my spl is 1.33.2005 so am I all good to flash to jachero
and I have linux swap so I can flash right???
Oh and how would it most likely take to boot for the first time??
Thank you in advance
Click to expand...
Click to collapse
Yep as long as you got the spl and radio you good. You really don't have to have the linux-swap partition but if you do it will pick it up automatically. And it shouldn't take a long time to boot up the first time.
Thanks man I really appreaciate the help
And from everyone els to
Oh and one last ?
Since I'm going to flash to the slow sd rom
When I reflash next week to a2sd jac with my new 4 gig or 8 I'm not sure do I have to prep the card
With the recovery img
Fat32
Ext3 and the linix swap
And it would turn on fine??
Oh and is ext3 a replacement for ext2
So that meaning all my apps on ext3
Music photos etc.. on fat32
And linux swap is what??
I think I'm confused here
I just want to make sure that next week I don't muck up my g1
watchyaself said:
Thanks man I really appreaciate the help
And from everyone els to
Oh and one last ?
Since I'm going to flash to the slow sd rom
When I reflash next week to a2sd jac with my new 4 gig or 8 I'm not sure do I have to prep the card
With the recovery img
Fat32
Ext3 and the linix swap
And it would turn on fine??
Oh and is ext3 a replacement for ext2
So that meaning all my apps on ext3
Music photos etc.. on fat32
And linux swap is what??
I think I'm confused here
I just want to make sure that next week I don't muck up my g1
Click to expand...
Click to collapse
You won't have to do anything with the recovery img because that is already on your phone. The ext3 is just like the ext2 but suppose to be safer for the card so yes all your apps will be on there and photos, music, videos and everything else on your fat32. The linux-swap is basically like giving your phone more ram. If you need help formating your card I have a tutorial in my sig on how to set everything up.
supremeteam256 said:
You won't have to do anything with the recovery img because that is already on your phone. The ext3 is just like the ext2 but suppose to be safer for the card so yes all your apps will be on there and photos, music, videos and everything else on your fat32. The linux-swap is basically like giving your phone more ram. If you need help formating your card I have a tutorial in my sig on how to set everything up.
Click to expand...
Click to collapse
His tutorial is very good and I noticed a HUGE difference moving from swapper app to linux-swap as its own partition.
Oh how big do i make Linix Swap
Anybody??
32MB is fine for swap.
help with my sdcard
Hey guys I was wondering if any of you can help me out get more space on my phone i formarted my sdcard to ex2 and linux_swap and i still get 70mb plz help I nee dthe space I'm running the latest jachero
it saves to the sd automatically
i think
it doesnt show as merged internal/sd
it just saves to sd
help
is not showing anything it keep making my internal memory smaller
well idk what to say maybe
reflash hero then see if that works
oh and are you sure you didnt download his Slow SD ROM
if you dont know what that is its basically JAChero but with apps to internal memory maybe you did that
because thats what is sounds like

JacHero 2.7.4r2 Compcache? Help

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.

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!!

The dudes cupcake 1.3RC2

does this ROM do Apps2sd automatically as long as you have an ext3 partition?
http://forum.xda-developers.com/showthread.php?t=507151
His changelog says this:
"Modified a2sd script to mount auto but not automatically convert to ext3"
Just out of curiosity, why are you going to that build?
didnt see that part.
it seems to run faster on my 8gb class 6 than cyanogen 4.0.4 did.
should it or should cyanogen be faster? i liked cyanogen but it just seemed to lag more...my friends G1 does the same thing.
also, everytime ive flashed cyanogen's 4.0.4 rom, and i install the wifi tether for root users app, it works, but it will not show up as a secured network, even though on my G1 in the app settings i have it set to be encrypted.
on cupcake 1.3RC2 it shows as a secured network as its supposed to.
He should be releasing a new update to 4.1.99 tonight which apparently will speed it up.
1.3rc2 is WAY outdated. dude's leaked release was about 3x as fast and stable. however, i'd probably consider going with one of cyanogen's roms right now, seeing as Dude has left the game for the time being, so any of his roms are going to be unsupported.
so i should flash cyanogens latest rom (is 4.0.4 still the latest stable) or should i go with 4.1.99 tonite after the update is released as the other guy said?
well, if you're running ok for now, i'd wait around for cyanogen's update tonight.
ill do that.
itll be updated in his thread tonite?
also...i have an 8gb class 6 sd card.
should i run swap? if so, 64mb, 96?
and ext3 vs ext4...i see a few are running 4 but most are running ext3. what are the pros/cons? (what would be the best SD card partition setup for 4.1.99?)
cyanogen has said that he *might* push the update out tonight, but ultimately, hes the only one who knows. as for the swap, running it is completely up to you. I have two g1s that are running 4.1.99 and the swap makes little differenct as far as i can tell. also, ext3 is fine, ext4 (because of its relative instability) is more likely to eat your card faster.
ive heard swap will eat the card faster as well.
i think ill just do fat32 and ext3.
can you explain to me what compcache is/does? i have the files and had it enabled on 4.0.4, but thats been wiped a few days ago so id have to reset it up if i want to use comcache with 4.1.99
ufvj217 said:
ive heard swap will eat the card faster as well.
i think ill just do fat32 and ext3.
can you explain to me what compcache is/does? i have the files and had it enabled on 4.0.4, but thats been wiped a few days ago so id have to reset it up if i want to use comcache with 4.1.99
Click to expand...
Click to collapse
compcache compress data that is going to be stored in ram and is cpu heavy
the result is more ram is available for use at the cost of cpu power and as a result battery life.
thats the simple way of stating it
you think i should run it?
i see in your sig you have fat32, ext3, and swap, then it says you have 32mb for comcache, is that a separate partition, or does that use space from your 96mb swap?
ufvj217 said:
you think i should run it?
i see in your sig you have fat32, ext3, and swap, then it says you have 32mb for comcache, is that a separate partition, or does that use space from your 96mb swap?
Click to expand...
Click to collapse
The compcache is stored on the RAM. The swap partition is on the SDcard and is used as a backing when the RAM fills up or the information cannot be compressed. The swap is generally for when I'm on a Hero ROM, where I use the swap only (since its a little bit faster for me on Hero)
I have a detailed explanation on the performance benefits on Compcache + Swap only, but I don't remember where it is.
Cyanogen uses Compcache by default, so if you don't have a userinit.sh, it will be on. Try it out, and then try it with the script. See what works better for you

Compcache + backing swap in newer CM ROMs

Hello!
I have a G1 using CM 4.1.999, and my microSD is partitioned with an ext4 for apps2sd and a 64MB linux-swap partition.
I am using the user-configurable userinit.sh with user.conf.
I am trying to understand the cc_disksize and cc_memlimit settings.
My understanding is that it used to be that no matter how I set these I will get a compcache of 15% of total RAM with a backing swap using the entire linux_swap partition.
But I am a bit confused as this rom has compcache 0.6, and I am not sure if that limitation still applies after .5x.
If that is the case, I want to confirm... if I set cc_disksize to 0 and set cc_memlimit to 32, I will get a RAM compcache of 32MB, and it will use the entire linux_swap partition as backing swap.
Is this correct?
Thanks for any help you can give me in understanding this!
Sorry for the bump, but I'm hoping a little more clarification might be a little more answerable...
Well i cant give you a definitive answer, but i can point you in the right direction.
If you don't get much help here, you can try PM'ing miketaylor00
he spent considerable amount of time talking about the subject and his user.conf is implemented in JACxROM
you can send him a link to this q&a and maybe he'll help you out. im sure a lot of people would like more clarification
i also believe the defaulting to 15% of ram was fixed in 0.6 compcache
i havent messed with these settings much. i messed around with them when they first came out but stopped after 0.6 and just started using whatever was included default in the rom. swappiness was pretty much the only settings i changed
bradycl_84043 said:
Hello!
I have a G1 using CM 4.1.999, and my microSD is partitioned with an ext4 for apps2sd and a 64MB linux-swap partition.
I am using the user-configurable userinit.sh with user.conf.
I am trying to understand the cc_disksize and cc_memlimit settings.
My understanding is that it used to be that no matter how I set these I will get a compcache of 15% of total RAM with a backing swap using the entire linux_swap partition.
But I am a bit confused as this rom has compcache 0.6, and I am not sure if that limitation still applies after .5x.
If that is the case, I want to confirm... if I set cc_disksize to 0 and set cc_memlimit to 32, I will get a RAM compcache of 32MB, and it will use the entire linux_swap partition as backing swap.
Is this correct?
Thanks for any help you can give me in understanding this!
Click to expand...
Click to collapse
Yes, your assumptions are correct. If you have backing swap enabled it will use the entire swap partition. You can check the stats with this command:
Code:
su
rzscontrol /dev/block/ramzswap0 -s
The disksize value when you have backing swap enabled should always equal the size of the swap partition. I recommend a 32MB swap partition if you are using a ROM that doesn't have BFS and a 64MB swap if it does have BFS.
The memlimit is the amount of uncompressed data that can be used by compcache. It usually compresses down to about 20-25% of the uncompressed size so with a 32MB setting it will only use about 5-8MB of RAM. I've been using a 32-48MB memlimit lately and it works great. If you are on a BFS ROM I would go with 48MB. I believe that CM is using BFS I just wanted to give the info for both in case someone else reads this down the road. There is a lot of info about the stats on this page.
http://code.google.com/p/compcache/wiki/StatsExplained
If you have any more questions shoot me another PM. I hope this helped.

Categories

Resources