Football Fans: Download the 2012 Schedule App from Google Play!


Go Back   Android Forums > Android Phones > HTC Desire > Desire - All Things Root



Reply
 
LinkBack Thread Tools
Old July 20th, 2011, 04:44 AM   #1 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Leeds, UK
Posts: 18,380
 
Device(s): HTC Desire Running dGB & Ubuntu 10.10
Thanks: 1,462
Thanked 3,744 Times in 2,865 Posts
Default [INFO] Kernel - HAVS/SVS/CFS/BFS/AXI/UVOC (updated 12th Feb 2012)

I am asked quite regularly what the difference between HAVS, SVS, CFS, BFS and AXI are.

So here are my answers.

Please note, this is not a full blown FAQ, its just some info to help you make the right decision in your kernel choice. It is very basic and will not be 100% technically correct in order for it to make sense. As I sacrificed technical accuracy for layman's basic info, there is no need to correct technical inaccuracies although if you feel something else is inaccurate or needs elaborating on further, please let me know.

Definitions:

  • CPU - Central Processing Unit

  • Mhz - Clock speed / frequency of the CPU (the higher the value the faster and harder the CPU is working)

  • mV - "Power" in MilliVolts (not really power, but it's easier to explain this way without starting a lecture on electricity)

  • OC - Overclock

  • UV - Under-Volt

  • VDD Values- Voltage Drain Drain Values (Values of mV assigned to a MHz)



SVS - Static Voltage Scaling.
HTC's default Kernel is SVS.


Static Voltage Scaling means every CPU frequency uses a set, predefined amount of "power" to sustain that Frequency. The higher the MHz, the higher the mV, meaning the more power is used.

Essentially, SVS uses a table where frequency x = voltage Y

For example, an SVS Kernel's VDD table may look like this:

Code:
128MHz=950mV
245MHz=975mV
384MHz=1000mV
----------------
998MHz=1300MHz
These are not necessarily accurate VDD levels, some frequencies have been left out.. Some kernels allow you to amend these VDD levels (such as Eviollet's ManU kernels.


HAVS - Hybrid Adaptive Voltage Scaling

HAVS is is not a set VDD value for each frequency. Rather, it uses a range. This means that frequency x = voltage y-z, depending on a 3rd element - Temperature.

The VDD table may look like this:


Code:
128MHz=875-950mV
245MHz=900-975mV
384MHz=950-1000mV
----------------
998MHz=1225-1300MHz
As the range starts lower in HAVS than SVS, under some circumstances, the mV will be lower, giving HAVS the potential to have better battery consumption.


BFS - Brain F**k Scheduler

The scheduler essentially handles CPU resource allocation. It controls how the CPU ramps up in frequency and down again when not needed. The BFS version is generally very snappy (possibly more so than CFS) but is an older scheduler. It is designed to minimise latency on low spec'd machines (desktops generally)

Further details here:

http://en.wikipedia.org/wiki/Brain_****_Scheduler


CFS - Completely Fair Scheduler

This particular scheduler is newer than BFS. It is designed to make the best of High end machines (desktops again). In the early days, CFS seemed much laggier than BFS but now there is not too much in it. I am quite happily running a modern CFS kernel and I don't experience any lag issues.

Further details here:

Completely Fair Scheduler - Wikipedia, the free encyclopedia

Please note, CFS and BFS are Process Schedulers, not to be mixed up with CFQ and BFQ which are I/O Schedulers.

AXI - Advanced eXtensible Interface

AXI is an APB
(Advanced Peripheral Bus).This has its own frequency, which when the CPU is at a certain frequency (128MHz usually), the bus frequency is lowered. Lowering of this frequency in turn can lower the CPU frequency as the CPU utilises the bus. On the ManU kernels, the AXI lowers to 14MHz, whcih means the CPU frequency lowers to 14MHz (In theory).

Undervolting

Pretty much all custom Kernels are undervolted. Some may state they are not, when they actually are. To undervolt means to use a kernel that has lower VDD levels than normal. For us this is compared to the HTC Desire stock kernels (where HTC use very generous VDD levels). The Cyanogen kernel states it is not undervolted, but CM in general may not be but perhaps compared to the HTC desire stock kernel, it is.

Overclocking

Overclocking is the process of using a custom kernel along with Set CPU or built in ROM settings, to set the CPU frequency / clock speed higher than standard. HTC Desire default is 998MHz. Anything higher than this is overclocking.

As many kernels are Undervolted, this typically means that even with a higher clock speed than default, it can still be using the same power as standard (or even lower). Overclocking damage comes into play when the frequency is higher than by design and more power is used (generating more heat). As these kernels are not using more mV, this damage is highly unlikely. If you overclock too much, worst case scenario is your phone becomes unstable and reboots under strain.

I/O Schedulers

All Kernels for android contain I/O schedulers. These determine how the kernel controls disk read/writes.

The main ones you may see in a Kernel are:

CFQ - Completely Fair Queuing

Really simply, a process requests read/write of the disks. The Process has a queue created (along with queues for other processes) and the requests are queued. Each queue is given a time slot for the requests to be actioned. Higher priority porcesses demand larger time slots.

CFQ - Wikipedia, the free encyclopedia


BFQ - Budget Fair Queing

BFQ is based on CFQ heavily. It aims to improve some "unfairness" in the CFQ timeslice allocation, by using "Budgets" of sectors instead.

Obviously BFQ is more infant that CFQ, but general consensus is that BFQ is getting better.

CFQ | KernelTrap
NOOP - No-Operation

Dead simple. Puts everything in a queue and merges read / write requests. NOOP works best with solid state drives (FLASH, NAND etc) because it assumes that the hardware controller (etc) will optimise for performance
Deadline

Best for databases. Each request is given a deadline (500ms for Read, 5s for Write) after which time, the request expires. Deadline uses read and write queues, (read being higher priority) and these deadlines to try to fairly distribute the requests for best performance.

Further reading on I/O Scheduling here:
Linux Io Scheduler - Waikato Linux Users Group

This is a work in progress. Please let me know if something needs elaborating on (although not AXI please )***

__________________
"I am only responsible for what I say. Not for what you understand"


Developer of:
[ROM-AOSP]dGB#2.3.5#375MB/data#60MB/system
Desire Root/memory Guides & FAQs
SUroot is offline  
Last edited by SUroot; February 12th, 2012 at 09:53 AM.
Reply With Quote
The Following 16 Users Say Thank You to SUroot For This Useful Post:
AceMathias (July 22nd, 2011), Aggi (October 8th, 2011), bobsuruncle (October 13th, 2011), drvj (March 16th, 2012), ducky1979 (February 13th, 2012), Hadron (July 20th, 2011), kewlbuddy (July 20th, 2011), Mattb81 (November 15th, 2011), puncha1580 (November 17th, 2011), Rastaman-FB (July 20th, 2011), Sak01 (July 25th, 2011), saltire (July 20th, 2011), shauny13 (July 20th, 2011), stupidflanders (August 3rd, 2011), Tyseyh (July 21st, 2011), Usta (July 20th, 2011)
Sponsors
Old July 20th, 2011, 05:03 AM   #2 (permalink)
Senior Member
 
Rastaman-FB's Avatar
 
Join Date: Sep 2009
Location: UK
Posts: 5,973
 
Device(s): i7500@galax0-1.6.3.4 OC@710mhz HTC Desire - never ending modding
Thanks: 111
Thanked 981 Times in 816 Posts
Default

TLDR;

only joking Dan, nice write up
__________________
[ROM][AOSP] dGB |2.3.5 |up to 375MB /data (60MB /system), No2EXT
4EXT Touch Beta
The ultimate Dropbox of usefull downloads (root users) <- CLICK
SUroot|rootSU ROM is made of win
Rastaman-FB is online now  
Reply With Quote
Old July 20th, 2011, 06:10 AM   #3 (permalink)
Member
 
saltire's Avatar
 
Join Date: May 2011
Location: East Lothian
Posts: 264
 
Device(s): HTC Desire - Rooted/S-OFF - dGB (fast, stable, light, NICE!)
Thanks: 48
Thanked 56 Times in 45 Posts
Default

Very useful having this here - I tried to digest some of this over at xda but really just came away with the impression that:

HAVS was good
AXI was good
CFS was maybe the better/safer(?) option

= Manu 1.4 GB kernel with the above
saltire is offline  
Reply With Quote
Old July 20th, 2011, 10:34 AM   #4 (permalink)
Member
 
Join Date: May 2010
Posts: 140
 
Device(s):
Thanks: 46
Thanked 24 Times in 19 Posts
Default

If you could include links to your favourite kernels or at least opinions on them, that would also be very useful for me. Other than that, thanks for clearing up the jargon.
AceMathias is offline  
Reply With Quote
The Following User Says Thank You to AceMathias For This Useful Post:
SUroot (July 20th, 2011)
Old July 20th, 2011, 11:03 AM   #5 (permalink)
Senior Member
 
shauny13's Avatar
 
Join Date: May 2010
Location: WEYMOUTH, Dorset
Posts: 932
 
Device(s): HTC Desire, dGB, S-OFF. HTC One X. (rooted stock)
Thanks: 152
Thanked 200 Times in 181 Posts
Default

Have you swallowed wikipedia Dan? Lol. Another excellent guide. Thankyou.
__________________
ROOTING FAQS
shauny13 is offline  
Reply With Quote
Old July 20th, 2011, 11:29 AM   #6 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Leeds, UK
Posts: 18,380
 
Device(s): HTC Desire Running dGB & Ubuntu 10.10
Thanks: 1,462
Thanked 3,744 Times in 2,865 Posts
Default

I get bored at work. I've read the entire internet
SUroot is offline  
Reply With Quote
The Following 2 Users Say Thank You to SUroot For This Useful Post:
bobsuruncle (October 13th, 2011), subsist (July 22nd, 2011)
Old July 20th, 2011, 01:40 PM   #7 (permalink)
Senior Member
 
ducky1979's Avatar
 
Join Date: Dec 2010
Location: over th'hill
Posts: 878
 
Device(s): HTC Desire rooted S-OFF dGB rom A2sd
Thanks: 41
Thanked 81 Times in 69 Posts
Default

Nice work Dan, can you get me a job at your place? Lol. I'll get you some ciiiiiiigars.
ducky1979 is online now  
Reply With Quote
Old July 21st, 2011, 02:42 AM   #8 (permalink)
Senior Member
 
Tyseyh's Avatar
 
Join Date: Jun 2010
Location: Leeds, UK
Posts: 1,351
 
Device(s): HTC Desire, Sony Xperia S ( Black )
Thanks: 259
Thanked 201 Times in 138 Posts
Default

Should be a sticky for sure.
Show off ;-)
Tyseyh is offline  
Reply With Quote
The Following User Says Thank You to Tyseyh For This Useful Post:
SUroot (July 21st, 2011)
Old July 21st, 2011, 02:48 AM   #9 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Leeds, UK
Posts: 18,380
 
Device(s): HTC Desire Running dGB & Ubuntu 10.10
Thanks: 1,462
Thanked 3,744 Times in 2,865 Posts
Default

Its in the all things root Sticky.

Thanks Damo. Pushed me to 2000 thanks!
SUroot is offline  
Reply With Quote
Old July 25th, 2011, 12:49 PM   #10 (permalink)
Senior Member
 
Tyseyh's Avatar
 
Join Date: Jun 2010
Location: Leeds, UK
Posts: 1,351
 
Device(s): HTC Desire, Sony Xperia S ( Black )
Thanks: 259
Thanked 201 Times in 138 Posts
Default

Quote:
Originally Posted by SUroot View Post
Its in the all things root Sticky.

Thanks Damo. Pushed me to 2000 thanks!


Daaaaayyyyyyuuuuuummmmm!

Any chance of a general guide to change the manu settings? Maybe others are abit like me and have now installed a new kernel but are wanting to change the settings too.
Kinda figures to have the guide here, if any.
Tyseyh is offline  
Last edited by Tyseyh; July 25th, 2011 at 12:56 PM.
Reply With Quote
Sponsors
Old August 3rd, 2011, 08:39 AM   #11 (permalink)
New Member
 
Join Date: Aug 2011
Posts: 4
 
Device(s): htc desire,redux 1.2,
Thanks: 2
Thanked 0 Times in 0 Posts
Default how to install

thanks Suroot for the info...im running redux 1.2 on my desire with the stock kernel...have downloaded manu2.0 havs128cfs....is this stable with redux?..also is it a same install as a rom frm recovery?..do i have to wipe/delete cache??am trying to improve the battery life wid a balanced performance...
stupidflanders is offline  
Reply With Quote
Old August 3rd, 2011, 09:03 AM   #12 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Leeds, UK
Posts: 18,380
 
Device(s): HTC Desire Running dGB & Ubuntu 10.10
Thanks: 1,462
Thanked 3,744 Times in 2,865 Posts
Default

I use 1.4 as personally I found battery life better, but it may act better for you. Give both a try. Flash via recovery as normal. No need to wipe anything, but do backup with nandroid first
SUroot is offline  
Reply With Quote
The Following User Says Thank You to SUroot For This Useful Post:
stupidflanders (August 3rd, 2011)
Old February 12th, 2012, 09:53 AM   #13 (permalink)
ROM Developer
 
SUroot's Avatar
 
Join Date: May 2010
Location: Leeds, UK
Posts: 18,380
 
Device(s): HTC Desire Running dGB & Ubuntu 10.10
Thanks: 1,462
Thanked 3,744 Times in 2,865 Posts
Default

Added I/O Schedulers into info
SUroot is offline  
Reply With Quote
Reply

HTC Desire
Current Rating:
Rate this Phone:

The HTC Desire is one of the latest high end phone by HTC bringing a huge 3.7" inch high quality AMOLED screen for crystal clear viewing, powered by a 1 GHz Qualcomm Snapdragon processor and runs on, you guessed it, Android. We first heard a... Read More


Bookmarks


Go Back   Android Forums > Android Phones > HTC Desire > Desire - All Things Root User CP
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -5. The time now is 01:46 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Custom vBulletin Skins by: Relivo