FORUMS
Remove All Ads from XDA

[Kernel][sense/aosp] MAC Sense v3.7 - 2/15 || D.I.R.T y MAC v4.1.2 - 4/21

1,513 posts
Thanks Meter: 852
 
By MikeC84, Senior Member on 2nd September 2012, 12:54 PM
Thread Closed Email Thread
Team D.I.R.T
Presents




MAC Kernel





HUGE thanks to Agrabren


What is a kernel?

Quote:

In computing, the kernel is the main component of most computer operating systems; it is a bridge between applications and the actual data processing done at the hardware level. The kernel's responsibilities include managing the system's resources (the communication between hardware and software components).




Disclaimer

Code:
#include 
/*
 * Your warranty is now likely void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * spontaneous combustion, or any other host of cosmic penalties
 * which may befall you, your family, or your phone.
 *
 */

Features
• Patched up to Linux 3.0.64
• Linaro -O3 Optimized
• Linaro Topology drivers
• CK1 patchset
• Snapdragon and Linaro optimizations
• Optimized CRC32 algorithm
• Updated zcache and zram
• Google snappy zram compression / decompression - default
• Updated LZO zram compression / decompression
• USB Fast Charge v3.1
• Sweep2Wake with user sysfs - YOU pick start and end points!
• Set default speeds min @ 192 MHz [email protected] 1512 GHz
• CPU OC up to 1.944 GHz
• L2 Cache up to 1566 MHz
• CPU supported unaligned access
• Ziggy's Vdd table interface
• GPU OC 2D @ 266 MHz 3D @ 320MHz with MHzx8 bandwidth
• Glitch free GPU frequency changing
• SLQB Memory Allocator - default
• SLUB optimizations
• Kernel based mpdecision with advanced screen off profile
• Kernel based thermal managment with 3 phase throttling sysfs
• vfp neon optimization
• Dynamic sync control
• Disable GENTLE_FAIR_SLEEPERS
• Lower vfs cache pressure and made configurable
• Tweaked audio buffers for Beats
• Lower display panel voltages
• Lowmemkiller and fugeswap
• Lower camera flash to 5%
• Lower WiFi voltage
• Allow low WiFi signals to be seen
• USB OTG
• USB headset detection
• Enable dynamic LED brightness
• AC charging for unknown chargers
• Prevent aliased request from starving I/O
• Optimized ARM RWSEM algorithm
• Use glibc version of lib: script
• Use glibc version of lib: memcopy
• Use git implementation of SHA-1
• Optimized AES and SHA1 routines
• Generic xchg-based implementation for ARMv6+
• Increase min /max readahead buffers

Governors
• Smartass v2 w/sysfs
• LagFree w/sysfs
• BadAss with GPU control
• Wheatley

I/O Schedulers
• Noop
• Deadline - Tweaked for better performance on android
• Simple (SIO) - Tweaked for better performance on android
• BFQ v6
• V(R)
• ROW v4 - Confirmed Working!!!!
• Zen

Install
S-OFF or you will most likely run into issues
• Boot to recovery
• Wipe cache
• Flash kernel
• Done

Download
[CODE]v 3.7

• Patch Linux up to 3.0.64



Source
https://bitbucket.org/MikeC84/shoote...3.0.16-3a7b522

Special Thanks
Hero_Over - For the inspiration to make something as good as Baked Snacks.
Agrabren - For all the QUALITY aosp bases and help along hte way. Probably wouldnt have this here today without him!
Coolexe - For the high quality rom I use for testing and for help along the way.
Cjoliver - For providing us with all the extra tweaks and latest linux patches.
Dodava - For kernel based thermal management
Dropzeroc - For making astounding roms.
Mazda - For making some really nice graphics for my thread
Team D.I.R.T. - For being awesome and inviting me into the crew.
Chad G - For porting sweep2wake to atmel touchscreens, GPU OC.
Chad0989 - For making an amazing mod, USB Fast Charge.
showp1984 - For sweep2wake, badass governor, kernel based mpdecision and just being a badass when it comes to android kernels!
faux123 - For all the stuff I used from his kernels.
ryrzy - Also for some stuff I used from his kernel.
yank555 - For keeping us updated with USB Fast Charge.


