yashsingh1/xdaforums huggingface dataset:
[Desire HD Android Development] a user:
now here my current settings with some explenations you need to report back your experiences.

first, it is about modifying the file:

/etc/sysctl.conf

todo this you need rootexplorer or similar and mount the directory r/w and edit this file.

whithin this file append the follwoing lines:

kernel.sched_latency_ns=600000
kernel.sched_min_granularity_ns=400000

vm.dirty_ratio=80
vm.dirty_background_ratio=55
vm.vfs_cache_pressure=50
vm.dirty_writeback_centisecs=1200
vm.oom_kill_allocating_task=1

to activate this settings you can either reboot or open a terminal, get root by typing "su" and then type "sysctl -p" reload that file and thus enabling the above settings.

now some explenations so you can play arround with the values a bit if you want.

the first to lines should increase performance. it should reduce lagginess on heavy load. additionally it could reduce batterry usage a bit during phone usage.

then trying this out pls report back if you encounter any oddites using navigation software. this is due to the first line - kernel.sched_latency_ns - where this value has been reduced. i read this could do problems on apps with high constant cpu usage and gps. myself i didn't observed any problems.

this settings increased my quadrant score when using SMARTASS by arround 15-20%. but quadrant score is no adequate messure for usability!

now, the rest of the lines (vm.*) should heavaly reduce io load/traffic which should

1. increase performance when io traffic is high

2. hence reduce battery consumption

3. increase live of your flash memory (internal and sd card) - but in practice this isn't relevent at all anyway ;)

4. should keep phone more fluent on heavy io.

now, don't expect wonders. also the effect on battery life is not during idle or screen off. it is something you may see over several days cause its effect is on running apps under load. so if you just look at your clock from time to time it won't make any difference.

so pls report back after some days what results you have.

p.s. many of the settings i posted are not my idea. currently i'm trying kernel.sched_min_granularity_ns=300000 (or 200000) which reduced my quadrant score, but i think could have different positive effects.

p.p.s. don't change the numbers yourself if you don't know what they do.
[Desire HD Android Development] LeeDroid:
Nice post a user! If you look back a few builds, the 2 kernel entries used to be included but with slightly different vals ;)

Certainly do some testing with the vm MODS :D

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] mach0boi:
Hi Lee, will you release the new kernel tonight? :)
[Desire HD Android Development] LeeDroid:
Eerrrmmm... yes :D

I have undervolted the lower freqs a little more, patched to .29 & deadline I/O shed will be default

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] a user:
good news ;)

about my mods above.... as i already mentioned: i don't have much time, that's why i posted it here so many other can test. also the impact of this modifications is only under special situations, that's way many "eyes" are needed ;)

anyway, one of the most improtant tweaks above is the one with dirty_writeback_centicecs, which i even set to 1500 on my linux machine at home.
[Desire HD Android Development] LeeDroid:
New nutter kernel @ 2016Mhz...

:D

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] mach0boi:
NICE! :D What about the battery life lee? :)
[Desire HD Android Development] mattiadj:
All this oc has real benefits in 3d games??

Sent from future with my superfast desire hd with LeeDrOiD rom!
[Desire HD Android Development] Phily757:
you FREEEEEAAAAAK! :D Gorgeous!!!
[Desire HD Android Development] SupremeBeaver:
tolis would have a nerdgasm is he saw these scores lol.
[Desire HD Android Development] spookamiester:
Is that a 3G toggle in the top left?

If so what app is that?
[Desire HD Android Development] LeeDroid:
3g watchdog, monitors data usage mate

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] LeeDroid:
Lmao! Oh and.. no, that's not using bfs.. standard config with the new build :D

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] melyee:
can I undervolt it so it can be used for daily use?

