[Galaxy Note GT-N7000 Android Development] :
I'm testing several tweaks for the rom that includes governor and memory control. Can anyone try it out and give feedback? Download an app that supports init.d and pop in these codes, make sure you have an empty line UNDER the last line. Save it then start; also compatible with CM13.

If you wanna go back to the stock settings, delete the codes and reboot device.

#!/system/bin/sh
# chmod -R 755 /system/etc/init.d

# disable sysctl.conf to prevent ROM interference
if [ -e /system/etc/sysctl.conf ]; then
mount -o remount,rw /system;
mv /system/etc/sysctl.conf /system/etc/sysctl.conf.fkbak;
mount -o remount,ro /system;
fi;

#turn on all cores
chmod 644 /sys/devices/system/cpu/online
echo 0-1 > /sys/devices/system/cpu/online
chmod 444 /sys/devices/system/cpu/online
echo 1 > /sys/devices/system/cpu/cpu0/online
echo 1 > /sys/devices/system/cpu/cpu1/online

#Temporarily change permissions to governor files for the LITTLE cluster to enable Interactive governor
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
echo interactive > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
echo 200000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq
chmod 644 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
echo 1400000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq
chmod 444 /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

# Increase cache buffers slightly
echo 10 > /proc/sys/vm/dirty_background_ratio;
echo 20 > /proc/sys/vm/dirty_ratio;
echo 100 > /proc/sys/vm/vfs_cache_pressure;
echo 500 > /proc/sys/vm/dirty_expire_centisecs;
echo 3 > /proc/sys/vm/page-cluster;
echo 2000 > /proc/sys/vm/dirty_writeback_centisecs;
echo 1 > /proc/sys/vm/overcommit_memory;
echo 100 > /proc/sys/vm/overcommit_ratio;
echo 4096 > /proc/sys/vm/min_free_kbytes;
echo 1 > /proc/sys/vm/oom_kill_allocating_task;
echo 128 > /proc/sys/kernel/random/read_wakeup_threshold;
echo 384 > /proc/sys/kernel/random/write_wakeup_threshold;

# KSM
echo 100 > /sys/kernel/mm/ksm/pages_to_scan;
echo 500 > /sys/kernel/mm/ksm/sleep_millisecs;
echo 1 > /sys/kernel/mm/ksm/deferred_timer;
echo 0 > /sys/kernel/mm/ksm/run;

#VM + LMK
echo "12288,15360,18432,21504,24576,30976" > /sys/module/lowmemorykiller/parameters/minfree
echo 100 > /proc/sys/vm/vfs_cache_pressure
echo 500 > /proc/sys/vm/dirty_expire_centisecs
echo 3 > /proc/sys/vm/page-cluster
echo 2000 > /proc/sys/vm/dirty_writeback_centisecs
echo 1 > /proc/sys/vm/overcommit_memory
echo 100 > /proc/sys/vm/overcommit_ratio
echo 4096 > /proc/sys/vm/min_free_kbytes
echo 1 > /proc/sys/vm/oom_kill_allocating_task
echo 128 > /proc/sys/kernel/random/read_wakeup_threshold
echo 384 > /proc/sys/kernel/random/write_wakeup_threshold
echo swapon > /dev/block/zram0
eco 419430400 > /sys/block/zram0/disksize
echo 40 > /proc/sys/vm/swappiness