The Following 35 Users Say Thank You to MikeC84 For This Useful Post: [ View ] Gift MikeC84 Ad-Free
2nd September 2012, 12:54 PM |#2  
MikeC84's Avatar
OP Senior Member
Flag Tucson
Thanks Meter: 852
 
Donate to Me
More
Team D.I.R.T
Presents




D.I.R.T y MAC Kernel




HUGE thanks to Agrabren and Evervolv


What is a kernel?

Quote:

In computing, the kernel is the main component of most computer operating systems; it is a bridge between applications and the actual data processing done at the hardware level. The kernel's responsibilities include managing the system's resources (the communication between hardware and software components).




Disclaimer


Code:
#include 
/*
 * Your warranty is now likely void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * spontaneous combustion, or any other host of cosmic penalties
 * which may befall you, your family, or your phone.
 *
 */

Features
• Patched up to Linux 3.0.74
• Linaro -O3 optimized also with funroll-loops
• Linaro Topology drivers
• CK1 patchset
• Snapdragon and Linaro compiler optimizations
• Optimized CRC32 algorithm
• Updated zcache and zram
• Google snappy zram compression /decompression - default
• Updated LZO zram compression / decompression
• USB Fast Charge v3.1
• Sweep2Wake with user sysfs - YOU pick start and end points!
• Set default speeds - min @ 192MHz - max @ 1512GHz
• CPU OC up to 1.7GHz
• CPU uV - 700000 - 1450000
• L2 Cache OC up to 1602MHz
• CPU supported unaligned access
• Ziggy's Vdd table interface
• GPU OC 2D @ 266 MHz 3D @ 320MHz with MHzx8 bandwidth
• Glitch free GPU frequency changing
• SLQB Memory Allocator - default
• SLUB optimizations
• Kernel based mpdecision with advanced screen off profile
• Kernel based thermal managment with 3 phase throttling sysfs
• vfp neon optimization
• aosp WiFi - bcmdhd
• WiFi = FAST
• Dynamic fsync v1.1
• Disable GENTLE_FAIR_SLEEPERS
• Lower vfs cache pressure and made configurable
• Lower display panel voltages with fix from Anryl
• Lowmemkiller and fugeswap
• Lower camera flash to 5%
• USB OTG
• USB headset detection
• Enable dynamic LED brightness
• AC charging for unknown chargers
• Prevent aliased request from starving I/O
• Optimized ARM RWSEM algorithm
• Use glibc version of lib: script
• Use glibc version of lib: memcopy
• Use git implementation of SHA-1
• Optimized AES and SHA1 routines
• Generic xchg-based implementation for ARMv6+
• Increase min /max readahead buffers
• CPU power driver
• Adjust ramdisk address to allow larger zImage - zImage currently booting at 5.1mb

Governors
• Smartass v2 w/sysfs
• LagFree w/sysfs
• BadAss with 2 phase and GPU control
• Wheatley

I/O Schedulers
• Noop
• Deadline - Tweaked for better performance on android
• Simple (SIO) - Tweaked for better performance on android
• BFQ v6 - Tweaked to perform better on flash devices
• ROW

Install
MUST be S-OFF
• Boot to recovery
• Wipe cache
• Flash kernel
• Done

Download
Code:
AOSP - v4.1.2



• Move msm-buspm-dev.ko and kineto_gen.ko back to kernel.
Source
https://bitbucket.org/MikeC84/shoote...3.0.16-3a7b522

Special Thnaks
Hero_Over - For the inspiration to make something as good as Baked Snacks.
Agrabren - For all the QUALITY bases, probably wouldnt have this here today without him!
Coolexe - For the high quality rom I use for testing and for help along the way.
Cjoliver - For providing us with all the extra tweaks and latest linux patches.
Dodava - For kernel based thermal management
Dropzeroc - For making astounding roms.
Mazda - For making some really nice graphics for my thread
Team D.I.R.T. - For being awesome and inviting me into the crew. Also for the base to this.
Chad G - For porting sweep2wake to atmel touchscreens, GPU OC.
Chad0989 - For making an amazing mod, USB Fast Charge.
showp1984 - For sweep2wake, badass governor, kernel based mpdecision and just being a badass when it comes to android kernels!
faux123 - For all the stuff I used from his kernels.
ryrzy - Also for some stuff I used from his kernel.
yank555 - For keeping us updated with USB Fast Charge.
The Following 11 Users Say Thank You to MikeC84 For This Useful Post: [ View ] Gift MikeC84 Ad-Free
2nd September 2012, 12:55 PM |#3  
MikeC84's Avatar
OP Senior Member
Flag Tucson
Thanks Meter: 852
 