I undervolt the v2 1.8ghz@1300mV and it's slow...only 1800@quadrant
[Desire HD Android Development] LeeDroid:
You can do as you please, that's why we have the vdd levels interface ;)

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] melyee:
so the low score is not because I undervolt it?
[Desire HD Android Development] LeeDroid:
Yes, lowering voltages will lower performance, I'm forever looking for the perfect vdd for each freq

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] melyee:
how do you test for performance?
[Desire HD Android Development] makbil:
Dude, it's OK to ask but I think you should do a little less asking and a little more reading before engaging in this ROM flashing business. I know this thread has now reached 1000 pages but use the "Search Thread" option for some of the questions you want to ask before actually asking them.

Most of the questions you ask have either been answered before or are irrelevant and depend on personal use.

Just saying...
[Desire HD Android Development] a user:
the voltage has no influence on the performance as long as it runs stable! voltage only helps to stabilize at a given speed frequency. increasing may help stabilizing, reducing destabilizes, but saves a bit battery.

hence find the lowest voltage at which a frequency works stable on your device. but note! : if it is only slightly unstable you need not to observe it emidiatly, not all errors result in a crash or similar. the impact can also be seen as lower performace or other problems (lags etc.) but if you run it long enough you should observe a crash or similar if it is not 100% stable.

but my advise, if this is something i need to explain to you, then better don't touch this yourself. overclocking and overvolting is dangerous. just use lees settings, which he usually keeps safe, and jsut use lees normal kernel, not the nutter one.

p.s. personally i don't see any reason for this overclocking. my device is even underclocket with <800MHz more than fast enough for any app/game i tried. i use it with default settings at max 1036MHz.

p.p.s with lees normal kernel 2.0.5 and my above tweaks, and interactive gomernor i got quadrant score of over 2500 (or was it 2700, not sure) @1497MHz.
[Desire HD Android Development] EmptyArea:
I've come to the conclusion, Nandroid backups do not restore your phone perfectly to as it was before. I really want to swear loud.
[Desire HD Android Development] a user:
something else.... lee, what about the rss feeds on your wiki? thought it would inform of such things like new kernel etc.

will this happen soon? :)
[Desire HD Android Development] EmptyArea:
I got some update through pulse, perhaps a tweet tho.
[Desire HD Android Development] makbil:
I didn't want to get involved in this but I have similar drain to yours, actually a little more 3-4 mA but I have some widgets that could cause this. Having the phone in airplane mode may not totally prevent all services. Any application that is scheduled to access the internet will attempt to do so but will fail and reschedule itself to try again. If you are saying everything works fine in 2.0.3 and not in 2.0.5, I will tell you 2.0.5 does use just a tiny bit more juice.

Let's take a deep breath, have some coffee take a step back and think again.
[Desire HD Android Development] melyee:
I understand these theories because my pc is i5 quadcore@4ghz for daily use, I'm fully understand what I'm doing so I ask Lee two times to confirm it.

Regarding the quadrant score its 2600 with interactive gov.
[Desire HD Android Development] eug:
I just found that out too - I'm stuck on the white HTC screen.
[Desire HD Android Development] makbil:
I will say no to this for the simple reason that everyone has different tastes. Let's keep the ROM stock so we can each apply the customization we want without having to worry about removing customizations we don't like.

All the things you mentioned could be made available as add-ons - hopefully.
[Desire HD Android Development] EmptyArea:
I'm actually all back and fixed:

make sure you haven't change the version of CMW since making the nandroid. After rolling back I got the phone to boot but there were 100s of FCs I then flashed lee's rom again over the top, and a2sd patch and all is right again.
[Desire HD Android Development] a user:
no offense, but you don't. otherwise you wouldn't ask. the voltage has impact on the signal strength that encodes the information within the bus/cpu etc. if the voltage is too low the number of errors of the encoded information increases -> gets unstable.

as long es the voltage is high enough to not cause error of the encoded informations it has obvioulsy absolutely no influence on performance. hence if you did understand this theories, you didn't needed to ask, nor to wait for confirmation from lee.

please, don't get me wrong. there is no shame in not understanding/knowing this. we cannot know everything, and we do not want to. but do yourself a favour and differenciate understanding and having a vague idea about something! this makes life easier - not only for you ;)

