• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL][ALL MDPI][JB 4.1 & 4.2] LuPuS-jBv8 [LINARO 4.7.3][06-06-13]

Search This thread

wedgess

Retired Forum Mod / Inactive Recognized Developer
Apr 23, 2012
3,229
14,093
Dublin, Ireland
www.pac-rom.com
LuPuS-JB-Kernel
abzNncsi.png

Built with Linaro

This kernel can be used on any JB CM BASED JB 4.1 or 4.2

Disclaimer

Code:
[COLOR="DarkOrchid"]#include[/COLOR] [COLOR="Magenta"]<std_disclaimer.h>[/COLOR]
[COLOR="Blue"]/*
* Your warranty is now void.. LOL I guess you knew it already.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, you getting dumped or you getting fired because your phone 
* bootloops and alarm does not go off. Please do some research if you have any  
* concerns about features included in my kernel before using it! YOU and only 
* YOU are choosing to make these modifications.
*/[/COLOR]

[COLOR="Magenta"]#ifdef[/COLOR]
You have a [COLOR="DarkGreen"]question[/COLOR] post it in the [COLOR="DarkRed"]thread[/COLOR],
Instead of [COLOR="DarkGreen"]Pm'ing me[/COLOR], as other users may
experience you [COLOR="DarkRed"]problems[/COLOR]
[COLOR="Magenta"]#endif[/COLOR]


What Works --
Wifi - (flash modules)
Data
Everything Else that works on FXP

What doesn't work --
Anything that doesn't work on FXP

Whats Included in kernel ------------

Added Governors --


  • brazillianwax
    smartass
    Smartassv2
    Savagedzen
    Smoothass
    Scary
    InteractiveX
    Minmax
    Userspace


  • Intellidemand - Thanks to faux123
    This is an intelligent ondemand that enters browsing mode to limit max frequency when GPU is idling,
    and (exits browsing mode) behaves like ondemand when GPU is busy; to deliver performance for gaming and such.
    Intellidemand does not jump to highest frequency when screen is off.

    Lazy - Thanks to Ezekeel
    The Idea here is to eliminate any instabilities caused by fast frequency switching by ondemand.
    Lazy governor polls more often than ondemand, but changes frequency only after completing min_time_state
    on a step overriding sampling interval.
    Lazy also has a screenoff_maxfreq parameter which when enabled will cause the governor to always
    select the maximum frequency while the screen is off.

    Lulzactive - Thanks to Tegrak
    Based on Interactive and Smartass. When workload is greater than or equal to 60%, the governor scales up
    CPU to next higher step. When workload is less than 60%, governor scales down CPU to next lower step.
    When screen is off, frequency is locked to global scaling minimum frequency

    - Superbad
    - a "superbad" super smooth rendition of a highly optimized "smartass" governor!

    - Darkside
    - a "slightly more agressive smart" optimized governor!

    -Ondemandx:
    Basically an ondemand with suspend/wake profiles. This governor is supposed to be a battery friendly ondemand. When screen is off, max frequency is capped at 500 mhz. Even though ondemand is the default governor in many kernel and is considered safe/stable, the support for ondemand/ondemandX depends on CPU capability to do fast frequency switching which are very low latency frequency transitions. I have read somewhere that the performance of ondemand/ondemandx were significantly varying for different i/o schedulers. This is not true for most of the other governors. I personally feel ondemand/ondemandx goes best with SIO I/O scheduler.

    -Lionheart:
    Is a conservative-based governor. The tunables (such as the thresholds and sampling rate) were changed so the governor behaves more like the performance one, at the cost of battery as the scaling is very aggressive.

    To 'experience' Lionheart using conservative, try these tweaks:
    sampling_rate:10000 or 20000 or 50000, whichever you feel is safer. (transition latency of the CPU is something below 10ms/10,000uS hence using 10,000 might not be safe).
    up_threshold:60
    down_threshold:30
    freq_step:5
    Lionheart goes well with deadline i/o scheduler. When it comes to smoothness (not considering battery drain), a tuned conservative delivers more as compared to a tuned ondemand.

    BadAss Governor:
    Badass removes all of this "fast peaking" to the max frequency. 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 1024Mhz. If the gpu is crushed under load, badass will lift the restrictions to the cpu.

    -Virtuous
    Virtuous is a modded smartassV2 which gives even more battery time then smartassV2:)

    Added Io-scheduler --
    VR io-scheduler - 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.

    - SIO - Simple IO-Scheduler-
    SIO is the default scheduler in this kernel. It is widely-regarded as the best all-round performing IO scheduler for android. It is low on CPU usage and optimized for flash-based storage. From the creator - "Based on Noop, Deadline and V(R) IO schedulers. This algorithm does not do any kind of sorting, as it is aimed for aleatory access devices, but it does some basic merging. We try to keep minimum overhead to achieve low latencies. Asynchronous and synchronous requests are not treated separately, but we rely on deadlines to ensure fairness."

    - BFQ - Budget Fair Queueing IO-Scheduler-

    From Creators
    * Copyright (C) 2008 Fabio Checconi
    * Paolo Valente
    *
    * Licensed under the GPL-2 as detailed in the accompanying COPYING.BFQ file.
    *
    * BFQ is a proportional share disk scheduling algorithm based on the
    * slice-by-slice service scheme of CFQ. But BFQ assigns budgets,
    * measured in number of sectors, to tasks instead of time slices.
    * The disk is not granted to the active task for a given time slice,
    * but until it has exahusted its assigned budget. This change from
    * the time to the service domain allows BFQ to distribute the disk
    * bandwidth among tasks as desired, without any distortion due to
    * ZBR, workload fluctuations or other factors. BFQ uses an ad hoc
    * internal scheduler, called B-WF2Q+, to schedule tasks according to
    * their budgets. Thanks to this accurate scheduler, BFQ can afford
    * to assign high budgets to disk-bound non-seeky tasks (to boost the
    * throughput), and yet guarantee low latencies to interactive and
    * soft real-time applications.
 
