[Galaxy Note II Original Android Development] pongster:
RedPill Features

Highlights

Exynos-Abuse Secured (Thanks to AndreiLux for the original low level patch & Samsung for the Official Fix)

SDS patch included

Ramfs from Stock Kernel + Busybox and its various functions in /sbin

Versions up to Rev1.00 were Based on Samsung Galaxy Note 2 N7100 Source Drop Release 1; Rev1.01 and up are based on N8000 Sources

Included patches for performance, stability and battery life

Init.d support

SetCPU, ROM Toolbox and Voltage Control Support

CPU Overclocking and Undervolting Support (Thanks to AndreiLux)

GPU Overclocking and Undervolting Support (Thanks to AndreiLux)

Enable or Disable File Syncing

(fsync disabled by default as I've tweaked the system for optimum latency designed for Flash Storage)

CFS Autogroup by Mike Galbraith Enabled

CPU Topology and Sched_MC enabled

AFTR and LPA enabled

A lot of tunables via sysfs included (Use ROM Toolbox or similar Utility to easily change it)

Git Implementation of SHA-1 for 12% faster boot time

CPU set at 1.6Ghz at Boot for faster boot time (Thanks to Imoseyon)

LZO compressed kernel using optimized values for the size of the kernel for faster boot time (Using faster lzo code from mainline)

CIFS Support (cifs.ko located in /lib/modules) | Tweaked Ext4 Filesystem

(Patches + Mount Options + Tweaked IO Schedulers leaning towards latency for Flash Storage)

sio | zen | row | noop | deadline (tweaked for better latency and balanced throughput for Mobile NAND based devices)

Tweaked the mount options for Ext4 to adapt to the current focus on latency

pegasusq CPU Governor (Thanks to AndreiLux for the some of the new governor specific logic he added)

WiFi Multicast Blocked (Thanks to Entropy512)

Using Google Toolchain 4.7 + compiler optimizations specific for that version (Thanks Google & Linaro)

Power Saving Features:

AFTR + LPA enabled

sched_mc enabled (set at 2 by default)

ARM CPU Topology enabled

No HZ enabled

Boot Time Features:

Used git Implem of SHA-1 for 12% Boot time improvement

Added [PATCH] arm: remove "optimized" SHA1 routines by Linus Torvalds

Added [PATCH] arm: remove stale export of 'sha_transform' Linus Torvalds

Set Clockspeed at 1.6Ghz at Boot time to ensure all critical tasks have enough power to perform them while

the governors/maxfreq isn't set yet. (Thanks to Imoseyon for this hack)

CPU Features

Supports CPU Overclocking and Undervolting (Thanks to AndreiLux)

Supports GPU Overclocking or Undervolting (Thanks to AndreiLux)

pegasusq CPU Governor pegasusq set as default (obviously) :)

Filesystem Features (Currently Supported)

ExFat (Using Proprietary Samsung Modules) *Stock based RedPill only

Fat32

Ext2/3/4

CIFS (cifs.ko is in /lib/modules)

Ext2Int for N7100 (Thanks to mattiadj for idea and base script that I used to get it fully working on N7100 and RedPill) (ExFAT and FAT32 only) *Stock based RedPill only

I/O Schedulers

SIO (2012 0.2 version) (tweaked for Flash) Set as Default

deadline (tweaked for Flash)

zen (Thanks to bbedward)

noop

row (Thanks to Tanya Brokhman)

Tweaked values in deadline and SIO I/O scheduler to give better than average throughput while attemting to improve latency (if not more aggressive). Based on our initial (indicative, not conclusive... yet) testing, having these in line with the vm dirty, expire, writeback values + ext4 mount options to "schedule" write outs as fast as the system can handle it works quite well to balance throughput with latency expected in a mobile device. We took the big picture view and tested our tweaks instead of copy pasting random "known" good values and challenged some assumptions even we had at the start. The result is a mobile device tuned for average throughput and balanced battery life with good latency (not the lowest latency out there, but given the benefits of better I/O throughput and potential battery savings + extending the lifetime of NAND Based storage I think it was a compromise worth taking) I could have tweaked it for extremely great throughput and battery savings but that wouldn't be fun to use. I hate micro-lags myself.

Our Test Data regarding I/O schedulers and Kernel Tweaks can be found HERE.

The blog post that describes what we are trying to do can be found on my blog post HERE. (Thanks to s2d4)

Memory Features

Custom minfree values tweaked for 2GB RAM

Tweaked vm values in sysctl that's optimized for latency

Display Features

Stock mdnie values for more vivid details on the current generation of AMOLED Displays

Performance Patches Enabled

Mike Galbraith's Ultimate CFS Performance Patch (CFS Autogroup)

*More info on this here: https://lkml.org/lkml/2010/11/20/91

Added the CGroup Patch:*Added [PATCH] cgroup: Provides a way of tasks grouping by timer slack value

by Kirill A. Shutemov Based on patch by Jacob Pan. Introduces per cgroup timer slack value

which will override the default timer slack value once a task is attached to a cgroup. It's useful in mobile devices where

certain background apps are attached to a cgroup and minimum wakeups are desired.

Experimental Latency Related Patches

Disabled "fsync disabled" by default

(can be enabled by doing an echo "0" > /sys/class/misc/fsynccontrol/fsync_enabled

in a terminal emulator or as a script for gscript or scriptmanager) (Or use STweaks to toggle it) (Thanks to Ezekeel)

Using the tweaked Ext4 filesystem + scheduler and mount options leaning towards latency + vm values in the kernel

makes the most of the speed of Flash Storage based devices. At the speed at which the data is written to and from the kernel

to the Fast Storage devices, you would only lose up to 1 second worth of data at most

IF

the kernel crashes.

I don't plan on that happening so I enabled the system to get the maximum possible performance in this area.

Tweaked Ext4 Filesystem (Patches + Mount Options + Tweaked IO Schedulers leaning towards latency)

Tweaked the mount options for Ext4 to adapt to the current focus on latency

3rd Party Kernel Apps Support

STweaks by gokhanmoral

ROM Toolbox by jrummy

SetCPU by michaelhuang

System Tuner

Voltage Control | ExTweaks by xan