Donate to Me
More
Bugs

Sense
If you get a blank screen on wake up set min CPU speed to 384

AOSP
If you get a blank screen on wake up set min CPU speed to 384

Change Log

SENSE

Code:
Coming soon

 v4.1

• Rebase off latest kernel source
• Patched to Linux 3.0.74
• Lower CPU and uV tables - OC -> 1.7GHz - uV -> 700000 - 14500000 - (showp1984)
• Add extra L2 cache OC step and make use of it - 1566MHz -> 1620MHz
• Update ROW from upstream no longer a backport - (caf)
• Ondemand tweaks / fixes
- cpufreq : Fix crash input event handler on governor switch
• Interactive tweaks / fixes
- cpufreq: interactive: fix possible Division by zero
- cpufreq: interactive: default timer 10ms, maxspeed load 95%
- power: cpufreq: interactive: use default sample time 20ms
• BFQ tweaks / fixes
- Tweak to be more flash memory friendly - (fransiscifranco)
• ROW tweaks / fixes / patches
- block: ROW: Correct minimum values of ROW tunable parameters
- block: row: Add some debug information on ROW queues
- block: row: fix sysfs functions - idle_time conversion
• Dynamic fsync v1.1 - (faux123)
• Misc patches / fixes
- ARM: net: JIT compiler for packet filters
- ARM: entry: no need to increase preempt count for IRQ handlers
- SCHEDULER: Autogroup patch group by current user android UID instead of task ID
- sched: Cleanup pre_schedule_rt
- sched: Remove unlikely() from rt_policy() in sched.c
- sched: Remove unlikely() from ttwu_post_activation
- Add support for hotplug operations to take secondary CPUs online/offline when CONFIG_PM is turned off
- msm: pm-8x60: Move hotplug related code out of pm code
- msm: pm-8x60: Add clock debug to idle code path
- msm: msm_xo: Set the correct bits for XO_CORE on 8660
- usb: otg: Temporarily grab wakelock on charger and disconnect events
- msm: kgsl: convert sg allocation back to kmalloc
• Defconfig edits
- enable some stuff
• Makefile edits
- enable -O3 for hostcflags
- add -fstrict-aliasing
- funroll-loop optimization
• Adjust ramdisk to allow larger zImage
• Update CU topology, was using older version - (Vincent Guittot)
• cpupower drivers - (Vincent Guittot)
• Move thermal sysfs to kconfig
• Edit updater script with new ascii image

2/15/2013 - v3.7Download

   • Patched up to Linux 3.0.64

2/11/2013 - v3.6Download

   • Patch Linux up to 3.0.63
   • BFQ v6

2/4/2013 - v3.5http://devhost.xda-developers.com/4s3

   • Patch Linux up to 3.0.62
   • Update BFQ to v5r1
   • Update ROW to v4
   • Backport ROW to 3.0 - (faux123)
   • Update Linaro toolchain

1/15/2013 - v3.3http://devhost.xda-developers.com/ETp

   • Patched up to Linux 3.0.58
   • Added Zen I/O Scheduler

12/19/2012 - v3.2http://devhost.xda-developers.com/Cym

   • Patched up to Linux 3.0.57
   • Update Linaro tool chain to 12.12
   • Enable Wheatley governor

12/12/2012 - v3.1http://devhost.xda-developers.com/orJ

   • Patched up to Linux 3.0.56
   • Update BFQ to v5
   • Wheatley governor

11/17/2012 - v3.0http://devhost.xda-developers.com/CWK

   • Update zcache and zram - (faux123)
   • Add Google snappy compression / decompression and set to default
   • Patched up to 3.0.51 - (Coolexe, cjoliver)
   • Linaro Topology drivers - http://patches.linaro.org/project/linux-arm-kernel/
   • Optimized CRC32 algorithm
   • Advanced screen off profile for mpdecision - (cjoliver)

10/29/2012 - v2.6http://devhost.xda-developers.com/ZxJ

   • CPU Alignment fix
   • Adjust updater script