# Interactive
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/use_sched_load;
echo 1 > /sys/devices/system/cpu/cpufreq/interactive/use_migration_notif;
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/max_freq_hysteresis;
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration;
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/max_freq_hysteresis;
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration;
echo 0:700000 1:700000 2:700000 3:700000 > /sys/module/cpu_boost/parameters/input_boost_freq
echo 20 > /sys/module/cpu_boost/parameters/boost_ms;
echo 40 > /sys/module/cpu_boost/parameters/input_boost_ms;
echo 1 > /sys/module/cpu_boost/parameters/input_boost_enabled;
echo 20000 700000:40000 > /sys/devices/system/cpu/cpufreq/interactive/above_hispeed_delay;
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/boost;
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/boostpulse_duration;
echo 75 > /sys/devices/system/cpu/cpufreq/interactive/go_hispeed_load;
echo 400000 > /sys/devices/system/cpu/cpufreq/interactive/hispeed_freq;
echo 50000 > /sys/devices/system/cpu/cpufreq/interactive/min_sample_time;
echo 69 200000:50 300000:33 400000:25 500000:75 600000:12 700000:79 800000:80 900000:11 1000000:82 1100000:9 1200000:83 1300000:95 > /sys/devices/system/cpu/cpufreq/interactive/target_loads;
echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/timer_rate;
echo 20000 > /sys/devices/system/cpu/cpufreq/interactive/timer_slack;
echo 400000 > /sys/devices/system/cpu/cpufreq/interactive/sync_freq;
echo 0 > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy;
echo 40 > /sys/devices/system/cpu/cpufreq/interactive/sampling_down_factor;
echo 1 > /sys/devices/system/cpu/cpufreq/interactive/io_is_busy;
echo 1 > /proc/sys/kernel/sched_migration_fixup;
echo 30 > /proc/sys/kernel/sched_small_task;
echo 99 > /proc/sys/kernel/sched_upmigrate;
echo 85 > /proc/sys/kernel/sched_downmigrate;
echo 400000 > /proc/sys/kernel/sched_freq_inc_notify;
echo 400000 > /proc/sys/kernel/sched_freq_dec_notify;
echo 0 > /proc/sys/kernel/sched_boost;
echo "N" > /sys/module/lpm_levels/system/a7/cpu0/standalone_pc/idle_enabled;
echo "N" > /sys/module/lpm_levels/system/a7/cpu1/standalone_pc/idle_enabled;
echo "N" > /sys/module/lpm_levels/system/a7/cpu2/standalone_pc/idle_enabled;
echo "N" > /sys/module/lpm_levels/system/a7/cpu3/standalone_pc/idle_enabled;
echo "N" > /sys/module/lpm_levels/system/a7/cpu0/standalone_pc/suspend_enabled;
echo "N" > /sys/module/lpm_levels/system/a7/cpu1/standalone_pc/suspend_enabled;
echo "N" > /sys/module/lpm_levels/system/a7/cpu2/standalone_pc/suspend_enabled;
echo "N" > /sys/module/lpm_levels/system/a7/cpu3/standalone_pc/suspend_enabled;
echo 0 > /sys/module/lpm_levels/system/a7/cpu0/retention/idle_enabled;
echo 0 > /sys/module/lpm_levels/system/a7/cpu1/retention/idle_enabled;
echo 0 > /sys/module/lpm_levels/system/a7/cpu2/retention/idle_enabled;
echo 0 > /sys/module/lpm_levels/system/a7/cpu3/retention/idle_enabled;
echo 0 > /sys/module/lpm_levels/parameters/sleep_disabled;

#Enable Input Boost @600MHz for 40ms
echo 0:600000 1:600000 2:600000 3:600000 > /sys/module/cpu_boost/parameters/input_boost_freq
echo 0 > /sys/module/cpu_boost/parameters/boost_ms
echo 40 > /sys/module/cpu_boost/parameters/input_boost_ms

#Disable TouchBoost
echo 0 > /sys/module/msm_performance/parameters/touchboost