edit: ofcourse it is a thing of mankind to make mistakes ;)
[Desire HD Android Development] LeeDroid:
...in my eyes.. stability & performance come hand in hand, hence me saying reduced performance when the voltage is too low, unstable = poor performance ;)

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] a user:
well, if you define performance as an overall messure you are right. but i'm pretty sure melyee ment quadrant score, raw calculation speeds with the word "performance".

but yeah, a device regulary crashing or freezing has a bad performance :P
[Desire HD Android Development] LeeDroid:
Totally agree, like having a Austin Martin db9 with a bent steering rack :eek:

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] a user:
well, got to go now. am keen on your new kernel and a detailed changelog :P
[Desire HD Android Development] A5J4DX:
it IS the BEST if you bothered searching there are ways of removing it but it should stay when releasing the rom as its a gr8 trademark for lee ;)

awesome im gonna download that i dont like fb starting itself
[Desire HD Android Development] A5J4DX:
this is the most pathetic post here i dont care if you want to switch roms but i wouldnt dare stop using something if i got insults and this rom is GREAT and lee shows tremendous support to his users esp since he has a family to look after, get a brain next time before using something and remember this search around before you leave either mike's or someone else's rom pffft
[Desire HD Android Development] LeeDroid:
Got in in that one a bit late dude, leith is still here ;)

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] capychimp:
man people never change...

lee your going to make a kernel based on the next buzz when he is done with it?
[Desire HD Android Development] alchopop:
Deleted :)
[Desire HD Android Development] alchopop:
Deleted .)
[Desire HD Android Development] LeeDroid:
Based on buzz? We shared the initial code and Apache patched to .29 but most of out MODS are shared, me Apache and leppie have a nice lil net going on ;)

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] BigE:
Kernels - personal taste and opinion

OK, Have been playing with 2.0.5 and even Nutter one.. Yes, I see where I can tweak performance with flying colors.. but.. battery life is the issue..

When I have juice, the additional performance is noticed, no doubt, but from an excellent battery drain on 2.0.2 I am down to horrible 20% loss over night (and I am comparing apples to apples, as I have the same configuration/juice defender setting/apps running). For me, this is a show stopper. I do not charge my phone regularly to 100% simply because I am commuting daily, and my cradle in the car is my charger. I normally get 2,3 times per day 30 minutes of charging (yes, I know, it is a battery killer eventually) and when I don't use wall mount charging at all, and I hate cables (like USB to my laptop). So with the original 2.0.2 kernel I get beautiful battery life with my charging style, and performance is great. I can make the phone even faster, but battery life is more important to me..

Lee, thank you for the efforts, and a superb ROM, but if you come up with the next kernel soon (2.0.6 and up) it would be beneficial if you can comment about battery life (at least compared to the previous kernel).

As stated, 2.0.2 is my choice.. I know you may have some other fixes added after 2.0.2 , yet I rather stay with it.

Thanks

BigE
[Desire HD Android Development] capychimp:
ok sounds nice :)
[Desire HD Android Development] EmptyArea:
Try 2.0.3 that should give you better results than 2.0.2, it looks like some people's hardware and setup is handling the new kernels better. I'm expecting 2.0.6 to be another step forward. Addtionally you can adapt the volts on 2.0.5 to see if that helps.
[Desire HD Android Development] EmptyArea:
@Lee (when your not busy cooking or being a husband or dad) edit: or at work, or socializing, or enjoying life in other ways...

I decided to use my Sunday to take a look at gingerbread (the latest nightly), I have to say it's mighty impressive. It was superfast and crisp. The transitions and colour effects we a great touch, (exactly what froyo is missing). All the functionality I played with was there, I experienced some issues setting up, but I overcome most of them, both Google apps recovery and titanium worked well... Sorry back to my point.

Obviously I came back to LeeDrOid, (hence my earlier nandroid pains) and the main (if not only) reason was kernel. There wasn't a smartass gov, so I had a choice betweem awful battery drain or bad performace, which is obviously no choice at all.

