yashsingh1/xdaforums huggingface dataset:
[Fascinate Android Development] LexusBrian400:
Not sure if this is anyones current kernels or not, so dont slay me if it already is.

This code is courtesy of Nenolod via nenolod.net, I'm just the messenger.

Here goes...

how to improve user performance on android phones

June 28th, 2010

I am not responsible if you mess your phone up. Seriously.

Connect to your phone with adb shell, then:

$ su

# mount -o remount,rw /system

# echo 'kernel.sched_latency_ns = 600000' >> /etc/sysctl.conf

# echo 'kernel.sched_min_granularity_ns = 400000' >> /etc/sysctl.conf

# echo 'kernel.sched_features = 24188' >> /etc/sysctl.conf

# mount -o remount,ro /system

# sysctl -p

The Output should be...

kernel.sched_latency_ns = 600000

kernel.sched_min_granularity_ns = 400000

kernel.sched_features = 24188

# exit

$ exit

Now your phone will behave a lot better. To explain what those settings do:

Changing sched_features to 24188 disables some annoying CFS features (GENTLE_FAIR_SLEEPERS and NORMALIZE_SLEEPERS) that are stupid even on the desktop. The other two crank the timeslice length down to 0.6ms/0.4ms.

What about BFS you say? Well BFS does not appear to perform very well on Android, and Android’s legitimate use of cgroups does not work on BFS. However, the settings that the sysctls above change make CFS behave a lot more like BFS.

What does this mean?

This means that all the hype about JIT in Android 2.2 being the biggest possible source of performance improvement is a load of crap. JIT will improve CPU-bound tasks, but it will not improve the interactivity of the underlying OS, which is what people are really complaining about.

I mean, my (nenolods) Milestone is actually usable now. It’s 550mhz and it has absolutely no problems keeping up with the Incredible’s 1000mhz CPU. Just think about that. The HTC’s CPU is being put to waste due to the way that the scheduler allocates timeslices. If you disable the GENTLE_FAIR_SLEEPERS option, CFS becomes a very good scheduler for android, as it allows for sub-1ms timeslice deadlines.

Dont expect for your benchmarks to change drastically, if at all. However I do notice that my slide-to-unlock is basically instant now. No lag whatsoever there.

I should also mention that I am on JT's 11/13 nonvoodoo kernel. Smooth as butter...
[Fascinate Android Development] adrynalyne:
Our phones don't use cfs.
[Fascinate Android Development] DigitalDementia:
Just ran the steps testing shall ensue ;) so far my phone hasn't blown up or anything.
[Fascinate Android Development] LexusBrian400:
Really? Cuz JT just added this same mod to his git about an hour ago....

https://github.com/jt1134/linux-2.6-fascinate/commit/21406928afe43f1db6acab4931bb8c886f4d04ce

https://github.com/jt1134/linux-2.6-fascinate/commit/485ea2630d6608cf3b1516e0cf2ac19de478dc38

I'm not claiming to know exactly what it changed, but there is no question its running smoother.
[Fascinate Android Development] DigitalDementia:
Does this mean what I just did to my phone is bad? Heh?
[Fascinate Android Development] adrynalyne:
Maybe he added cfs to the kernel.
[Fascinate Android Development] adrynalyne:
Nothing that can't be reverted if need be.
[Fascinate Android Development] em.Tea:
this or you could just add

kernel.sched_latency_ns = 600000

kernel.sched_min_granularity_ns = 400000

kernel.sched_features = 24188

to your existing sysctl.conf and push it to /etc right?

i currently have this:

http://xdaforums.com/showthread.php?t=814463

EDIT:

just added it, rebooted and it does seem a bit smoother. just a bit tho. im running the latest stupidfast kernel
[Fascinate Android Development] wisconsinated:
I don't know what is meant by the phone will run better but I did linpack quadrant and speed pi tests before and after this mod with no change in the averages as well as scrolling through websites that have quite a bit of content is much slower such as scrolling through xda developers site as well as engadget. Its clear from at least a practical standpoint this mod does nothing to make your phone run any better.
[Fascinate Android Development] em.Tea:
its the UI that runs smoother. benchmarks dont change
[Fascinate Android Development] adrynalyne:
Doesnt really matter. If it requires cfs (being that its disabling cfs features), none of y'all are noticing anything but placebo effects.

If it works for other schedulers, great.

However, currently our kernels (Im sure geeknik's too) only have:

anticipatory

deadline (default on JT's latest kernel and maybe earlier)

noop

bfq

cfq

If CFS is in the kernel, its not compiled for it. I'd have to look closer, and I don't have time to boot to Linux at this moment.
[Fascinate Android Development] LexusBrian400:
My E-Penis is obviously no match for your Gargantuan sized E-Penis. Thanks for pointing this out.

Id take the post down, but then you wouldnt be able to **** in the punch bowl anymore (judging by your other posts, you like to do that a lot) so, I'll leave it up for you to keep growing your massive E-Penis.

Thank you sir, thank you for your wonderful and all knowing E-Penis.
[Fascinate Android Development] adrynalyne:
As far as I am concerned I am trying to inform people and have a dialog (note that I said if several times, hoping for discussion). Be a **** all you want but if I am being civil, so should you. Grow up.
[Fascinate Android Development] wisconsinated:
I've never seen penis written so much in a development post
[Fascinate Android Development] LexusBrian400:
I guess you missed the episode I was referring to.

It was a joke, relax.

JT just told me cfs is an option in his kernel, but bfq is enabled by default.
[Fascinate Android Development] adrynalyne:
Which kernel?
[Fascinate Android Development] LexusBrian400:
I'm guessing his latest. But When I ran the code against his newest one, the output wasn't the same as when I ran it against his 11/13 test kernel. which was before he added a variation of this same edit, permanently, to his newest kernel on github.

I apologize about my post earlier. All I ever do is try to help people (you can look through my posts to confirm) and I guess I got a little upset that I posted something that may or may not be helpful to everyone. The code ran through fine, so I assumed it worked. I tried it on other phones/kernels, and it wouldnt work. So when it worked on this one, I decided to post it for others to try out and report back. But its hard to get feedback when someone is clouding the thread all up saying its a placebo effect.

I just wanted others input who have actually tried to run it, not just assume it doesnt work.

Hope that explains...
[Fascinate Android Development] adrynalyne:
Gotta read closely. I said IF it relies on cfs and it's not in the kernel, then it is placebo.

I have verified cfs is not in my kernel, which is dated 11/13.
[Fascinate Android Development] phoenx06:
He made a new one last night 11/15, but I don't not have the know how to check this stuff, lol. Just informing everyone there is a newer one. It's in his rommanager manifest on his website, not sure if it's actually in rommanager yet or not.
[Fascinate Android Development] LexusBrian400:
Yeah, that is EXACTLY when i posted this.. it was kind of eeeery cuz we were both in IRC at the same time. Then he showed me his commits and they were very similar to this edit.

Oh well, either use it or dont. :)

GL guys...
[Galaxy S I9000 General] dadyal:
Hello pleas give me link to orignal jg8 rom for i9000 so i can flash with odin
[Galaxy S I9000 General] sardroid:
Maybe this help:

http://www.samfirmware.com/WEBPROTECT-i9000.htm

Look in Arabic section,rom:I9000JPJG8
[Captivate General] snorkle:
Hello,

i recently installed froyo and i just rooted my phone, but im experiancing a lot of lag after the root. Ive been searching and i have been looking on the forums but what ive gotten so far is to Rom my phone to fix it.. a lot of people keep recommandign different roms saying cog, or vibrant hybrid, etc.. but as i was doing research for people who might have the same problem i saw that someone said something about a lagfix? idk whats a good rom how do i get this lagfix.i dont know if thats in the rom or not but some help would be really nice. any suggestoins or anything, ohh and i NEED to have tethering enabled so if anything takes it away please let me know.

thank you
[Captivate General] abezapata:
Most of the popular roms on the development section have setirons kernel which adds a custom clock work mod recovery to your phone. With that kernel you can install a bunch of different lag fixes depending on what you prefer. I am running mikey's doc rom with the ext 4 lagfix. Check out his rom. All you need is clock work recovery since you're already rooted and on froyo.
[Captivate General] snorkle:
you said you are running this one correct?http://xdaforums.com/showthread.php?t=818030
[Captivate General] abezapata:
Yeah thats the rom I am running. I even got hsupa to work but you don't have to do that of don't want to. Follow the instructions and you will be set. Remeber to back up all your data with titanium backup and take precaution when following the steps.

Fyi if you brick your phone I am not responsible. (Doubt you will though)

Have fun.
[XPERIA X10 Themes and Apps] frost866:
hi guys

I was searching youtube and i saw a video about 2.2.1 froyo on x10.

but something was interesting in this video. this guy had reboot button on his power control widget.

just want to know how can I add it to the widget.?

thank you
[XPERIA X10 Themes and Apps] DangerPanda:
I think there is a reboot option when you use SwitchPro
[XPERIA X10 Themes and Apps] rvictorg:
There is a reboot option with Extended Controls, try that app out it's very useful. I would guess that's the app being used in the video you're talking about.
[XPERIA X10 Themes and Apps] fuusuke:
+1 to extended controls
[Vibrant General] darkside79:
Ok so the Vibrant is not that old but seems like its forgotten already. Well the whole Galaxy S series! Bs since its only like 4 months old. Makes me mad that android devices get left behind so fast just to be replaced so quick. Not everyone can buy a new android device every week. I love my Vibrant but this crap makes me mad! Come on SLOW down with android devices already. Just my 2 cents! And no im not a fan boy. Just wanted to get this off my mind. Thanks a million!
[Vibrant General] anthonys2r:
you don't know much about the field and business of technology do you?
[Vibrant General] kopykatkiller:
The second you buy any electronic device, it is obsolete before you even walk out of the store with it. It's something you have to accept if you make any electronics purchases.
[Vibrant General] DreamcastDC:
Well as long as Samsung support the current Galaxy S line with updates I will be happy, if they don't, I know I won't be buying a Samsung phone again.
[Vibrant General] zosorox:
Even though they keep coming out with new phones doesn't mean yours isn't good. Root that baby, flash a rom and fall in love with your phone all over again.
[Vibrant General] darkside79:
Yea I Know how electronics are.just think its stupid.but love my vibrant. Already rooted.just need offical froyo 2.2 and and I will be happy!
[Vibrant General] testedfishbrain:
Dont wait... Just go to akaskriller.com he already have the real one thanx to eugene
[Vibrant General] ed1380:
cant wait for dual core smartphones with dedicated gpu.

4.5" screen

5+mp camera w/ flash and dedicated camera button

actual hard buttons

and of course ANDROID
[Vibrant General] N8ter:
And of course with the same 13-1500mAh batteries these has, so we'll have like 5000 threads about terrible battery life, etc.

Personally, I don't think there is anything great about the Vibrant outside of the screen. That was Samsung's main selling point. The GPU is good, but there are now apps popping up left and right that are claiming "No Support for Samsung Galaxy S."

Yahoo Messenger for Android now has no Support for Galaxy S, Lol.

Not going to bother buying another Samsung phone anyways, but certainly not going to buy another phone with internals outside of the mainstream.

I personally view them going in another direction IRT hardware has a massive failure. That's like buying a Windows Computer with an AMD Processor, and Microsoft telling you Live Messenger isn't supported on you computer because you got AMD instead of Intel, or Microsoft Office won't run on your computer because you're running Windows Vista instead of 7, or WoW won't run on your computer because you got an ATI instead of an NVidia. Massive failure, IMO.

Apps > Hardware.

Then there's the issue of a bunch of apps simply being incompatible due to the phone only having Android 2.1...

If you expect a Nexus S or whatever to change that, then I dunno what to say. 90% of high end smartphones run Snapdragons and most don't run TouchWiz, so developers will continue to target architectures which are the majority - as they should, cause targetting Samsung's phone and ending up with apps that crash and burn on all those other phones would be utterly retarded.
[Vibrant General] lolcopter:
yeah, this

only to add: i will actively tell every person i know to avoid samsung like the plague

ball's in your court samsung!
[Vibrant General] kolyan:
in a few weeks new Galaxy S/Nexus S coming to Tmobile. maybe it will be dual and 99.9% it will have flash. and the best thing, no more waiting for updates, and it will already come with Android 2.3
[Vibrant General] henreeg:
Got in the site... i figured it out and didn't have to watch that whole video lol
[Vibrant General] jrharvey:
Please tell me your not mad that technology is advancing. Really? Is it such a bad thing? Nobody is forcing you to go out and buy the newest, fastest and greatest device. Personally I think while the vibrant may lack in 2.2 and some other things like flash and a 4.3" screen or HSPA+ it more than makes up for in MONSTER graphics computing, overall speed, a beautiful 4" SAMOLED screen and a camera that takes pretty amazing pics. I did expect better support from samsung considering the phone is across all carriers However I did buy the phone as is so I cant complain too much. it still holds its own against any other device out right now. Plus... The Nexus 2 will basically be a Galaxy S so we should see easy porting to our devices once gingerbread is released and android 3.0.
[Vibrant General] demize!:
Hopefully we'll see some advanced implimentation of battery technology to make these handsets last a while with usage. Cause I don't want to see another ZOMG! I got 47 hours of battery.... with everything off.

Don't blame me, blame my keyboard's autocorrection algorithm.
[Vibrant General] rpope904:
Thing about it is, I thought about this too.. What is out that your phone can't do? It can run all the latest apps, and will even be able to support gingerbread. You could have a 5ghz phone, but what good will it do? The 1/4 second that it would be quicker would not be noticeable.
[Vibrant General] dattaway:
Galaxy S. Maybe the next version will include the P, so it will have a GPS~
[Vibrant General] larryvand:
Slow down??? Hell no! Speed up with new devices already. And the Vibrant is just fine. I use it, it has an awesome screen, and new updates get uploaded on XDA almost on a daily basis. And I love watching new phones appear. It just means that by the time I get around to another upgrade in about 14 months, the phones at that time will be that much better. So keep innovating, companies, and improving and releasing new phones.
[Vibrant General] roguly:
Has anyone noticed the multitude of G2 ads everywhere? Seems like HTC is really pushing the advertising with that phone...i dont understand because i have messed with the phone and i dont think its really that good. any agree?
[Vibrant General] N8ter:
What exactly are you talking about. No one is complaining about technology advancing. People are complaining mostly (and mostly indirectly) about the rate at which hardware/devices are deprecated and forgotten about.

Lots of people come from a long background in using computers, so they are not used to seeing a 1 year old device become "unsupported" for the most part.

Yes, those threads piss me off so much I don't even open battery threads anymore unless it's one I posted in and there's a chance a reply may be directed at me.

Most people with great battery life hardly use the phone. I get 20 hours easy when it sits there in Standby for 18.5 of those hours. Once I start using the phone, the battery is crap. I actually had to uninstall some very useful applications so the battery wouldn't commit suicide.

Yep. Actually noticed the G2 add play 3x tonight. The hinge is crap, but at least the phone works as expected.

A phone doesn't have to be "really that good" to be worth the investment. In many cases, like the Vibrant, when the phone is supposed to be "really that good" it just turns out to be a failed result of overreaching.

I got this phone because it had a lot of storage in it, and it's not like T-Mobile had that many choices when it came to high end smartphones when the Vibrant was released. Some people replying to posts act like the G2, MyTouch4G, HD7, etc. were being sold in stores in July/August.

There was the HD2, and the Vibrant. That's it. The rest of T-Mobile's phones were utter crap.
[Vibrant General] Col.Kernel:
This right here. What should have been a wonderful experience has been badly sullied by non-existent support.

Buying a phone on a 2 year contract and finding out that the phone isn't even properly supported for 4 months should be enough to piss anyone off.
[Vibrant General] testedfishbrain:
Lok did u used it?
[Vibrant General] erickrios:
What kind of support are you looking for? I had my G1 for almost 2 years and once I rooted it I had no need for HTC or TMO for "support".

Same thing with the Vibrant, I've had it for almost 4 months and I never had to rely on Samsung or TMO for any kind of support. Once I rooted it just kept getting better and better.

I just flashed Bionix's 2.2 rom and it's like if I just did an unboxing all over again with a brand new phone.

If you are on this site you obviously know that these devices always get pushed to their limits by the awesome developers. So just stop complaining and do one of two things: 1. Better research before you invest in one of these devices. or 2. Have patience and wait for the latest and greatest rom.
[Vibrant General] redrazr7791:
I really don't think the vibrant is outdated. Yes, I will probably become a member in this forum within the next day or two. Should have never left t-mobile, but that's another story. Still have 14 days to try out the mytouch 4g so I'm in a transitional stage.

Anyways, I gotta agree with Erick. Even if the vibrant isn't supported by T or Samsung, that is the beauty of being on this site. Root, flash and you have yourself a brand new phone.

Oh and by the way...I'm RaZr and I hail from Evo land :D
[Vibrant General] N8ter:
Due to the nature of Android devices, the manufacturers are needed for support even when it comes to the modding community.

We didn't get a decent 3rd party FroYo ROM until Samsung leaked one, for example.

Support is needed, whether you hack your phone or not.

I don't know any modders building device-specific Android ROMs from scratch, and fixing bugs in binary components (drivers, etc.) is a pain in the ass and can often lead to the third party ROMs having feature/functionality regressions on top of their enhancements.

And even then, the number of Android handset owners that go through the trouble to hack their devices up is a solid minority. The majority of users want to be supported.

If Carriers don't like supporting the handsets (or don't want to force manufacturers to do it decently), they are free to drop 2 years contracts and move down to 1 year as the standard contract length.