Last edited:

wedgess

Retired Forum Mod / Inactive Recognized Developer
Apr 23, 2012
3,229
14,093
Dublin, Ireland
www.pac-rom.com

Changelog

Code:
[hide]
[LIST]
[*]- All above Governors
- All above Io-Schedulers
- Cleancache
- KSM
- CIFS
- USB-OTG
- NTFS
- ext 2/3/4
- VDD ( Custom voltage control )
- Tiny RCU
- SLQB Memory Allocator
- Increased VM max readahead
- Wifi problem fixed
- Fixed Battery drain ( Tester lost 0.2% overnigh with wifi on ) :victory:
- CWM fixed thanks @ Scritch007
- Built with Linaro 4.7
- Optimized for Linaro
- Thumbee
- OC upto 1.6
- Lzo updated & patched
- Use Google Snappy Compression / Decompression
- Added TINY RCU
- Uses uncompressed Image {why .img size is bigger)
- Custom improvements for overall smoother performance
*** Probably a whole lot more i'm missing ***

[B][U]v2[/U][/B]

- built with latest linaro 4.7.3 (02-01-2013) - Thanks @ ChainFirex
- Added memcopy
- Added compaction
- Lowered vfs_cache_pressure
- LMK (lowmemorykiller) optimizations
- Improved CIFS support
- Enabled USB tether
- Disabled gentle_fair_sleepers
- Updated video drivers
- Clean up on wifi config
- Back-ported binder changes
- Dual recovery thanks @ singh_dd93 
- TWRP recovery - thanks @ championswimmer & TWRP team
- reverted back to compressed zImage

[B][U]v3[/U][/B]
- Built with Linaro 4.7.3 (02-01-2013)
- Free'd RAM (disabled 720p) now 381mb - Thanks at Paul678 
- Makefile optimisations (snapdragon & neon) - Thanks at Paul678 
- Tweaked permormance on interactive governor - Thanks at Paul678 
- Tweaked SIO io sched - Thanks at Paul678
- USB Tether support 
- Free'd some RAM from loggers
- Buggy ALS Disabled at kernel level
- Reduce swappiness
- Fix PageHead
- Fix binder. use of uninitialized variable.
- Fix kernel/net Memory Leaks
- Eliminate kstrdup memory leak 
- ipv4: force_igmp_version ignored when a IGMPv3 query received 
- Fix Entropy Depleting (no more depleting) - Thanks @ Kees Cook
- enable ipsec tunnel support in kernel (Latest FXP Change)
- ARM7 optimsations + more in config
- TWRP v2.4 - Thanks @ Championswimmer, TWRP Team and Wechy 77 for parts of his LuPuS theme


[B]v4[/B]
- Supports both 4.1 & 4.2 JB
- New IIO Scheduler ZEN thanks  @[URL="http://forum.xda-developers.com/member.php?u=2632235"]bbedward[/URL]
- New Governor smartassH3 thanks  @[URL="http://forum.xda-developers.com/member.php?u=3057569"]Hero[/URL]
- Tweaked Deadline IO scheduler
- Tweaked smartassv2
- Frandom
- SFB Net scheduler
- OC up to 1804.8MHz
- Logger backported from CAF
- Free RAM from logger
- LMK updated and optimized + various LMK tweaks
- Various ARM & RAM changes
- TinyRCU optimizations
- Optimized crc32 lib
- various VM changes
- Improved cleancache
- Undervolt LCD display, touch sensor proximity sensor & Wi-Fi thanks @ M66B
- Entropy tweaks
- Try fix for CRT animation  @[URL="http://forum.xda-developers.com/member.php?u=4266283"]paul678[/URL]
- TWRP & CWM
- LuPuS Menu
- Auto Loading wifi
- Performance governor tweak
- All modules and init.d's included No need to flash anything after kernel
Plus alot more changes see [URL="https://github.com/garwedgess/semc-kernel-msm7x30/commits/jellybean"] for full list of credits and patches used[/URL]
[/LIST]

[B]v5[/B]
- Latest changes to ALS and Button Backlight -- Thanks @ FXP
- Lowered OC to 1612.8Mhz
- Remove ALS and Button Backlight option from LuPuS Menu (no longer needed)
- Random reboots should be fixed ( for those who where having such issues )


[B]v6[/B]
- Fixed 3D from hanging under high intensity
- Fix pmem for HDPI Mike NG (no more reboots??)
- CWM Recovery = VOLUME DOWN
- TWRP Recovery = VOLUME UP
- Clean up on LuPuS Menu
- Better wifi check
- KEY RESET ( Menu and POWER)
- Tuned Smartassv3 and SmartassH3  @[URL="http://forum.xda-developers.com/member.php?u=2799345"]M66B[/URL]



