Friday, February 14, 2014

[Kernel][ION+PMEM][CM11] HurtSky's Kernel RebornV2 + BFS + 368Mb Bigmem 5/2/2014 ( hurtsky )

CM11 Section

ONLY USE THIS KERNEL WITH ROM BASED ON
[ROM][KK][4.4.2][KOT49H] CyanogenMod 11.0 (UNOFFICIAL)


I'm not a developer, im taking effort to put more choices of kernel for our community

Please RATE this thread 5 STAR if you like it.. it absolutely encourage me more :D

Disclaimer

Code:
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */
Features

List of Governors Available :-
- Lulzactive
- Powersave
- SmartAssV2
- interactive
- interactiveX
- conservative
- ondemand
- performance

IO Scheduler
- noop
- deadline
- row
- cfq
- bfq
- sio
- vr
- fiops

Additional Features
- Compiled with Linaro GCC 4.7.3-2013.11 toolchain optimized for Cortex-A8 cpu with Neon technology support
- Change to BFS kernel scheduler
- CPU voltage control VDD sys interface (voltage adjustable)
- Overclock support
- Added NEON compilation flag to VFP module
- SnapDragon Optimization
- dynamic read-ahead
- frandom
- Lowered display panel voltage
- Lowered wifi voltage
- Increase audio loudness
- Dynamic management of dirty page writebacks credit to Christopher83
- Dynamic Fsync
- Fixed 100% battery notification after charger unplug credits to Christopher83
- LowMemoryKiller management of not killable processes - credits to christopher
- Asynchronous I/O latency to a solid-state disk greatly increased
- CK3 tweaks (Credits to Con Kolivas) - adapted by Christopher
- Snappy Google Zram
- Random Tweaks
- Reduce WIFI wakelocks - credits to DerTeufel
- Implement Suspend Freeze (more battery friendly)
- Allowed IPv6 over WIFI in general, we control it in ROM, + no wakelock! (reduce battery consumption)
- exfat support
- Implement frontswap into kernel
- Implement VNSWAP
- Implement ZSWAP - testing
- 368 mb size RAM big mem
- haveged support - (please remove or uninstall any seeder application or script to avoid your system become unstable)



Explanation of Android Governors




Installation Guide:
1. Reboot To Recovery Mode
2. Wipe Cache & Dalvik Cache
3. Flash the kernel
4. Reboot
5. wait until the phone boot up
6. Reboot back for second time


Code:
Credit to :-

- Our Master Arco for his kernel source ( go press thanks for any posted by arco :D without he, this kernel wont existed )
- AriesVE-DevCon-TEAM that make ION and PMEM can co-existed together.. big thanks for them :)
- educk for his tutorial and governors
- biagio7xD for extra governors and SnapDragon Optimization
- Christopher83 that helping me teach how to correct the error and advising me and thanks for his new linaro :)
- Xistance for his teaching
- CastagnaIT for his useful sources
- CyanogenMod developers that developing our CM
- Linaro GCC developers let me using this powerful compiler
- hadidjapri hadiconfig (more RAM)
- keff for governors code fixes
- credit to idcrisis for Crossbreeder MOD
- FelixMG for youtube video
- arsradu for kernel.zip
- others developer on GitHub
- xda-developers.com for all the teaching and members
XDA:DevDB Information
[Kernel][ION+PMEM][CM11] HurtSky's Kernel RebornV2 + BFS + 368Mb Bigmem 5/2/2014, a Kernel for the Samsung Galaxy W I8150



DOWNLOAD LINK > HERE

Changelogs of Revision Version


Do not expect me to explain all the commits/changes. i wont entertain your question unless for some reason.. GOOGLE IT than you will know ;)


Code:
RebornV2 - 5/2/2014
- squash kernel updates 3.4.78
- sync with arco's kernel changes
- zSWAP now activate on boot with zRAM default size
- ARM: add support for bit sliced AES using NEON instructions : Ard Biesheuvel
- crypto: create generic version of ablk_helper : Herbert Xu 
- crypto: ablk_helper - Replace memcpy with struct assignment : Herbert Xu 
- ARM: move AES typedefs and function prototypes to separate header : Ard Biesheuvel 
- arm: vfpmodule: Fix warning procfs vfp_bounce reporting failed : myfluxi
- ARM: 7493/1: use generic unaligned.h : faux123
- Enable pipe flag : testing
- printk: Add sys kernel interface to configure linux printk logging : andip71 
- logger: Add sys fs kernel interface to configure Android logger : andip71