# I/O tweaks
echo 100 > /sys/block/mmcblk0/queue/iosched/hp_read_quantum;
echo 75 > /sys/block/mmcblk0/queue/iosched/rp_read_quantum;
echo 5 > /sys/block/mmcblk0/queue/iosched/hp_swrite_quantum;
echo 4 > /sys/block/mmcblk0/queue/iosched/rp_swrite_quantum;
echo 4 > /sys/block/mmcblk0/queue/iosched/rp_write_quantum;
echo 3 > /sys/block/mmcblk0/queue/iosched/lp_read_quantum;
echo 12 > /sys/block/mmcblk0/queue/iosched/lp_swrite_quantum;
echo 10 > /sys/block/mmcblk0/queue/iosched/read_idle;
echo 25 > /sys/block/mmcblk0/queue/iosched/read_idle_freq;
## N4 and N10 row adds lsl and rsl, which were hardcoded previously
echo 10000 > /sys/block/mmcblk0/queue/iosched/low_starv_limit;
echo 5000 > /sys/block/mmcblk0/queue/iosched/reg_starv_limit;
## N4 and N10 have a new version of row with corrected entry for lsq and renamed ri and rif
[ `cat /sys/block/mmcblk0/queue/iosched/lp_swrite_quantum` != "2" ] && echo 2 > /sys/block/mmcblk0/queue/iosched/lp_swrite_quantum;
echo 10 > /sys/block/mmcblk0/queue/iosched/rd_idle_data;
echo 25 > /sys/block/mmcblk0/queue/iosched/rd_idle_data_freq;
echo 100 > /sys/block/mmcblk1/queue/iosched/hp_read_quantum;
echo 75 > /sys/block/mmcblk1/queue/iosched/rp_read_quantum;
echo 5 > /sys/block/mmcblk1/queue/iosched/hp_swrite_quantum;
echo 4 > /sys/block/mmcblk1/queue/iosched/rp_swrite_quantum;
echo 4 > /sys/block/mmcblk1/queue/iosched/rp_write_quantum;
echo 3 > /sys/block/mmcblk1/queue/iosched/lp_read_quantum;
echo 12 > /sys/block/mmcblk1/queue/iosched/lp_swrite_quantum;
echo 10 > /sys/block/mmcblk1/queue/iosched/read_idle;
echo 25 > /sys/block/mmcblk1/queue/iosched/read_idle_freq;
## N4 and N10 row adds lsl and rsl, which were hardcoded previously
echo 10000 > /sys/block/mmcblk1/queue/iosched/low_starv_limit;
echo 5000 > /sys/block/mmcblk1/queue/iosched/reg_starv_limit;
## N4 and N10 have a new version of row with corrected entry for lsq and renamed ri and rif
[ `cat /sys/block/mmcblk1/queue/iosched/lp_swrite_quantum` != "2" ] && echo 2 > /sys/block/mmcblk1/queue/iosched/lp_swrite_quantum;
echo 10 > /sys/block/mmcblk1/queue/iosched/rd_idle_data;
echo 25 > /sys/block/mmcblk1/queue/iosched/rd_idle_data_freq;
echo 1024 > /sys/block/mmcblk1/queue/read_ahead_kb;
echo 1024 > /sys/block/mmcblk0/queue/read_ahead_kb;

#Disable Core Control and Enable Thermal Throttling allowing for longer sustained performance
echo 0 > /sys/module/msm_thermal/core_control/enabled
echo Y > /sys/module/msm_thermal/parameters/enabled

#FS tweaks
echo 10 > /proc/sys/fs/lease-break-time;

#Partition tweaks
busybox mount -o remount,nosuid,nodev,noatime,nodiratime,barrier=0,noauto_da_alloc,discard -t auto /data;
busybox mount -o remount,nosuid,nodev,noatime,nodiratime,barrier=0,noauto_da_alloc,discard -t auto /cache;
busybox mount -o remount,nodev,noatime,nodiratime,barrier=0,noauto_da_alloc,discard -t auto /system;

#Sysfs+sdcard tweaks
busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto /;
busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto /proc;
busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto /sys;
busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto /sys/kernel/debug;
busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto /mnt/shell/emulated;
for i in /storage/emulated/*; do
busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto $i;
busybox mount -o remount,nosuid,nodev,noatime,nodiratime -t auto $i/Android/obb;
done;

# suitable configuration to help reduce network latency
echo 2 > /proc/sys/net/ipv4/tcp_ecn;
echo 1 > /proc/sys/net/ipv4/tcp_sack;
echo 1 > /proc/sys/net/ipv4/tcp_dsack;
echo 1 > /proc/sys/net/ipv4/tcp_low_latency;
echo 1 > /proc/sys/net/ipv4/tcp_timestamps;

# reduce txqueuelen to 100 to optimize upload / download speed;
for i in /sys/class/net/*; do
echo 100 > $i/tx_queue_len;
done;