[B]v7[/B]
- Compatable with MIUI5
---- Custom CWM
- Clean-up of menu
- Added own wipe options menu -- with extra options
- Aroma File Manager from CWM --- Must have aroma ([COLOR=Red]aromafm.zip) placed on root of sdcard[/COLOR]) 
- Multi zip installer
- Reboot options - Power off re-added under this menu
- Pointless but people keep asking me for it so re-added wipe battery stats also.
- LuPuS themed...
[/hide]

[B]v8[/B]
- Added option to enable Quick Key Reset (enable / disable via LuPuS Menu)
- Tuned Governors 
  * superbad
  * lionheart
  * virtuous
  * darkside
  * conservative
  * smartassH3
- Really use google snappy zRam (improves zRam)
- Added zCache
- Removed persistent RAM
- Removed some more kernel debugging
- uninterruptible sleep
- Update SIO & CFQ
- Added Ultra-KSM
- Removed optimized AES & SHA1 routines
- Updated TWRP to 2.4.4
   *Fixed Mount USB Storage in TWRP
- Updated CWM to latest Official CWM source
   *Removed reboot options
   *Re-added power off and reboot system now to main menu
- Improved wifi-loading scripts
- Clean up of lupus menu
- Fixed root issue on some devices
- Reworked kernel logs (can  be found in /data/local/tmp)
- Boot.d - If phone is taking a long time to start move suspicious init.d scripts to /system/etc/boot.d
  They will be run in background and won't affect boot time.


LuPuS MENU



You can run lupus menu from terminal or scriptmanager or similar, you must run as root or script will exit with a message

in terminal

Code:
su
lupus
* information is in lupus menu

1/ CIFS Menu *

  • Enable
    Disable

2/ zRam Menu *
  • Enable
    Disable
    Set zRam size ( default is 60)

3/ Frandom Menu *
  • Enable
    Disable

4/ USB OTG *
  • Enable
    Disable

5/ ALS & Button Backlight *
  • Enable
    Disable
- BOTH


5/ Clean and Remove tweaks
  • Remove init.d's

6/ Tweak Menu
Note all tweaks are preset from here and option to set as init.d's
  • Clean all temp files
    SQLITE optimizations
    LMK Optimizations
    Network optimizations
    Defend against ARP spoofing
    Remove android logger
    SDcard speed tweak
    Flag blocks as non-rotational

7/ Performance Menu
Note all options are se by user input from here and option to set as init.d's
  • Set CPU frequencies
    Set Governor
    Set IO-Scheduler
    Voltage Control
    VM tweaks (explained below)

VM Tweaks


dirty ratio and dirty background ratio 1 & 2
This controls how often the kernel writes data to "disk" (in our case the internal microSD system card, not the removable microSD card). When your apps write data to disk, Linux actually doesn't write the data out to the disk right away, it actually writes the stuff to system memory and the kernel handles when and how the data is actually going to be flushed to the disk. These values represent a percentage, the higher the percentage, the longer it waits to flush, the lower the percentage, the more often flushes will occur. Now remember, we are dealing with solid state storage, not the traditional disk platter and spindle. So we are actually able to delay flushes a little longer with solid state versus a traditional hard drive disk.


dirty_expire_centisecs
How old "dirty" data should be before the kernel considers it old enough to be written to disk. It is expressed in 100ths of a second.

dirty_writeback_centisecs

This is the interval of when the writeback daemons periodically wake up and write "old" data out to disk. It is expressed in 100ths of a second.

min free kbytes
This is used to force the Linux VM to keep a minimum number of kilobytes free. The VM uses this number to compute a pages_min value for each lowmem zone in the system. Each lowmem zone gets a number of reserved free pages based proportionally on its size. Default is 2048kb.

overcommit_memory
This controls overcommit of system memory, possibly allowing processes to allocate (but not use) more memory than is actually available.

0 - Heuristic overcommit handling. Obvious overcommits of address space are refused. Used for a typical system. It ensures a seriously wild allocation fails while allowing overcommit to reduce swap usage. root is allowed to allocate slighly more memory in this mode. This is the default.
1 - Always overcommit. Appropriate for some scientific applications.
2 - Don't overcommit. The total address space commit for the system is not permitted to exceed swap plus a configurable percentage (default is 50) of physical RAM. Depending on the percentage you use, in most situations this means a process will not be killed while attempting to use already-allocated memory but will receive errors on memory allocation as appropriate.

Swappiness
A property for the Linux kernel that changes the balance between swapping out runtime memory, as opposed to dropping pages from the system page cache. Swappiness can be set to values between 0 and 100 inclusive. A low value means the kernel will try to avoid swapping as much as possible where a higher value instead will make the kernel aggressively try to use swap space.

VFS Cache Pressure
File system cache (dentry/inode) is really more important than the block cache above in dirty ratio and dirty background ratio, so we really want the kernel to use up much more of the RAM for file system cache, this will increas the performance of the system without sacrificing performance at the application level. The default value is 100, as a percentage, and what you want to do is lower the value to tell the kernel to favor the file system cache and not drop them aggressively.