10/28/2012 - v2.5http://devhost.xda-developers.com/tAC

   • Patched up to Linux 3.0.48 - Coolexe
   • Badass Governor with GPU control - showp1984
   • Update Linaro toolchain - http://releases.linaro.org/
   • Disable ROW IO Scheduler
   • Disabled sha1 and aes routines in favor of optimized versions
   • Adjust vfs cache pressure
   • Enabled USB OTG - Yes, I forgot about this :eek:
   • Other minor tweaks and fixes
         Expose kblock_scheduled_delayed_work()
         task_times() explosion avoidance for tasks with > 2^32 accrued ticks
         sched,rt: fix isolated CPUs leaving root_task_group indefinitely throttled
         sweep2wake -> naming fix


10/04/2012 - v2.0.0http://devhost.xda-developers.com/PhO

   • Added some fancy ascii art to my updater script :D
   • Name change
   • Patched up to Linux 3.0.44
   • Linaro -O3 Optimized
   • Faster boot up
   • Fix -O3 compile errors (me - Chad G - Agrabren - Showp1984)
   • Implement ck1 patchset - (Ziggy)
   • Add -Ofast Linaro flag to config 
   • Ziggy's sysfs vdd interface - You can now see voltages in Antutu CPU master
   • Ziggy's LagFree
   • Ziggy's Smartass v2
   • Update LZO zram - Now as fast as Google's snappy zram but with better compression - (faux123)
   • zram - default back to LZO
   • Remove Google snappy zram in favor of LZO - Better compression
   • Removed a bunch of governors for battery testing (SavagedZen, Lionheart, Intellidemand, Scary, Lulzactive, Wheatley, Pegasusq, Lazy)
   • Add ROW I/O Scheduler - Unstable WIP - (faux123)
   • Optimized AES and SHA1 routines - (David McCullough)
   • MHzx8 bandwidth - (Coolexe)
   • 3-phase throttling with sysfs added to thermal managment - (Coolexe)
   • User configurable sweep2wake coordinates - (cjoliver)
   • Fix thermal management (me - faux123)
   • Tweak deadline io scheduler for better performance on Android - (faux123)
   • Sched fixes - (faux123)
   • Generic xchg-based implementation for ARMv6+ - (faux123)
   • Dynamic sync control
   • Fix bug due to buffer overrun
   • Fix Max speed on boot up
   • Lower display panel voltages - Help with battery life
   • Everything else from 1.0.0

09/02/2012 - v1.0.0http://devhost.xda-developers.com/ASt

   • Patched up to Linux 3.0.42
   • Linaro -O2 optimized
   • Snapdragon and Linaro optimizations
   • Google's snappy zram compression / decompression
   • USB Fast Charge v3.1 - (yank555)
   • Sweep2Wake 3 button (menu, back, search) - (Coolexe)
   • Set default speeds min @ 192 MHz [email protected] 1516 MHz
   • CPU OC up to 1.944 MHz
   • L2 Cache up to 1566 MHz
   • CPU based alignment handling
   • Vdd table interface
   • GPU OC 2D @ 266 MHz 3D @ 320MHz (Chad G)
   • Glitch free GPU frequency changing
   • SLQB Memory Allocator - default
   • SLUB optimizations
   • Kernel based mpdecision - (Coolexe)
   • Kernel based thermal managment - (Dodava)
   • vfp neon optimization 
   • Disable GENTLE_FAIR_SLEEPERS
   • Lower vfs cache pressure and made configurable
   • Tweaked audio buffers for Beats
   • Lowmemkiller and fugeswap
   • Lower camera flash to 5%
   • Lower WiFi voltage
   • Allow low WiFi signals to be seen
   • USB OTG
   • USB headset detection
   • Enable dynamic LED brightness
   • AC charging for unknown chargers
   • Prevent aliased request from starving I/O
   • Optimized ARM RWSEM algorithm
   • Use glibc version of lib: script
   • Use glibc version of lib: memcopy
   • Use git implementation of SHA-1
   • Increase min /max readahead buffers
   • Add optimization levels to config
AOSP

Code:
Coming soon

Nothing yet. Maybe ION and update adreeno drivers..

4/21/2013 - v4.1.2

Download

• Move msm-buspm-dev.ko and kineto_gen.ko back to kernel.

