New: XDA launches forum for app developers. Discuss coding, tools, marketing, and more.
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Vineares
Old
#1  
Senior Member - OP
Thanks Meter 33
Posts: 137
Join Date: Apr 2011
Location: Palm Springs, CA
Default What does Smartass scaling do?

I know this is probably a noob question and has been asked before (i've tried searching but to no avail). How does Smartass V2 go about setting cpu speeds? What is it comparable to?

Thanks in advance.

-Vin

Sent from my HTC Sensation Z710e using xda premium
Sensation w/ CM10 by Bruce

Note 2 w/ Jedi Master v5
 
matury
Old
(Last edited by matury; 11th September 2011 at 08:57 PM.)
#2  
matury's Avatar
Senior Member
Thanks Meter 38
Posts: 108
Join Date: Jun 2010
Location: Miami
Quote:
Originally Posted by Vineares View Post
I know this is probably a noob question and has been asked before (i've tried searching but to no avail). How does Smartass V2 go about setting cpu speeds? What is it comparable to?

Thanks in advance.

-Vin

Sent from my HTC Sensation Z710e using xda premium
SMARTASS GOVERNOR - is based on the concept of the interactive governor.
I have always agreed that in theory the way interactive works - by taking over the idle loop - is very attractive. I have never managed to tweak it so it would behave decently in real life. Smartass is a complete rewrite of the code plus more. I think its a success. Performance is on par with the "old" minmax and I think smartass is a bit more responsive. Battery life is hard to quantify precisely but it does spend much more time at the lower frequencies.
Smartass will also cap the max frequency when sleeping to 245Mhz (or if your min frequency is higher than 245 - why?! - it will cap it to your min frequency). Lets take for example the 600/245 kernel, it will sleep at 245. No need for sleep profiles any more!

Thats the definition of SmarAss Gov, some kernels support smartass other dont, where smarass is not supported your choice is ONDemand its kind of the same with less tweaks
The Following User Says Thank You to matury For This Useful Post: [ Click to Expand ]
 
ltloong
Old
(Last edited by ltloong; 12th September 2011 at 06:31 PM.)
#3  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: Sep 2011
Hi, sorry for an even noobier question, but I just started with all this rooting and custom ROM stuff. How do I go about setting the kernel to use the SmartAss V2 algorithm?

I just flashed this kernel [Kernel]CM7/AOSP[2.6.35.14](v0.1.2)OC~1.78GHz/BFQ/SLQB[Sep-11]. The dev states I cant use setcpu, but then goes on to mention the use of SmartAss V2 among others. I tried to access the Performance tab in cyanogensettings->performance->cpu settings, but it FC. Tried looking around the forums, but can't find anything. Tried posting in that thread, but apparently i'm too much of a noob.

Edit: Kinda went digging through the root explorer, does /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand mean that its using SmartAss?