Downloads


If you like my work please consider buying me a beer or something else ;)
by clicking the DONATE ME button, of course it isn't needed but greatly appreciated and keeps me motivated.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
LuPuS-jB Kernel Downloads


480p
LuPuS_coconut_jBv8-ram.img
md5 = 9d3e68a798a5c1cd27fc878fcfbf3bb9

LuPuS_mango_jBv8-ram.img
md5 = 393cddbadc066bf8a001f9ccbbd1d4e0

LuPuS_satsuma_jBv8-ram.img
md5 = 26af5b64810ef5206ba475eddcf74f13

LuPuS_smultron_jBv8-ram.img
md5 = e569c6a20e82f627290907abf605664d


720p
LuPuS_coconut_jBv8-full.img
md5 = 9d384782278e4f87bee1d4f4a02d5dce

LuPuS_mango_jBv8-full.img
md5 = d76c866a8014c286a923f736fabf2d32

LuPuS_satsuma_jBv8-full.img
md5 = 2275a655cf0f0f4a0da145ff3682e3c3

LuPuS_smultron_jBv8-full.img
md5 = cd7429c95ea930379d94f89cbd58fef9


Wifi is built in to kernels ramdisk NO MODULES NEEDED

LuPuS Kernel folder

http://goo.im/devs/wedgess


DO NOT MIRROR MY DOWNLOADS


- zRam is not enabled by default unless on CM10 ROM, for AOKP to enable it flash the wedgess-zram-enabler.zip in CWM
- If for whatever reason you want to disable Zram after you have flashed the .zip, just go to ect/init.d and delete 00zram



People will ask so i'll just post it here---------to check if zRam is enabled go to terminal emulator or similar and type

Code:
free
or alternatively

Code:
cat /proc/swaps
Also added CIFS support....

What is CIFS???

  • Server Message Block (SMB) or Common Internet File System (CIFS) are normally used to provide shared access to files on a network, mostly involving computers running MS Windows.

    It allows you to conveniently mount/unmount your network accessible file resources and access the files transparently via your favourite Android app (playing music / videos, accessing documents etc.) Settings are stored on your SD card with permissions to write also to your SD card.

Now download CifsManager or similar app and configure it :)


Please Click Thanks :good:
 

Attachments

  • wedgess_NEW_Zram-Enabler.zip
    157.8 KB · Views: 4,513
Last edited:

wedgess

Retired Forum Mod / Inactive Recognized Developer
Apr 23, 2012
3,229
14,093
Dublin, Ireland
www.pac-rom.com
Phone wont even show the boot logo after flashing this kernel.
Phone wont even boot up.
Hold the power button,phone vibrates (normal) and after 5 seconds,i hold the power button and it vibrates again .

Whyyyyyyy? :crying:

Probably because it's only been tested on mango as I couldnt fnd tseters for all devices, so if it doesnt work post ur device and ill re upload

EDIT - Oh wait you are using mango, does your md5 match the one in post #2
 
Last edited:

scorpion 13

Senior Member
Aug 17, 2012
423
153
Tehran
can I enable z ram on cm10 by going to setting/performance/ z ram on this kernel?
How is the kernel act on gaming(3d performance)?

Sent from my Xperia Mini using Tapatalk 2
 

wedgess

Retired Forum Mod / Inactive Recognized Developer
Apr 23, 2012
3,229
14,093
Dublin, Ireland
www.pac-rom.com
can I enable z ram on cm10 by going to setting/performance/ z ram on this kernel?
How is the kernel act on gaming(3d performance)?

Sent from my Xperia Mini using Tapatalk 2

Ye most ROMs it should be grand with but some you may need to flash the .zip, just a back up type thingy :p

I am using this kernel on PA and its too good. I would say a lot better than PA Kernel
Loving your work wedgess. THANKS ALOT

Sent from my Xperia Mini Pro using xda app-developers app

Thanks glad you like and thanks for testing it out :good:


singh_dd93 tested MANGO and said all is fine, did u check the md5 it could of been a bad download
^^^^^^^^^^^^^^^^^^ Post of shame only know them by code name...............ooopppps
==========================================================================
AND PEOPLE PLEASE POST IF YOUR DEVICE BOOTED SO I CAN
________________________REMOVE UN-TESTED FROM OP____________________________​

All kernels now booting
 
Last edited:

singh_dd93

Inactive Recognized Developer
Oct 3, 2011
1,533
3,536
28
Ludhiana, Punjab
Redmi K20 Pro
OnePlus 8 Pro
Ye most ROMs it should be grand with but some you may need to flash the .zip, just a back up type thingy :p



Thanks glad you like and thanks for testing it out :good:



singh_dd93 tested MANGO and said all is fine, did u check the md5 it could of been a bad download
@wedgess
Mango is SK17i
Xperia Mini ST15i is smultron

Sent from my Xperia Mini Pro using xda app-developers app
 

gdeliana

Senior Member
Feb 21, 2011
392
104
Tirana
Ok, am trying it, the performance is 5% smaller than that of M66B kernel, battery life need to test further, will see tomorrow and post results. Thanks a lot to wedges and welcome to the forum :).