Now that I think of it, the next carrier I go to (cause I'll be ETFing T-Mobile within 6 months) will need a 1 year contract option, or they aren't getting my family plan.
[Vibrant General] joe.kerwin:
The problem with Android is the resulting people who have become spoiled to this. Remember when you bought a phone, and that was your phone until you bought a new one? Where the messaging app was the messaging app, the phone app was the phone app, and if you didn't like the layout your only option was to buy a different phone that you would have to permanently commit to ITS layout? Now that this whole update thing is more common among phone's and trying to keep them up to par with their competition people are always wanting more. I mean once 2.1 made it to the G1, which was thought to not be possible, low and behold there were numerous people already requesting 2.2, and I guarantee if you were to drop by those forums there are people *****ing about how they wish they could get 2.3 and even 3.0. Since i've converted to android I think it is SO AWESOME that we have a choice to do so much to our phones to our liking, and not only a choice to void the warranty, but that the carriers themselves along with the manufacturers are working to give FREE firmware updates. But now that they offer that, we complain about how fast they do it. Just know that Samsung, HTC, Motorola, or whoever, has the right to still just release a phone and not send any updates at all if they didn't want to, just like the olden days, what you see is what you get. Just be grateful dude, we're finally seeing some 2.2 on our phones and 2.3 isn't even officially released so how behind are we really?