4/20/2013 - v4.1

Download

• Rebase off evervolv kernel source
• Patched to Linux 3.0.74
• Lower CPU and uV tables - OC -> 1.7GHz - uV -> 700000 - 14500000
• Add extra L2 cache OC step - 1566MHz -> 1620MHz
• Update ROW from upstream no longer a backport - (caf)
• Ondemand tweaks / fixes / patches
- cpufreq : Fix crash input event handler on governor switch
• Interactive tweaks / fixes / patches
- cpufreq: interactive: fix possible Division by zero
- cpufreq: interactive: default timer 10ms, maxspeed load 95%
- power: cpufreq: interactive: use default sample time 20ms
• BFQ tweaks / fixes / patches
- Tweak to be more flash memory friendly - (fransiscifranco)
• ROW tweaks / fixes / patches
- block: ROW: Correct minimum values of ROW tunable parameters
- block: row: Add some debug information on ROW queues
- block: row: fix sysfs functions - idle_time conversion
• Dynamic fsync v1.1 - (faux123)
• Misc patches / fixes
- ARM: net: JIT compiler for packet filters
- ARM: entry: no need to increase preempt count for IRQ handlers
- SCHEDULER: Autogroup patch group by current user android UID instead of task ID
- sched: Cleanup pre_schedule_rt
- sched: Remove unlikely() from rt_policy() in sched.c
- sched: Remove unlikely() from ttwu_post_activation
- Add support for hotplug operations to take secondary CPUs online/offline when CONFIG_PM is turned off
- msm: pm-8x60: Move hotplug related code out of pm code
- msm: pm-8x60: Add clock debug to idle code path
- msm: msm_xo: Set the correct bits for XO_CORE on 8660
- usb: otg: Temporarily grab wakelock on charger and disconnect events
- msm: kgsl: convert sg allocation back to kmalloc
• Defconfig edits
- enable some stuff
• Makefile edits
- enable -O3 for hostcflags
- add -fstrict-aliasing
- funroll-loop optimization
• Adjust ramdisk to allow larger zImage
• Fix hex values for 1728000MHz and 1782000MHz
• Update CPU topology - (Vincent Guittot)
• cpupower drivers - (Vincent Guittot)
• Move thermal sysfs to kconfig
• Edit updater script with new ascii image

2/11/2013 - v3.6Download

    • Patched up to Linux 3.0.63
    • BFQ v6

2/4/2013 - v3.5http://devhost.xda-developers.com/tLB

   • Patched Linux to 3.0.62
   • ROW v4 IO scheduler
   • Backport ROW to 3.0 - (faux123)
   • Update BFQ to v5r1
   • Update Linaro toolchain

1/5/2013 - v3.2

http://devhost.xda-developers.com/zep

   • Wheatley governor
   • Zen I/O Scheduler
   • Update BFQ to v5
   • Patch linux to 3.0.57
   • Update updater script