One request i would have though: Could you add the 24 MHz frequency its wonderful for battery life, and in combination with smartassV2 it doesn't compromise performance at all. :)
 

wedgess

Retired Forum Mod / Inactive Recognized Developer
Apr 23, 2012
3,229
14,093
Dublin, Ireland
www.pac-rom.com
The performance (on gaming)is lower than Fxp kernel (only a bit)
But battery saving is very good.


Sent from my Xperia mini on Jellybean

Please Note this version is to see how many people will be using it ect. Next release has more improvements. What governors ect u use. Even though I dont go by antutu score mines above fxps, using intellidemand2

Sent from my GT-I9300 On Official JB
 

Top Liked Posts

  • There are no posts matching your filters.
  • 236
    LuPuS-JB-Kernel
    abzNncsi.png

    Built with Linaro

    This kernel can be used on any JB CM BASED JB 4.1 or 4.2

    Disclaimer

    Code:
    [COLOR="DarkOrchid"]#include[/COLOR] [COLOR="Magenta"]<std_disclaimer.h>[/COLOR]
    [COLOR="Blue"]/*
    * Your warranty is now void.. LOL I guess you knew it already.
    *
    * I am not responsible for bricked devices, dead SD cards,
    * thermonuclear war, you getting dumped or you getting fired because your phone 
    * bootloops and alarm does not go off. Please do some research if you have any  
    * concerns about features included in my kernel before using it! YOU and only 
    * YOU are choosing to make these modifications.
    */[/COLOR]
    
    [COLOR="Magenta"]#ifdef[/COLOR]
    You have a [COLOR="DarkGreen"]question[/COLOR] post it in the [COLOR="DarkRed"]thread[/COLOR],
    Instead of [COLOR="DarkGreen"]Pm'ing me[/COLOR], as other users may
    experience you [COLOR="DarkRed"]problems[/COLOR]
    [COLOR="Magenta"]#endif[/COLOR]


    What Works --
    Wifi - (flash modules)
    Data
    Everything Else that works on FXP

    What doesn't work --
    Anything that doesn't work on FXP

    Whats Included in kernel ------------

    Added Governors --


    • brazillianwax
      smartass
      Smartassv2
      Savagedzen
      Smoothass
      Scary
      InteractiveX
      Minmax
      Userspace


    • Intellidemand - Thanks to faux123
      This is an intelligent ondemand that enters browsing mode to limit max frequency when GPU is idling,
      and (exits browsing mode) behaves like ondemand when GPU is busy; to deliver performance for gaming and such.
      Intellidemand does not jump to highest frequency when screen is off.

      Lazy - Thanks to Ezekeel
      The Idea here is to eliminate any instabilities caused by fast frequency switching by ondemand.
      Lazy governor polls more often than ondemand, but changes frequency only after completing min_time_state
      on a step overriding sampling interval.
      Lazy also has a screenoff_maxfreq parameter which when enabled will cause the governor to always
      select the maximum frequency while the screen is off.

      Lulzactive - Thanks to Tegrak
      Based on Interactive and Smartass. When workload is greater than or equal to 60%, the governor scales up
      CPU to next higher step. When workload is less than 60%, governor scales down CPU to next lower step.
      When screen is off, frequency is locked to global scaling minimum frequency

      - Superbad
      - a "superbad" super smooth rendition of a highly optimized "smartass" governor!

      - Darkside
      - a "slightly more agressive smart" optimized governor!

      -Ondemandx:
      Basically an ondemand with suspend/wake profiles. This governor is supposed to be a battery friendly ondemand. When screen is off, max frequency is capped at 500 mhz. Even though ondemand is the default governor in many kernel and is considered safe/stable, the support for ondemand/ondemandX depends on CPU capability to do fast frequency switching which are very low latency frequency transitions. I have read somewhere that the performance of ondemand/ondemandx were significantly varying for different i/o schedulers. This is not true for most of the other governors. I personally feel ondemand/ondemandx goes best with SIO I/O scheduler.

      -Lionheart:
      Is a conservative-based governor. The tunables (such as the thresholds and sampling rate) were changed so the governor behaves more like the performance one, at the cost of battery as the scaling is very aggressive.

      To 'experience' Lionheart using conservative, try these tweaks:
      sampling_rate:10000 or 20000 or 50000, whichever you feel is safer. (transition latency of the CPU is something below 10ms/10,000uS hence using 10,000 might not be safe).
      up_threshold:60
      down_threshold:30
      freq_step:5
      Lionheart goes well with deadline i/o scheduler. When it comes to smoothness (not considering battery drain), a tuned conservative delivers more as compared to a tuned ondemand.

      BadAss Governor:
      Badass removes all of this "fast peaking" to the max frequency. 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 1024Mhz. If the gpu is crushed under load, badass will lift the restrictions to the cpu.

      -Virtuous
      Virtuous is a modded smartassV2 which gives even more battery time then smartassV2:)

      Added Io-scheduler --
      VR io-scheduler - 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.

      - SIO - Simple IO-Scheduler-
      SIO is the default scheduler in this kernel. It is widely-regarded as the best all-round performing IO scheduler for android. It is low on CPU usage and optimized for flash-based storage. From the creator - "Based on Noop, Deadline and V(R) IO schedulers. This algorithm does not do any kind of sorting, as it is aimed for aleatory access devices, but it does some basic merging. We try to keep minimum overhead to achieve low latencies. Asynchronous and synchronous requests are not treated separately, but we rely on deadlines to ensure fairness."

      - BFQ - Budget Fair Queueing IO-Scheduler-

      From Creators
      * Copyright (C) 2008 Fabio Checconi
      * Paolo Valente
      *
      * Licensed under the GPL-2 as detailed in the accompanying COPYING.BFQ file.
      *
      * BFQ is a proportional share disk scheduling algorithm based on the
      * slice-by-slice service scheme of CFQ. But BFQ assigns budgets,
      * measured in number of sectors, to tasks instead of time slices.
      * The disk is not granted to the active task for a given time slice,
      * but until it has exahusted its assigned budget. This change from
      * the time to the service domain allows BFQ to distribute the disk
      * bandwidth among tasks as desired, without any distortion due to
      * ZBR, workload fluctuations or other factors. BFQ uses an ad hoc
      * internal scheduler, called B-WF2Q+, to schedule tasks according to
      * their budgets. Thanks to this accurate scheduler, BFQ can afford
      * to assign high budgets to disk-bound non-seeky tasks (to boost the
      * throughput), and yet guarantee low latencies to interactive and
      * soft real-time applications.
    179

    Changelog

    Code:
    [hide]
    [LIST]
    [*]- All above Governors
    - All above Io-Schedulers
    - Cleancache
    - KSM
    - CIFS
    - USB-OTG
    - NTFS
    - ext 2/3/4
    - VDD ( Custom voltage control )
    - Tiny RCU
    - SLQB Memory Allocator
    - Increased VM max readahead
    - Wifi problem fixed
    - Fixed Battery drain ( Tester lost 0.2% overnigh with wifi on ) :victory:
    - CWM fixed thanks @ Scritch007
    - Built with Linaro 4.7
    - Optimized for Linaro
    - Thumbee
    - OC upto 1.6
    - Lzo updated & patched
    - Use Google Snappy Compression / Decompression
    - Added TINY RCU
    - Uses uncompressed Image {why .img size is bigger)
    - Custom improvements for overall smoother performance
    *** Probably a whole lot more i'm missing ***
    
    [B][U]v2[/U][/B]
    
    - built with latest linaro 4.7.3 (02-01-2013) - Thanks @ ChainFirex
    - Added memcopy
    - Added compaction
    - Lowered vfs_cache_pressure
    - LMK (lowmemorykiller) optimizations
    - Improved CIFS support
    - Enabled USB tether
    - Disabled gentle_fair_sleepers
    - Updated video drivers
    - Clean up on wifi config
    - Back-ported binder changes
    - Dual recovery thanks @ singh_dd93 
    - TWRP recovery - thanks @ championswimmer & TWRP team
    - reverted back to compressed zImage
    
    [B][U]v3[/U][/B]
    - Built with Linaro 4.7.3 (02-01-2013)
    - Free'd RAM (disabled 720p) now 381mb - Thanks at Paul678 
    - Makefile optimisations (snapdragon & neon) - Thanks at Paul678 
    - Tweaked permormance on interactive governor - Thanks at Paul678 
    - Tweaked SIO io sched - Thanks at Paul678
    - USB Tether support 
    - Free'd some RAM from loggers
    - Buggy ALS Disabled at kernel level
    - Reduce swappiness
    - Fix PageHead
    - Fix binder. use of uninitialized variable.
    - Fix kernel/net Memory Leaks
    - Eliminate kstrdup memory leak 
    - ipv4: force_igmp_version ignored when a IGMPv3 query received 
    - Fix Entropy Depleting (no more depleting) - Thanks @ Kees Cook
    - enable ipsec tunnel support in kernel (Latest FXP Change)
    - ARM7 optimsations + more in config
    - TWRP v2.4 - Thanks @ Championswimmer, TWRP Team and Wechy 77 for parts of his LuPuS theme
    
    
    [B]v4[/B]
    - Supports both 4.1 & 4.2 JB
    - New IIO Scheduler ZEN thanks  @[URL="http://forum.xda-developers.com/member.php?u=2632235"]bbedward[/URL]
    - New Governor smartassH3 thanks  @[URL="http://forum.xda-developers.com/member.php?u=3057569"]Hero[/URL]
    - Tweaked Deadline IO scheduler
    - Tweaked smartassv2
    - Frandom
    - SFB Net scheduler
    - OC up to 1804.8MHz
    - Logger backported from CAF
    - Free RAM from logger
    - LMK updated and optimized + various LMK tweaks
    - Various ARM & RAM changes
    - TinyRCU optimizations
    - Optimized crc32 lib
    - various VM changes
    - Improved cleancache
    - Undervolt LCD display, touch sensor proximity sensor & Wi-Fi thanks @ M66B
    - Entropy tweaks
    - Try fix for CRT animation  @[URL="http://forum.xda-developers.com/member.php?u=4266283"]paul678[/URL]
    - TWRP & CWM
    - LuPuS Menu
    - Auto Loading wifi
    - Performance governor tweak
    - All modules and init.d's included No need to flash anything after kernel
    Plus alot more changes see [URL="https://github.com/garwedgess/semc-kernel-msm7x30/commits/jellybean"] for full list of credits and patches used[/URL]
    [/LIST]
    
    [B]v5[/B]
    - Latest changes to ALS and Button Backlight -- Thanks @ FXP
    - Lowered OC to 1612.8Mhz
    - Remove ALS and Button Backlight option from LuPuS Menu (no longer needed)
    - Random reboots should be fixed ( for those who where having such issues )
    
    
    [B]v6[/B]
    - Fixed 3D from hanging under high intensity
    - Fix pmem for HDPI Mike NG (no more reboots??)
    - CWM Recovery = VOLUME DOWN
    - TWRP Recovery = VOLUME UP
    - Clean up on LuPuS Menu
    - Better wifi check
    - KEY RESET ( Menu and POWER)
    - Tuned Smartassv3 and SmartassH3  @[URL="http://forum.xda-developers.com/member.php?u=2799345"]M66B[/URL]
    
    
    
    [B]v7[/B]
    - Compatable with MIUI5
    ---- Custom CWM
    - Clean-up of menu
    - Added own wipe options menu -- with extra options
    - Aroma File Manager from CWM --- Must have aroma ([COLOR=Red]aromafm.zip) placed on root of sdcard[/COLOR]) 
    - Multi zip installer
    - Reboot options - Power off re-added under this menu
    - Pointless but people keep asking me for it so re-added wipe battery stats also.
    - LuPuS themed...
    [/hide]
    
    [B]v8[/B]
    - Added option to enable Quick Key Reset (enable / disable via LuPuS Menu)
    - Tuned Governors 
      * superbad
      * lionheart
      * virtuous
      * darkside
      * conservative
      * smartassH3
    - Really use google snappy zRam (improves zRam)
    - Added zCache
    - Removed persistent RAM
    - Removed some more kernel debugging
    - uninterruptible sleep
    - Update SIO & CFQ
    - Added Ultra-KSM
    - Removed optimized AES & SHA1 routines
    - Updated TWRP to 2.4.4
       *Fixed Mount USB Storage in TWRP
    - Updated CWM to latest Official CWM source
       *Removed reboot options
       *Re-added power off and reboot system now to main menu
    - Improved wifi-loading scripts
    - Clean up of lupus menu
    - Fixed root issue on some devices
    - Reworked kernel logs (can  be found in /data/local/tmp)
    - Boot.d - If phone is taking a long time to start move suspicious init.d scripts to /system/etc/boot.d
      They will be run in background and won't affect boot time.


    LuPuS MENU



    You can run lupus menu from terminal or scriptmanager or similar, you must run as root or script will exit with a message

    in terminal

    Code:
    su
    lupus
    * information is in lupus menu

    1/ CIFS Menu *

    • Enable
      Disable

    2/ zRam Menu *
    • Enable
      Disable
      Set zRam size ( default is 60)

    3/ Frandom Menu *
    • Enable
      Disable

    4/ USB OTG *
    • Enable
      Disable

    5/ ALS & Button Backlight *
    • Enable
      Disable
    - BOTH


    5/ Clean and Remove tweaks
    • Remove init.d's

    6/ Tweak Menu
    Note all tweaks are preset from here and option to set as init.d's
    • Clean all temp files
      SQLITE optimizations
      LMK Optimizations
      Network optimizations
      Defend against ARP spoofing
      Remove android logger
      SDcard speed tweak
      Flag blocks as non-rotational

    7/ Performance Menu
    Note all options are se by user input from here and option to set as init.d's
    • Set CPU frequencies
      Set Governor
      Set IO-Scheduler
      Voltage Control
      VM tweaks (explained below)

    VM Tweaks


    dirty ratio and dirty background ratio 1 & 2
    This controls how often the kernel writes data to "disk" (in our case the internal microSD system card, not the removable microSD card). When your apps write data to disk, Linux actually doesn't write the data out to the disk right away, it actually writes the stuff to system memory and the kernel handles when and how the data is actually going to be flushed to the disk. These values represent a percentage, the higher the percentage, the longer it waits to flush, the lower the percentage, the more often flushes will occur. Now remember, we are dealing with solid state storage, not the traditional disk platter and spindle. So we are actually able to delay flushes a little longer with solid state versus a traditional hard drive disk.


    dirty_expire_centisecs
    How old "dirty" data should be before the kernel considers it old enough to be written to disk. It is expressed in 100ths of a second.

    dirty_writeback_centisecs

    This is the interval of when the writeback daemons periodically wake up and write "old" data out to disk. It is expressed in 100ths of a second.

    min free kbytes
    This is used to force the Linux VM to keep a minimum number of kilobytes free. The VM uses this number to compute a pages_min value for each lowmem zone in the system. Each lowmem zone gets a number of reserved free pages based proportionally on its size. Default is 2048kb.

    overcommit_memory
    This controls overcommit of system memory, possibly allowing processes to allocate (but not use) more memory than is actually available.

    0 - Heuristic overcommit handling. Obvious overcommits of address space are refused. Used for a typical system. It ensures a seriously wild allocation fails while allowing overcommit to reduce swap usage. root is allowed to allocate slighly more memory in this mode. This is the default.
    1 - Always overcommit. Appropriate for some scientific applications.
    2 - Don't overcommit. The total address space commit for the system is not permitted to exceed swap plus a configurable percentage (default is 50) of physical RAM. Depending on the percentage you use, in most situations this means a process will not be killed while attempting to use already-allocated memory but will receive errors on memory allocation as appropriate.

    Swappiness
    A property for the Linux kernel that changes the balance between swapping out runtime memory, as opposed to dropping pages from the system page cache. Swappiness can be set to values between 0 and 100 inclusive. A low value means the kernel will try to avoid swapping as much as possible where a higher value instead will make the kernel aggressively try to use swap space.

    VFS Cache Pressure
    File system cache (dentry/inode) is really more important than the block cache above in dirty ratio and dirty background ratio, so we really want the kernel to use up much more of the RAM for file system cache, this will increas the performance of the system without sacrificing performance at the application level. The default value is 100, as a percentage, and what you want to do is lower the value to tell the kernel to favor the file system cache and not drop them aggressively.




    Downloads


    If you like my work please consider buying me a beer or something else ;)
    by clicking the DONATE ME button, of course it isn't needed but greatly appreciated and keeps me motivated.

    -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    LuPuS-jB Kernel Downloads


    480p
    LuPuS_coconut_jBv8-ram.img
    md5 = 9d3e68a798a5c1cd27fc878fcfbf3bb9

    LuPuS_mango_jBv8-ram.img
    md5 = 393cddbadc066bf8a001f9ccbbd1d4e0

    LuPuS_satsuma_jBv8-ram.img
    md5 = 26af5b64810ef5206ba475eddcf74f13

    LuPuS_smultron_jBv8-ram.img
    md5 = e569c6a20e82f627290907abf605664d


    720p
    LuPuS_coconut_jBv8-full.img
    md5 = 9d384782278e4f87bee1d4f4a02d5dce

    LuPuS_mango_jBv8-full.img
    md5 = d76c866a8014c286a923f736fabf2d32

    LuPuS_satsuma_jBv8-full.img
    md5 = 2275a655cf0f0f4a0da145ff3682e3c3

    LuPuS_smultron_jBv8-full.img
    md5 = cd7429c95ea930379d94f89cbd58fef9


    Wifi is built in to kernels ramdisk NO MODULES NEEDED

    LuPuS Kernel folder

    http://goo.im/devs/wedgess


    DO NOT MIRROR MY DOWNLOADS


    - zRam is not enabled by default unless on CM10 ROM, for AOKP to enable it flash the wedgess-zram-enabler.zip in CWM
    - If for whatever reason you want to disable Zram after you have flashed the .zip, just go to ect/init.d and delete 00zram



    People will ask so i'll just post it here---------to check if zRam is enabled go to terminal emulator or similar and type

    Code:
    free
    or alternatively

    Code:
    cat /proc/swaps
    Also added CIFS support....

    What is CIFS???

    • Server Message Block (SMB) or Common Internet File System (CIFS) are normally used to provide shared access to files on a network, mostly involving computers running MS Windows.

      It allows you to conveniently mount/unmount your network accessible file resources and access the files transparently via your favourite Android app (playing music / videos, accessing documents etc.) Settings are stored on your SD card with permissions to write also to your SD card.

    Now download CifsManager or similar app and configure it :)


    Please Click Thanks :good:
    19
    Released LuPuS-jBv3

    Code:
    [B][U]v3[/U][/B]
    - Built with Linaro 4.7.3 (02-01-2013)
    - Free'd RAM (disabled 720p) now 381mb - Thanks at Paul678 
    - Makefile optimisations (snapdragon & neon) - Thanks at Paul678 
    - Tweaked permormance on interactive governor - Thanks at Paul678 
    - Tweaked SIO io sched - Thanks at Paul678 
    - Free'd some RAM from loggers
    - Buggy ALS Disabled at kernel level
    - Reduce swappiness
    - USB Tether support
    - Fix PageHead
    - Fix binder. use of uninitialized variable.
    - Fix kernel/net Memory Leaks
    - Eliminate kstrdup memory leak 
    - ipv4: force_igmp_version ignored when a IGMPv3 query received 
    - Fix Entropy Depleting (no more depleting) - Thanks @ Kees Cook
    - enable ipsec tunnel support in kernel (Latest FXP Change)
    - ARM7 optimsations + more in config
    - TWRP v2.4 - Thanks @ Championswimmer, TWRP Team and Wechy 77 for parts of his LuPuS theme

    Please Click Thanks
    16
    Relased LuPuS v7

    Code:
    [B]v7[/B]
    - Compatable with MIUI5
    ---- Custom CWM
    - Clean-up of menu
    - Added own wipe options menu -- with extra options
    - Aroma File Manager from CWM --- Must have aroma ([COLOR=Red]aromafm.zip) placed on root of sdcard[/COLOR]) 
    - Multi zip installer
    - Reboot options - Power off re-added under this menu
    - Pointless but people keep asking me for it so re-added wipe battery stats also.
    - LuPuS themed...
    16
    LuPuS jbv5 Released


    Code:
    [B]v5[/B]
    - Latest changes to ALS and Button Backlight -- Thanks @ FXP
    - Lowered OC to 1612.8Mhz
    - Remove ALS and Button Backlight option from LuPuS Menu (no longer needed)
    - Random reboots should be fixed ( for those who where having such issues )