I have a couple of questions about linux-swap.
So I'm on the Hero 2 rom and I have 32MB swap partition. I want to go to the JACxHEROSki-v2.0 rom and at the same time make my swap partition bigger before I flash but I'm unsure if it's safe to go bigger than a 32MB.
"DO NOT USE MORE THAN 32MB SWAP!!!"
They placed this right above the example of how to partition your SD card on the JACxHEROSki-v2.0 but "RECOMMENDED VALUES linux-swap partition = 64MB" is what they placed as recommendations!!! So I'm a little confused. Anyone want to show a little experience?
How about this. Re-partition your sdcard with 96mb for linux-swap. Then when you want to change it go to the recovery console and type
Code:
parted /dev/block/mmcblk0
resize 3 x y
print (to verify it worked)
quit
reboot
Substitue in the start and end points for the file system for the x an y respectively. This will give you the ability to play around with up to 96mb of linux-swap space with the ability to change it out whenever you want without repartitioning the entire sdcard.
Personally testing something is always better than having some one tell you what to use.
Gerson2407 said:
I have a couple of questions about linux-swap.
So I'm on the Hero 2 rom and I have 32MB swap partition. I want to go to the JACxHEROSki-v2.0 rom and at the same time make my swap partition bigger before I flash but I'm unsure if it's safe to go bigger than a 32MB.
"DO NOT USE MORE THAN 32MB SWAP!!!"
They placed this right above the example of how to partition your SD card on the JACxHEROSki-v2.0 but "RECOMMENDED VALUES linux-swap partition = 64MB" is what they placed as recommendations!!! So I'm a little confused. Anyone want to show a little experience?
Click to expand...
Click to collapse
if they suggest something then go with it. they said 64mb for 2.1, so go with 64mb. its not hard to understand
Ignore the warning, I don't really understand why it's there. I have run with 64 mb swap and 32 and 62 is significantly faster. I have even heard of swaps in the 100's that is apparently load screen free.
clefky10 said:
Ignore the warning, I don't really understand why it's there. I have run with 64 mb swap and 32 and 62 is significantly faster. I have even heard of swaps in the 100's that is apparently load screen free.
Click to expand...
Click to collapse
well 32 just happens to be more stable in the long
Or if you use what i posted you can change it any time you want and see for yourself which is better.
32, 64, 96, 200+???
I have browsed around various different forums regarding this issue and couldn't find anything definitive. If possible, can I get a developer to answer this question? What size should the linux-swap be to run hero ROM with minimal lag and no "htc" loading screens? I seen one guy say he has 300MB for linux-swap. Is it bad to have your swap set really high? If so, explain. Thanks to anyone with an intelligent answer.
Twisted uses 100mb, I use 128mb. I havent had any long term bad effects and forgot what the loading screen looks like.
Johnny Blaze said:
Twisted uses 100mb, I use 128mb. I havent had any long term bad effects and forgot what the loading screen looks like.
Click to expand...
Click to collapse
Just to experiment, I set my swap last night to 256MB. I know its kinda high, but just wanted to see the performance difference. The funny thing is that I have not seen any "htc" loading screens, but im starting to see weird lag in other areas. One example is when im switching from screen to screen. It was smooth before with 32MB, but I got the "htc" loading screens. I will repartition it for 128MB to see if I can get rid of the "htc" loading screens and lag. I'll reply after my testing...
Rom: JACxHEROSki-v1.8
SDHC: 4GB Class 2 [I know, im too lazy to order the $10 Class 6 4GB]
When running Hero I usually go with 64mb swap with 60 swappiness. A higher swap will not see loading screens ever but will initially lag like crazy. You can go 96 but I personally saw lag from that also. And actually in JACHEROSki-v2.1 thread he says 64mb recommended.
My testing is complete. I'm using 128MB linux-swap and my hero ROM has been flying. No loading screens and no real lag. It looks like 256MB was too much and 32MB is too little. I'm fine with 128MB.
SG_Shadow said:
My testing is complete. I'm using 128MB linux-swap and my hero ROM has been flying. No loading screens and no real lag. It looks like 256MB was too much and 32MB is too little. I'm fine with 128MB.
Click to expand...
Click to collapse
you phone is going to lag later on. its fast for now. but bad later. 32mb is the most stable according to devs.
in all honesty how long does someone keep a hero rom on their phone without flashing another one? if someone wants to use a large linux-swap partition then just every few days or so destroy it and make another one.
besides we want instant gratification not long term benefits (that's just society in general)
david1171 said:
in all honesty how long does someone keep a hero rom on their phone without flashing another one? if someone wants to use a large linux-swap partition then just every few days or so destroy it and make another one.
besides we want instant gratification not long term benefits (that's just society in general)
Click to expand...
Click to collapse
thats your opinion. i just stated a fact.
and i disagree society want instant gratification. some ppl actually think about long term . i.e. getting dream over magic. magic has a longer lifetime than g1 and is a better investment in the long run. some people loook for longevity
this isn't the forum for sociology, but i do mean look at all the "diet" pills, the easy way out, all the fast food places, the i-want-it-now-an-damn-the-consequences crowd. yes there are some people that plan ahead and think of the future, but there are also those that do not. just from things i have witnessed and observed the second outweighs the first.
brian_v3ntura said:
thats your opinion. i just stated a fact.
and i disagree society want instant gratification. some ppl actually think about long term . i.e. getting dream over magic. magic has a longer lifetime than g1 and is a better investment in the long run. some people loook for longevity
Click to expand...
Click to collapse
If you look for "longevity" you would not mod your phone at all. These actions can result in a shorter life span of your device. *FACT* If you want "longevity" stick with the OTA garbage t-mobile pushes you. I don't mean that to be offensive towards you, just t-mobile.
Right now my G1 is still flying with 128MB swap. Running for more than 18HRS with no re-boots, htc loading screens or lag. I will more then likely flash a new hero ROM once one is available.
I have to agree with David and shadow on this one. Get that rom rollen as fast as you can, then wipe ext3 when needed
SG_Shadow said:
If you look for "longevity" you would not mod your phone at all. These actions can result in a shorter life span of your device. *FACT* If you want "longevity" stick with the OTA garbage t-mobile pushes you. I don't mean that to be offensive towards you, just t-mobile.
Right now my G1 is still flying with 128MB swap. Running for more than 18HRS with no re-boots, htc loading screens or lag. I will more then likely flash a new hero ROM once one is available.
Click to expand...
Click to collapse
i disagree if you want longevity ,then dont mod.
the fact that some older roms run better than new roms. i.e. akirahs 1.5.1 runs better than the other akirah roms. or jac 1.6r2a is more stable than 2.1. longevity is a positive. some people actually stick with older roms just becuz of the bugs contained in newer roms.
and thats 18hrs. thats very short to some people as well.
and some ppl prefer stability than speed and vice versa.
why swap at all it can mess up ur sd card!!!
oh and p.s people suck in general its fact. some are good but most of selfish and needy gluttons.lol
jmon777 said:
why swap at all it can mess up ur sd card!!!
oh and p.s people suck in general its fact. some are good but most of selfish and needy gluttons.lol
Click to expand...
Click to collapse
tho swap will shorten your sd card lifetime, it would take a while for it to be destroyed. by then new sd card and technology are out and cheaper.
right now a 4 gig class 6 is 10 bucks. that should last about a year or a little more using swap.
Related
I just got my G1 back from HTC, after they replaced it's motherboard. Last time I tried to install a Hero ROM, I flashed the SPL prior to the radio, and obviously, received a brick.
Right now I'm running Cyanogen Mod 3.6.
My SPL is: 1.33.2005
My Radio is: 2.22.19.26I
I'm not sure about my recovery image.
I still haven't partitioned my SD card for Apps2SD, which I know I have to do.
If someone can give me an overview on how to install Hero, and what's the best ROM, that'd be great. Once you've had a brick, you become pretty paranoid.
My setup is in my sig, and it works pretty well. JacXHero is still a work in progress, I really wouldn't recommend it. JacHero 2.73 runs pretty good if you use linux-swap. I never get lag on Rosie (maybe a little if listening to music) by only using a few widgets and a 64mb linux-swap partition on a class 6 card (transcend are very good, never had any issues).
SO my advice
-Partition the card with Fat32, ext3 (200-500mb), linux-swap (48 or 64mb).
-wipe, then flash JacHero 2.73
Don't try 2.74. That uses comp-cache by deafult and in my experience is *much* slower than 2.73 with linux-swap.
One other thing, do NOT overclock. The rom will automatically scale the cpu, overclocking will just make things slower (and probably drain the battery quicker)
hope that helps
Thanks very much for the advice.
No prob Did that answer everything?
Btw, is 1993 your DOB?
Pretty much, but I do have a problem. I just realized my 8 GB Micro is Class 2.
Ah, yeah linux swap will be pretty useless on a class 2. This is the card I have, never had any problems (it says it's class4, it's actually 6, writes a +8mb/s). I don't know why, but unbranded cards aren't always compatible (learnt that the hard way)
Sorry for all the n00b questions, but what exactly does linux swap do?
It acts as an overflow for the RAM. It can't be compared to RAM because it is so much slower, so it's best to use the fastest memory card you can get. The Hero has 288mb but the dream only has 192 (96mb difference) so swap really helps. Bigger doesn't necessarily mean better. People have tried 128mb partitions and found that their phones worked okay for a while then got too slow to be usable. I found 64 to work the best.
Alright thanks. I'll just purchase a class 6 card from amazon. So JacHero is the best Hero ROM? What about v3?
I would say so, JacxHero just isn't stable enough. Haven't tried Drizzy's v3, as dfar as I'm aware that was also kinda beta, it didn't have a proper change log (as he only released it on twitter) so I don't bother. No complaints with 2.73
AdrianK, I also have a class 4 card but would like to test the write speed of it. What did you use to test yours?
Alright thanks for the information. I'll just buy a class 6 card and partition it like you said.
Also, I just flash 2.73, that's it?
I don't need another radio or SPL?
beav_35 said:
AdrianK, I also have a class 4 card but would like to test the write speed of it. What did you use to test yours?
Click to expand...
Click to collapse
In both Ubuntu and Vista it will tell you the speed at which files are written to the card. So just copy something big (maybe 200mb+) and it should tell you. There are apps that are more accurate, but I don't know the names of any, sorry. I believe there's one mentioned in the SD card class thread in the accessories section.
@nasman1993 Yup just wipe n' flash. All you need is the latest radio and Haykuro's SPL which you already mentioned you have, so you should be good to go.
Thanks, i see now.
I get about 7.7MB/s so will this be fine for apps2sd? Aren't class 6 cards supposed to get 6MB/s?
beav_35 said:
Thanks, i see now.
I get about 7.7MB/s so will this be fine for apps2sd? Aren't class 6 cards supposed to get 6MB/s?
Click to expand...
Click to collapse
class #mb = minimum write speed
Yeah that will be fine, considering most apps are less than a meg, and the largest app I have (Bonsai Blast) is 6.
Great! I thought that I was going to have to buy a Class 6 card.
Thanks
So Im running JACxHEROSkiv1.6r2B and I have a 4gig class 6 sd card. I have the fat32 set up, ext3, and linux swap at 32.
I had a class 4 before, but hearing everyone rant and rave how fast hero runs with a class 6 I went out and bought one. However, hero still seems to be a little laggy and slow..... at least for me. I'll get the htc screen and the loading screen.. I even reverted back to superhero v2 and that was the fastest hero for me, no lag, no loading screens nothing.
But the newer hero's seem to be slow for some reason even with a class 6. Can anyone help, I absolutly love hero, just want it to be fast like how everyone says it is.
Thanks in advance...
hang your head in shame...
the speed of hero roms will vary depending on the phone itself, the way the phone is used, the settings on the phone, the way people use their phone, how they choose to set up their linux-swap size and what they set swappiness to, in short, different people get different results with hero roms, some find them fast, some find them tremendously slow, its most likely a mind over matter type deal... so finally we reach the point of all this.... stop with the why isn't my hero blazing fast threads and how do i make hero make hero faster threads. basically you have 2 options for optimizing your hero build, set it up exactly the way the first post of the thread tells you to, or you can pm the people with amazingly fast hero roms and ask them what they are doing...
wow i was a smart ass and still managed to give a half way decent answer
I did follow ALL directions, i've flashed tons of roms and experienced different things with different builds. Kind of wierd how superhero v2 seems to run faster then the new builds. Even with the echo at 60, some threads say set it to 10, etc. Followed all directions, and still have these results. When a thread says FAST, you kind of expect it. I mean gimme a break going from checking the market to your home screen you get a loading issue, c'mon. There has to be something to alter to fix it. I know im not the only person having slow issues with hero EVEN on a CLASS 6
there was a post i just read where some one set there linux-swap to 96mb and swappiness to 100 and said it ran really fast, that was the newest jacski hero rom version b i think. you could always try that, though whether or not it will suffer future slow downs remains to be seen. I haven't tried a hero rom recently (since 3.6.8.1 was released by cyanogen damn that was a while back) because of the slow downs i would get after a day or so i don't know much other than to try what others are saying works.
though with the way drizzy's new hero v1 is shaping up to look i might have to try it when he drops it. I remember trying jac's 1.4 hero, if you think the hero roms they have now have lag... but alas now i am reminiscing
I agree, his new hero rom is supposed to be the best to date, so we'll see, I just flashed over to cyans 4.0.4 since its fast. I also read about the 96mb and 100swap, but I want to see what happens in a few days with that.
cire253 said:
So Im running JACxHEROSkiv1.6r2B and I have a 4gig class 6 sd card. I have the fat32 set up, ext3, and linux swap at 32.
I had a class 4 before, but hearing everyone rant and rave how fast hero runs with a class 6 I went out and bought one. However, hero still seems to be a little laggy and slow..... at least for me. I'll get the htc screen and the loading screen.. I even reverted back to superhero v2 and that was the fastest hero for me, no lag, no loading screens nothing.
But the newer hero's seem to be slow for some reason even with a class 6. Can anyone help, I absolutly love hero, just want it to be fast like how everyone says it is.
Thanks in advance...
Click to expand...
Click to collapse
I had the same issue with my 32mb swap. I changed it to 96 and saw a HUGE increase in performance. No compcache. Just swap with 60 swappiness and I hardly ever see Loading or the HTC screen.
Here is a thread that discusses this issue:
http://forum.xda-developers.com/showthread.php?t=551643
It is among many, however almost everyone has their own opinion based on their own phone which is of course based on their own needs. The key is playing around with it and seeing what works best for you. Start with the swappiness and then try your swap partition size and see what works best for you.
Then there was a vague tweet from jac about a possible fix for bluetooth, and twisted zero is supposedly getting really close with the led's, also with the htc kernal that was made open.
It really wouldn't suprise to me to see in another month or so a hero rom that competes with stock cupcake, maybe i'm too optimistic though lol
david1171 said:
...maybe i'm too optimistic though lol
Click to expand...
Click to collapse
I think so too.
Binary100100 said:
I think so too.
Click to expand...
Click to collapse
well when you compare jac's 1.4 back when hero threads were getting thrashed left and right to what the hero rom's are now. there is a vast improvement. I remember when I couldn't use a hero rom for more than a few hours without having to go to a stable rom. now my friend has had a rom on his phone a few weeks and hasn't said anything to me about it running horribly so maybe one day...
david1171 said:
well when you compare jac's 1.4 back when hero threads were getting thrashed left and right to what the hero rom's are now. there is a vast improvement. I remember when I couldn't use a hero rom for more than a few hours without having to go to a stable rom. now my friend has had a rom on his phone a few weeks and hasn't said anything to me about it running horribly so maybe one day...
Click to expand...
Click to collapse
I agree that the Hero roms are stable enough for daily use provided that you make certain adjustments, but in regards to the LED and bluetooth I don't think they will be perfect for a long time. The LED will hopefully come soon since Twisted reported getting them to work. But I don't understand why we don't have fully working LED's like that was announce last week. Perhaps it was an accidental fix that couldn't be recreated? Perhaps it was a fluke? Who knows. What I do know is that the LED's still need work even after it was reported to have a fix. As for bluetooth... as far as I know and read it could only be initialized by manual command lines and not from the settings app. Even IF there is a fix... will it be full bluetooth (A2DP) or just enough to pair and use a headset?
The fact that the BT and LED's for Hero builds tend to work with MT3G and not the G1 tells me that it's hardware related and not so much in code or scripts. So if fixes to the LED and BT are developed and perfected then how will the MT3G work after flashed a ROM with these patches included? Will they conflict? Will we need different ROMs for different phones? I'm not trying to be negative or pessimistic but I'm just not seeing full fixes for these issues to be ready, available and implemented this week or next. Maybe in a month or two... but that's as far as my optimisism takes me. But I hope that I'm wrong.
ok so im using RA v1.2.3, i did the partition the way its set up on a 2gb mem. how do i get it to give me a bigger linux swap bcuz my hero seems to b running kinda slow in terms of loading the apps, im running the mlign hero rom
Search for parted.
The Amon RA recovery will give you a 96mb swap partition. This really is the maxium size you should make the partition. Anything bigger and you phone will seem a little faster at first, but will begin to get bogged down. There really is a limitation to how far Hero ROMs can go, considering the hero was 96mb more RAM.
omg dont be stupid and start a thread like this and have it be about the size of your linux-swap. wow i seriously want to like slap you to knock some sense into you.
I have made a swap partition with Amon RA 1.7 which is 256mb and have set up swapper 2. It informs me that swap is working but only 50-90mb of swap at one time.
How do I make it use all/most of it or at least half 128mb of swap?
Your best option is to get rid of the swap.
YOU DON'T NEED SWAP!
All it will do is make your phone SLOW.
If you think otherwise, it is only because you perceive whatever it is that you BELIEVE, which in this case is WRONG.
No but i am using a sense rom(Legend) which absolutly needs it. Many have compared with and without and some roms don't even work with swap (sense roms). It is also better than compcache alone or swap and compcache.
lbcoder said:
Your best option is to get rid of the swap.
YOU DON'T NEED SWAP!
All it will do is make your phone SLOW.
If you think otherwise, it is only because you perceive whatever it is that you BELIEVE, which in this case is WRONG.
Click to expand...
Click to collapse
Abhis right, sense needs it and it's worth it on any Donut.
Abhi_UK said:
No but i am using a sense rom(Legend) which absolutly needs it. Many have compared with and without and some roms don't even work with swap (sense roms). It is also better than compcache alone or swap and compcache.
Click to expand...
Click to collapse
That's kinda odd that all of it's not being used. Look at swapper 2 settings and make sure swpa size is set the same as the amount of your swap partition. However, 256 is WAAAAY overkill even for sense. 128 is MOST you'll EVER need, but 96 is more reasonable.
I am currently a XT720 user, and had rooted and Apps2carded my new great machine (used HD2 android before)... however, i found that my new supermachine is lack of ram (only 45Mb in average...) .Therefore, i am thinking is it possible to use the memory of SD card to build "virtual ram" just like what the guys doing in HD2...
Does any one agree this idea and can give a big hand for me....
If I understand correctly, you're looking for something like swap space? If so, there have been countless attempts at getting this to work. However, all have failed because we lack one simple feature...an unlocked bootloader.
Even if there are other ways to do it, it most likely requires access to the bootloader, and hence we are back to square one. For now, we can only rely on good task managers and overclocking to get some more juice out of our Milestones.
MrP.
Dear MrP.
Understood your answer and thank you very much for your information. The key is to get the right to get into the bootloader...... seems far away....-_-...but I still hope it can become true in the road of android development....
Add
With a 2048Bit RSA encryption? Unlikely...^^
RW-Speed on your SD-Card is to slow to be used as RAM anyway..
m0jo said:
RW-Speed on your SD-Card is to slow to be used as RAM anyway..
Click to expand...
Click to collapse
I had swap setup on my G1 and it made one massive difference anything with a class 6 is fast enough for it and on the milestone would make a massive difference with the Desire HD rom and sense loading.. It's a shame that we can't get it cause it'd make me happy until I get enough cash to get a milestone 2 and hopefully be able to break the bootloader...
avatar_43 said:
I had swap setup on my G1 and it made one massive difference anything with a class 6 is fast enough for it and on the milestone would make a massive difference with the Desire HD rom and sense loading.. It's a shame that we can't get it cause it'd make me happy until I get enough cash to get a milestone 2 and hopefully be able to break the bootloader...
Click to expand...
Click to collapse
i got a class6 and i tested the new DesireHD image on my SdCard, as its a huge 400MB+ image odex'd, and its actually slower although its odex'd for little loading improvements.. so putting everything on the sdcard makes it slow.
using menus and starting apps were unacceptable..
my conclusion is that using internal flash + deodex was much faster, so no good..
but! maybe its just a badly compiled ext2 module we have on milestone..