11/17/2012 - v3.0http://devhost.xda-developers.com/gc0

   • Patched up to Linux 3.0.53
   • Update zcache and zram - (faux123)
   • Add Google snappy compression / decompression and set to default
   • Patched up to 3.0.51 - (Coolexe, cjoliver)
   •  Topology drivers - http://patches.linaro.org/project/linux-arm-kernel/
   • Optimized CRC32 algorithm
   • Advanced screen off profile for mpdecision - (cjoliver)
   • CPU Alignment fix
   • Badass Governor with GPU control - showp1984
   • Update Linaro toolchain - http://releases.linaro.org/
   • Disable ROW IO Scheduler
   • Adjust vfs cache pressure
   • Enabled USB OTG - Yes, I forgot about this :eek:
   • Other minor tweaks and fixes
        • Expose kblock_scheduled_delayed_work()
        • task_times() explosion avoidance for tasks with > 2^32 accrued ticks
        • sched,rt: fix isolated CPUs leaving root_task_group indefinitely throttled
        • sweep2wake -> naming fix
   • Linaro -O3 Optimized
   • Fix -O3 compile errors (me - Chad G - Agrabren - Showp1984)
   • Implement ck1 patchset - (Ziggy)
   • Add -Ofast Linaro flag to config 
   • Ziggy's sysfs vdd interface - You can now see voltages in Antutu CPU master
   • Ziggy's LagFree
   • Ziggy's Smartass v2
   • Update LZO zram - Now as fast as Google's snappy zram but with better compression - (faux123)
   • zram - default back to LZO
   • Remove Google snappy zram in favor of LZO - Better compression
   • Removed a bunch of governors for battery testing (SavagedZen, Lionheart, Intellidemand, Scary, Lulzactive, Wheatley, Pegasusq, Lazy)
   • Add ROW I/O Scheduler - Unstable WIP - (faux123)
   • Optimized AES and SHA1 routines - (David McCullough)
   • MHzx8 bandwidth - (Coolexe)
   • 3-phase throttling with sysfs added to thermal managment - (Coolexe)
   • User configurable sweep2wake coordinates - (cjoliver)
   • Fix thermal management (me - faux123)
   • Tweak deadline io scheduler for better performance on Android - (faux123)
   • Sched fixes - (faux123)
   • Generic xchg-based implementation for ARMv6+ - (faux123)
   • Dynamic sync control
   • Fix bug due to buffer overrun
   • Fix Max speed on boot up
   • Lower display panel voltages - Help with battery life
   • Everything else from 1.0.0
   • Snapdragon and Linaro optimizations
   • Google's snappy zram compression / decompression
   • USB Fast Charge v3.1 - (yank555)
   • Sweep2Wake 3 button (menu, back, search) - (Coolexe)
   • Set default speeds min @ 192 MHz [email protected] 1516 MHz
   • CPU OC up to 1.944 MHz
   • L2 Cache up to 1566 MHz
   • CPU based alignment handling
   • Vdd table interface
   • GPU OC 2D @ 266 MHz 3D @ 320MHz (Chad G)
   • Glitch free GPU frequency changing
   • SLQB Memory Allocator - default
   • SLUB optimizations
   • Kernel based mpdecision - (Coolexe)
   • Kernel based thermal managment - (Dodava)
   • vfp neon optimization 
   • Disable GENTLE_FAIR_SLEEPERS
   • Lower vfs cache pressure and made configurable
   • Tweaked audio buffers for Beats
   • Lowmemkiller and fugeswap
   • Lower camera flash to 5%
   • USB OTG
   • USB headset detection
   • Enable dynamic LED brightness
   • AC charging for unknown chargers
   • Prevent aliased request from starving I/O
   • Optimized ARM RWSEM algorithm
   • Use glibc version of lib: script
   • Use glibc version of lib: memcopy
   • Use git implementation of SHA-1
   • Increase min /max readahead buffers
   • Add optimization levels to config

Kernel Info

USB Fast Charge

/sys/kernel/fast_charge/force_fast_charge == 1 to enable this feature // 0 to disable this feature (default)

from your pc:
adb shell
echo 1 > /sys/kernel/fast_charge/force_fast_charge
exit

from a terminal app on your device:
echo 1 > /sys/kernel/fast_charge/force_fast_charge

or to create a script:
just add echo 1 > /sys/kernel/fast_charge/force_fast_charge to the script

Check out Chad's app that let's you control fast charge.
https://play.google.com/store/apps/d...incredicontrol


Sweep2Wake

http://www.youtube.com/watch?v=jri2BMQHHrs

echo 0 > /sys/android_touch/sweep2wake

This will disable the sweep2wake.

Other options are.
0 for disabled.
1 for enabled.
2 for enabled with backlight.

cm9 - Working great
Sense 3.6 - takes screen shot when swiping to sleep
Sense 4 - takes screen shot when swiping to sleep
Miui Sense - Doesn't work great

Configurations:

Start button -> /sys/android_touch/sweep2wake_startbutton -> HOME, MENU, BACK
End button -> /sys/android_touch/sweep2wake_endbutton -> SEARCH, BACK, MENU

If u want ur s2w start from MENU button then
echo MENU > /sys/android_touch/sweep2wake_startbutton

and s2w end at SEARCH button then
echo SEARCH > /sys/android_touch/sweep2wake_endbutton


CPU OC
Not all phones can handle 1.9! You may experience reboots if set too high, just lower until no more reboots, every phone is different...
Over clocking the CPU may drain the battery faster than if you were are at stock clock speed.
Underclock for better battery life...


Governor Info

Look here for governor tweaks