Somebody might point me in the direct of a replacement kernel now, but really I just wanted your thoughts about ginger, have you tried it, what scope|bounderies is there to you getting involved, are you already involved?
[Desire HD Android Development] MrYuiM:
+1 to above. I left CM7 after about a month and came running back to LeeDroid, battery was horendous but other than that everything was awesome. The new UI is sliiiiick, and on the modified one by McDV he had a gradient fix. You know when you open up the XDA App, when it loads, the gradient isn't smooth, but on the modified one, it was the only ROM which had smooth gradients.

Not only would you have the most popular Sense ROMs for the Desire and Desire HD, but also probably the most popular AOSP ROMs for Desire and Desire HD.
[Desire HD Android Development] SupremeBeaver:
+100

A stock Gingerbread rom made by Lee would be a match made in heaven.
[Desire HD Android Development] LeeDroid:
I have considered it.. but, is it a justifiable additional work load to take on..mmm

Still not updated the Arabic build and my classic desire users have been left since the start of Jan :eek:

Sent from my LeeDrOiD loaded HTC Desire HD
[Desire HD Android Development] EmptyArea:
To be honest lee, and this is the truth imo. This rom is done. It's bloody excellent man. You could give us this last kernel, spend sometime bringing the arabic build up this level, then do some desire work.

Then start on gingerbread for the DHD. :) :confused: :D

Edit: Posts like the one below prove my point.

(Just start a new thread, the leedroid ginger project and ask for 'incentives' I'm sure your fans will trust and incentivise...)
[Desire HD Android Development] whatabout:
Having my DHD for about a month, I surely may not be the most experienced user but since I've tried all recent ROM and Kernel versions, I admit that with Kernel 2.0.5 I am absolutely impressed! Setting cpu speed @ 1497 (smartass) and having a screen off profile @245 - 422, the overall behaviour is awesome!

More than 34hrs without charging, with 3G always on, Wifi at times, browsing, email, autosync, facebook (set @ 4hrs), music, Runkeeper, GPS and more!!!

I really don't know why I should update to the new kernel Lee, it's the first time that I am not that anxious for the upcoming update?! :)

Thanks a lot for this mate, upcoming donation for you, you deserve it!!! ;)
[Desire HD Android Development] BigE:
Wish I had the time.. I am one of the new era slaves, like Lee, Working 15 hours per day.. and although i know a bit more about under voltage and OC than the average phone user, I am spooked by the fact I can do foolish stuff, I rather let Lee draw the line with under voltage and OC himself..

To make a point - OC makes the total power consumption higher.. so the under voltage tweak compesates for it. True, the components are voltage tolerant and will work with up to 75mV lower than planned, however- I can't afford freeze or errors because of it. if I had two phones, then I may have tried it, but take my phone from me, and I am useless.. :) no contact, no emails, no schedule..
[Desire HD Android Development] A5J4DX:
oh right lol erm..sorry leith?
[Desire HD Android Development] SupremeBeaver:
Fair points mate. Hopefully at some point you'll be able to give it a go.... keep in mind that there would be a ton of people flocking to your rom if you did decide to make one.. there aren't many completely stock Gingerbread roms floating around, only Cyanogen ones.
[Desire HD Android Development] a user:
A leedroid Ginger bread rom would be awesome
[Desire HD Android Development] torsrex:
Just wanted to ask how it's going with the Ubuntu guide. ;)

The 2.0.5 kernel is working like it should for me, waiting for the next big surprises in 2.0.6!
[Desire HD Android Development] melyee:
Yes, you have offended me. Just kidding.

I understand your idea cuz you assume everything ideal and constant, but in fact when you change voltage you also change current, resistant, and temperature.

Think about it, the voltage is to provide current to the units inside the cpu, if theres insufficient current, there will be two outcomes: they produce errors or they shutdown. Former we can easily observe, while later we need more measurement because it maybe the reason the device is slower.

Same thing, if the voltage is too high, it alter temperature and resistant(change with temp), which will cause the processor to generate errors and triggers the CPU threshold to force reduce speed in order to reduce temperature.
[Desire HD Android Development] tolis626:
I did! :eek: :D :eek:

Beaver,do you know me?Are you spying on me?Maybe you are CIA?WTF man?I am scared!My privacy is threatened! :p

Well,what could you expect from a guy who uses 1.8GHz daily on his phone... :rolleyes: (I mean me! ;) )
[Desire HD Android Development] leith51:
Update :

Reflashed 2.0.5 standard installed droidwall as suggested choose a few things to block which I don't use Facebook.apk already removed as I don't use it

And hey presto 3ma and the normal random spike for normal sync and with airplane mode constant 1ma for 30mins no changes also juice plotter reading over 20 hours normal use

Thank you for the droidwall solution it was the solution to my problem

E=Mc2
[Desire HD Android Development] EmptyArea:
whoop whoop whoop!

Leith, What do'u think about LeeDrOiD GBread, it appears Lee needs some pushing/encouragment from us... Like chicks twitting in the nest!
[Desire HD Android Development] mrbubba999:
My opinion for what it's worth, the rom is finished and I'd say the kernel is spot on too.

I'm certainly in no rush to update anymore, the rom is fast, stable and very reliable.

I would love a gingerbread rom with the same attributes, in fact when I get the rom flashing bug again, I'll probably leave leedroid and try a gingerbread rom
[Desire HD Android Development] makbil:
-- Tweet! :D --
[Desire HD Android Development] SupremeBeaver:
lol dood i guess it has something to do with me being greek! :D

But yeah im feeling hungry for a couple of gingerbread cookies ;)
[Desire HD Android Development] leith51:
Gingerbread does sound like the way forward with the magic he worked with this Rom and the kernel (even though its a patch up from 1.32 bloody HTC not releasing source ) so yes I agree it would be nice to see it

E=Mc2
[Desire HD Android Development] tolis626:
Hell yeah,we do want Gingerbread!URAAAA! :D

For those who haven't tried it,I used a random CM7 nightly and @1.5GHz it was faster than froyo is @1.9GHz(the max my device handled!).And don't tell me any bull**** about Sense.Been running AOSP/CM on my Desire for a while now and it is only faster than Sense roms that use Data2ext(not Apps2SD,those who don't know what I'm talkin' about should check the Desire forums.In a short(est) explanation,we use an ext[or generally linux fs] partition to "expand" the data partition,which is way too small on a 512MB nand),which is known to cause spike lag.Although with some tweaks it can make benchmark addicts really happy.It can make quadrant reach 3000 on a 1.1-1.2GHz Desire Classic! :D

Real life performance this way is a lot less than good though...
[Desire HD Android Development] makbil:
Do you also get the feeling that there seems to be more food talk just before a new kernel is released? :p
[Desire HD Android Development] a user:
no! all the different effects of over- and undervoltage just has impact on the probability of errors of the ecnoded information. that's all!

the speed at which the data get's transported is not influenced by voltage, neither by the sideeffects of voltage changes like resistence etc.

your questions are not stupid! oh in contrary. you seem to be intereseted in the details. but it starts to get offtopic ;) but please don't say you did understand this "theories" if you still have to ask this. (i maybe sound like splitting hair, but i really don't mean this in any manner as an offense).

you do not need to trust my words. there is plenty of information about this out there. this realistic changes of voltage has no influence on the computetional performace as long as the voltage is within a stable range.

as a result: allways stick to the lowest voltage your system is stable. but verifying that it is stable is not so trival as it seems.
[Desire HD Android Development] a user:
i'm happy my droidwall suggestion helped, although it wasn't directly directed to your problem. anyway i'm happy you are back in here. you were one of the most helpfull posters here, but also one that can missunderstand others quite fast - you know what i mean :P

nvm, nice to have you in here. i wish you the patience to see things more relaxed.
[Desire HD Android Development] LeeDroid:
Awsome dude! I found another reason for spikes as I started to face them, frikkin Twitter syncing every 15 mins lol

Sent from my LeeDrOiD loaded HTC Desire HD