RebornV1 - 26/1/2014
- revoke all the work and start from the scratch
- fix audio lag
- remove unnecessary commits
- implement frontswap, vnswap, zswap with proper commits : thanks to Paul Reioux
- zRam deactivate completely (no more zRAM module inside this kernel unless i want activate it back later in future)

REV4 - bigmem 23/1/2014
- revise more memory allocation - increase RAM size 368Mb - for bigmem version
- add  haveged support - full entropy seeding 4069 : credit to Crossbreeder MOD
(please remove or uninstall any seeder application or script to avoid your system become unstable)
- sync with arco latest build (20140122)
- sync with arco's kernel latest changes
- ARM: vfp: initialize vfp driver before cpufreq : thanks to Bongkyu Kim
- ARM: vfpmodule: Move bounce stats file to seq_file and friends : thanks to Stephen Boyd 
- ARM: move VFP init to an earlier boot stage : thanks to Paul Reioux
- ARM: be strict about FP exceptions in kernel mode : thanks to Paul Reioux
- ARM: add support for kernel mode NEON : thanks to Paul Reioux 
- ARM: crypto: add NEON accelerated XOR implementation : thanks to Ard Biesheuvel
- ARM: 7835/2: fix modular build of xor_blocks() with NEON enabled : thanks to Russell King
- ARM: only allow kernel mode neon with AEABI : thanks to Russell King
- msm: Remove all references to pmem from audio files : thanks to Laura Abbott
- qdsp5: memset stack buffer allocation : thanks to Asish Bhattacharya 

REV3 bigmem 11/1/2014
- add 366Mb ( i hope there is no FC anymore, already test it and feel free to test it ) 

REV3 10/1/2014
- bigmem : revise memory allocation - 360Mb
- update Ramdisk to acro 9/1 build
- sync with arco latest kernel changes
- Increased cpu frequency on boot : thanks to christopher83
- cache_pressure despite the dynamic suspend/resume values : thanks to Boy Petersen 
- fs/dcache.c: adaptive vfs_cache_pressure on suspend / resume: thanks to Boy Petersen 
- [PATCH 1/3] Rename ARM assembler push/pull macros : thanks to Boy Petersen 
- [PATCH 2/3] Optimize copy_page for modern ARM platforms : thanks to Boy Petersen 
- [PATCH 3/3] Optimize ARM memset and memzero functions : thanks to Boy Petersen 
- epoll: optimize EPOLL_CTL_DEL using rcu: thanks to Paul Reioux
- sched/rt: Remove redundant nr_cpus_allowed test
- futex: Misc cleanups : thanks Davidlohr Bueso
- futex: Larger hash table : thanks Davidlohr Bueso
- futex: Document ordering guarantees : thanks Davidlohr Bueso
- futex: Avoid taking hb lock if nothing to wakeup : thanks Davidlohr Bueso
- kernel/futex.c: Linux 3.4 compatibility fix up : thanks to Paul Reioux