Ziggy's Lagfree
Lagfree is similar to ondemand. Main difference is it's optimization to become more battery friendly. Frequency is gracefully decreased and increased, unlike ondemand which jumps to 100% too often. Lagfree does not skip any frequency step while scaling up or down. Remember that if there's a requirement for sudden burst of power, lagfree can not satisfy that since it has to raise cpu through each higher frequency step from current. Some users report that video playback using lagfree stutters a little. Sysfs included.

SmartassV2
Version 2 of the original smartass governor from Erasmux. Another favorite for many. The governor aims for an "ideal frequency", and ramp up more aggressively towards this freq and less aggressive after. It uses different ideal frequencies for screen on and screen off, namely awake_ideal_freq and sleep_ideal_freq. This governor scales down CPU very fast (to hit sleep_ideal_freq soon) while screen is off and scales up rapidly to awake_ideal_freq (500 mhz for GS2 by default) when screen is on. There's no upper limit for frequency while screen is off (unlike Smartass). So the entire frequency range is available for the governor to use during screen-on and screen-off state. The motto of this governor is a balance between performance and battery. Sysfs included.

BadAss
Badass removes all of this "fast peaking" to the max frequency. On a typical system the cpu won't go above 918Mhz and therefore stay cool and will use less power. To trigger a frequency increase, the system must run a bit @ 918Mhz with high load, then the frequency is bumped to 1188Mhz. If that is still not enough the governor gives you full throttle. (this transition should not take longer than 1-2 seconds, depending on the load your system is experiencing)
Badass will also take the gpu load into consideration. If the gpu is moderately busy it will bypass the above check and clock the cpu with 1188Mhz. If the gpu is crushed under load, badass will lift the restrictions to the cpu.

Wheatley
In short words this govenor is build on “ondemand” but increases the C4 state time of the CPU and doing so trying to save juice. So the results show that Wheatley works as intended and ensures that the C4 state is used whenever the task allows a proper efficient usage of the C4 state. For more demanding tasks which cause a large number of wakeups and prevent the efficient usage of the C4 state, the governor resorts to the next best power saving mechanism and scales down the frequency. So with the new highly-flexible Wheatley governor one can have the best of both worlds. Obviously, this governor is only available on multi-core devices.

I/O Scheduler Info

Noop
Inserts all the incoming I/O requests to a First In First Out queue and implements request merging. Best used with storage devices that does not depend on mechanical movement to access data (yes, like our flash drives). Advantage here is that flash drives does not require reordering of multiple I/O requests unlike in normal hard drives.

Advantages:
Serves I/O requests with least number of cpu cycles. (Battery friendly?)
Best for flash drives since there is no seeking penalty.
Good throughput on db systems.
Disadvantages:
Reduction in number of cpu cycles used is proportional to drop in performance.

Deadline
Goal is to minimize I/O latency or starvation of a request. The same is achieved by round robin policy to be fair among multiple I/O requests. Five queues are aggressively used to reorder incoming requests.

Advantages:
Nearly a real time scheduler.
Excels in reducing latency of any given single I/O.
Best scheduler for database access and queries.
Bandwidth requirement of a process - what percentage of CPU it needs, is easily calculated.
Like noop, a good scheduler for solid state/flash drives.
Disadvantages:
When system is overloaded, set of processes that may miss deadline is largely unpredictable.

CFQ
Completely Fair Queuing scheduler maintains a scalable per-process I/O queue and attempts to distribute the available I/O bandwidth equally among all I/O requests. Each per-process queue contains synchronous requests from processes. Time slice allocated for each queue depends on the priority of the 'parent' process. V2 of CFQ has some fixes which solves process' i/o starvation and some small backward seeks in the hope of improving responsiveness.

Advantages:
Considered to deliver a balanced i/o performance.
Easiest to tune.
Excels on multiprocessor systems.
Best database system performance after deadline.
Disadvantages:
Some users report media scanning takes longest to complete using CFQ. This could be because of the property that since the bandwidth is equally distributed to all i/o operations during boot-up, media scanning is not given any special priority.
Jitter (worst-case-delay) exhibited can sometimes be high, because of the number of tasks competing for the disk.

BFQ
Instead of time slices allocation by CFQ, BFQ assigns budgets. Disk is granted to an active process until it's budget (number of sectors) expires. BFQ assigns high budgets to non-read tasks. Budget assigned to a process varies over time as a function of it's behavior.