REV2 fix and REV2 fix 359mb ram 9/1/2014
- fixes on Crypto support for zRam
- disable zRam on default - it seem zRam for android paging took it ability to compress.. so no need to enable zRam
- add big mem version 359mb 
(everything works have a test and report any FC activity if you had one.. define and clearly state how you get the FC 
 but remember, this big MEM version only testing mode, move to normal version if you're annoyed with the FC things ;) )

REV2 8/1/2014
- Change to BFS kernel scheduler
- update RAMDISK to arco latest ROM changes
- sync with arco latest kernel changes
- delete improve touch sensitiveness from project lard - useless tweaks for our monster
- Update zcache sources
- Implement frontswap into kernel
- Implement ZBUD : thanks Seth Jennings - testing
- Implement ZSWAP : thanks Seth Jennings - testing
- Add zRam for Android paging and LMK.
- mm: Improve Logic Swap - make it use with zbud + zswap (testing)
- Add the Snappy-c compressor : thanks to Andi Kleen
- Update Snappy to V3
- lib: add support for LZ4-compressed kernels : thanks to Kyungsik Lee
- arm: add support for LZ4-compressed kernels : thanks to Kyungsik Lee
- lib: Add lz4 compressor module : thanks to Chanho Min
- crypto: Add lz4 Cryptographic API : thanks to Chanho Min
- Asynchronous Fsync: initial extraction of Async Fsync from HTC : thanks to Paul Reioux
- ARM: mm: implement LoUIS API for cache maintenance ops : thanks to Lorenzo Pieralisi 
- ARM: mm: rename jump labels in v7_flush_dcache_all function : thanks to Lorenzo Pieralisi 
- ARM: kernel: update cpu_suspend code to use cache LoUIS operations : thanks to Lorenzo Pieralisi 
- ARM: kernel: update __cpu_disable to use cache LoUIS maintenance API : thanks to Lorenzo Pieralisi 
- ARM: mm: update __v7_setup() to the new LoUIS cache maintenance API : thanks to Lorenzo Pieralisi 
- input: add generic touchboost driver based on CAF's cpu-boost driver code : thanks to Francisco Franco (still in testing)
- sched: Implement smarter wake-affine logic : thanks to Francisco Franco
- sched: Micro-optimize the smart wake-affine logic : thanks to Peter Zijlstra
- staging: zram: add Crypto API support : thanks to Paul Reioux
- audit: kiss goodbye you stupid piece of crap logging messages : thanks to Francisco Franco
- some minors updates.


REV 1 1/1/2014
- inject VM tweaks, frandom hack, and improve touch sensitiveness from project Lard into ramdisk
- initial release - look at GitHub (too much commit had been done)
- based on new kernel from sir arco
- based on KITKAT from sir arco
The Following 24 Users Say Thank You to hurtsky For This Useful Post: [ Click to Expand ]
hurtsky
Old


Default Reserved

All start on boot default for - Dynamic management of timer slack , LowMemoryKiller management of not killable processes and UKSM Already been removed !
- USE PERFORMANCE CONTROL to enable it > http://forum.xda-developers.com/show....php?t=2401988


Quote:
Settings of The Available Features
partly been taken from Christopher explanation thread - http://forum.xda-developers.com/show....php?t=2172148 all credit go to Christopher83 please thank he for prepare this detail of function

LowMemoryKiller management of not killable processes
This feature allows to define processes and system processes white-lists filled with the preferred process names and to not be killed by lowmemorykiller, unless it is absolutely necessary.

This feature exposes four new lowmemorykiller parameters:
- donotkill_proc, is the flag to enable / disable this feature for the processes chosen by the user
- donotkill_sysproc, is the flag to enable / disable this feature for the system processes chosen by the user
- donotkill_proc_names, is the list of process names (comma separated) chosen by the user to be preserved from killing
- donotkill_sysproc_names, is the list of user system process names (comma separated) chosen by the user to be preserved from killing

When the lowmemorykiller needs to free ram, it will first kill the processes not included inside the two process name lists chosen by the user.
If there are no more standard killable processes, then it will be necessary to kill one of the processes included inside one of the two white-lists, to prevent system hangs, slowdowns, etc.

How to customize the white lists of processes to preserve from killing:
 


Logcat and Dmesg now can be on and off

Default is OFF

Turn on logcat by running "logger_switch.sh.pdf" at attachment
1. please rename logger_switch.sh.pdf > logger_switch.sh
2. by using Smanager, tick SU and run the script.
3. now your logcat and dmesg should running back



ZSWAP features

zSwap already been turn on boot with zRAM default size, for those who did not like let zswap active/on, you can switch it off by

1. open script at this location /etc/init.d/disable_zswap.sh
2. edit the script by removing "#" symbol under the description
3. your script should now look like this
Code:
#!/system/bin/sh

# Remove "#" to disable zswap = regain higher benchmarking

if [ -e /dev/block/vnswap0 ]; then
 swapoff /dev/block/vnswap0 >/dev/null
 echo "1" > /sys/block/vnswap0/reset
fi
4. save the script and reboot
 

No comments:

Post a Comment