Advantages:
Believed to be very good for usb data transfer rate.
Believed to be the best scheduler for HD video recording and video streaming. (because of less jitter as compared to CFQ and others)
Considered an accurate i/o scheduler.
Achieves about 30% more throughput than CFQ on most workloads.
Disadvantages:
Not the best scheduler for benchmarking.
Higher budget assigned to a process can affect interactivity and increased latency.

SIO
Simple I/O scheduler aims to keep minimum overhead to achieve low latency to serve I/O requests. No priority quesues concepts, but only basic merging. Sio is a mix between noop & deadline. No reordering or sorting of requests.

Advantages:
Simple, so reliable.
Minimized starvation of requests.
Disadvantages:
Slow random-read speeds on flash drives, compared to other schedulers.
Sequential-read speeds on flash drives also not so good.

V(R)
Unlike other schedulers, synchronous and asynchronous requests are not treated separately, instead a deadline is imposed for fairness. The next request to be served is based on it's distance from last request.

Advantages:
May be best for benchmarking because at the peak of it's 'form' VR performs best.
Disadvantages:
Performance fluctuation results in below-average performance at times.
Least reliable/most unstable.

ROW
The ROW I/O scheduler gives priority to READ requests over the WRITE requests when dispatching, without starving WRITE requests. Requests are kept in priority queues. Dispatching is done in a RR manner when the dispatch quantum for each queue is calculated according to queue priority. Most suitable for mobile devices.
The Following 7 Users Say Thank You to MikeC84 For This Useful Post: [ View ] Gift MikeC84 Ad-Free
2nd September 2012, 01:53 PM |#4  
Senior Member
Flag Bandung, West Java
Thanks Meter: 40
 
More
downloading now
The Following User Says Thank You to dimqs153 For This Useful Post: [ View ] Gift dimqs153 Ad-Free
2nd September 2012, 02:33 PM |#5  
NineInchNails's Avatar
R.I.P. - We'll see you around, bud...
Flag Minnesota
Thanks Meter: 5,527
 
Donate to Me
More
Can this change gpu speeds on the fly..?
The Following 3 Users Say Thank You to NineInchNails For This Useful Post: [ View ] Gift NineInchNails Ad-Free
2nd September 2012, 03:29 PM |#6  
andyjjc's Avatar
Member
Flag kampoeng-evo.com
Thanks Meter: 68
 
More
thanks

download :thumbup:

send from evo 3D monster
2nd September 2012, 04:49 PM |#7  
danweb66's Avatar
Senior Member
Flag Dearborn, MI
Thanks Meter: 1,118
 
More
Ty kind sir.
The Following User Says Thank You to danweb66 For This Useful Post: [ View ] Gift danweb66 Ad-Free
2nd September 2012, 04:58 PM |#8  
El Ha$on's Avatar
Senior Member
Flag NYC
Thanks Meter: 102
 
Donate to Me
More
I'm on newts sense 4.0 ROM and I flashed this kernel and so far no problems. Clock speed right now at 1.6Ghz. Radios working fine and Wi-Fi is ok also.

Thanks for the hard work!!

Sent from my PG86100 using Tapatalk 2
The Following User Says Thank You to El Ha$on For This Useful Post: [ View ] Gift El Ha$on Ad-Free
2nd September 2012, 05:22 PM |#9  
metaphysical_calamity's Avatar
Inactive Recognized Developer
Flag New Orleans
Thanks Meter: 12,031
 
Donate to Me
More
Trying this out in my S4 wip will let you know how it goes!

°•°•°IMAGIKA°•°•°
The Following User Says Thank You to metaphysical_calamity For This Useful Post: [ View ] Gift metaphysical_calamity Ad-Free
2nd September 2012, 05:27 PM |#10  
Senior Member
Lewiston, ID
Thanks Meter: 342
 
More
Flashed this on ZR3D XL and so far no issues

Sent from my PG86100 using Tapatalk 2
The Following 2 Users Say Thank You to twister99403 For This Useful Post: [ View ] Gift twister99403 Ad-Free
2nd September 2012, 05:32 PM |#11  
mario7595's Avatar
Senior Member
Flag NY, United States
Thanks Meter: 39
 
More
Is this only for sense and NOT aosp?
Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes