[Galaxy 3 Android Development] zsolt64:
add some things!

hello

i changed the kernel by g3mod 2.5 non-oc version because my opinion that have enough performance that should not use to oc kernel!

make a customize script from kyrillos and kyorarom(mix)

here:

#!/system/bin/sh

# Kyrillos rom tweaks

# Updated 01/06/12

echo "94kyrillosrom script: Started"

# Removes journalism

#echo "Removing journalism..."

#tune2fs -o journal_data_writeback /dev/block/stl6

#tune2fs -O ^has_journal /dev/block/stl6

mkdir /data/misc

mkdir /data/misc/kyorarom

LOG="/data/misc/kyorarom/tweak.log"

rm $LOG

exec > $LOG 2>> $LOG

sdcardbefore=`mount | grep /mnt/sdcard | grep /dev/block/vold/179`

if [ "$sdcardbefore" = "" ]; then

echo "Mounting SD card"

mount -t vfat /dev/block/mmcblk0p1 /sdcard

mount -t vfat /dev/block/mmcblk0 /sdcard

fi

mkdir /tmp

cp /sdcard/Android/data/Kyorarom/kyoratweaks /tmp

if [ "$sdcardbefore" = "" ]; then

echo "Unmounting SD card"

umount /sdcard

fi

if [ `cat /tmp/kyoratweaks | grep kerneltweaks` = "kerneltweaks=1" ]; then

echo "Enabling kernel tweaks"

echo "0" > /proc/sys/kernel/panic

echo "1" > /proc/sys/kernel/panic_on_oops

echo "64000" > /proc/sys/kernel/msgmni;

echo "64000" > /proc/sys/kernel/msgmax;

echo "500,512000,64,2048" > /proc/sys/kernel/sem;

busybox sysctl -w kernel.shmmax=268435456

busybox sysctl -w kernel.sched_features=24189

busybox sysctl -w kernel.hung_task_timeout_secs=0

busybox sysctl -w kernel.sched_latency_ns=18000000

busybox sysctl -w kernel.sched_min_granularity_ns=1500000

busybox sysctl -w kernel.sched_wakeup_granularity_ns=3000000

busybox sysctl -w kernel.sched_compat_yield=1

busybox sysctl -w kernel.sched_shares_ratelimit=256000

busybox sysctl -w kernel.sched_child_runs_first=0

busybox sysctl -w kernel.threads-max=5000

fi

if [ `cat /tmp/kyoratweaks | grep vmtweaks` = "vmtweaks=1" ]; then

echo "Enabling VM tweaks"

echo "0" > /proc/sys/vm/oom_kill_allocating_task;

echo "0" > /proc/sys/vm/panic_on_oom;

echo "10000" > /proc/sys/vm/vfs_cache_pressure

echo "15" > /proc/sys/vm/dirty_ratio

echo "3" > /proc/sys/vm/dirty_background_ratio

echo "4096" > /proc/sys/vm/min_free_kbytes

echo "0" > /proc/sys/vm/laptop_mode

echo "8" > /proc/sys/vm/page-cluster

busybox sysctl -w vm.oom_kill_allocating_task=0

busybox sysctl -w vm.panic_on_oom=0

busybox sysctl -w vm.min_free_kbytes=8192

busybox sysctl -w vm.overcommit_memory=1

busybox sysctl -w vm.min_free_order_shift=4

busybox sysctl -w vm.dirty_writeback_centisecs=2000

busybox sysctl -w vm.dirty_expire_centisecs=1000

fi

echo "Enabling lowmemorykiller tweaks"

echo "0,1,2,4,6,15" > /sys/module/lowmemorykiller/parameters/adj;

echo "2560,4096,6144,11776,12288,16384" > /sys/module/lowmemorykiller/parameters/minfree;

echo "Enabling various tweaks"

echo "10" > /proc/sys/fs/lease-break-time

umount /sys/kernel/debug

mount -t debugfs none /sys/kernel/debug

# SD card read spead fix

echo "128" > /sys/devices/virtual/bdi/179:0/read_ahead_kb;

# Remount all partitions with noatime,nodiratime

echo "Remounting all partitions with noatime"

for k in $(busybox mount | grep relatime | cut -d " " -f3)

do

sync

busybox mount -o remount,noatime $k

done;

# Mass Storage fix (Thanks to Arakmar)

echo "PDA" > /sys/devices/virtual/sec/switch/usb_sel

# Mount options

echo "Tweaking ext4 partition mount options"

mount -o remount,ro,noatime,nodiratime,delalloc,noauto_da_alloc,commit=600,barrier=1 /dev/block/stl6 /system

mount -o remount,noatime,nosuid,nodev,nodiratime,delalloc,noauto_da_alloc,commit=20,barrier=1 /dev/block/stl7 /data

mount -o remount,noatime,nosuid,nodev,nodiratime,delalloc,noauto_da_alloc,commit=60,barrier=1 /dev/block/mmcblk0p2 /sd-ext

# Fix permissions

busybox chown 1000:1000 /data

busybox chmod 771 /data

busybox chown 1000:1000 /data/app

busybox chmod 771 /data/app

busybox chown 1000:1000 /data/app-private

busybox chmod 771 /data/app-private

busybox chown 1000:1000 /data/dalvik-cache

busybox chmod 771 /data/dalvik-cache

busybox chown 1000:1000 /sd-ext

busybox chmod 771 /sd-ext

busybox chown 1000:1000 /sd-ext/app

busybox chmod 771 /sd-ext/app

busybox chown 1000:1000 /sd-ext/app-private

busybox chmod 771 /sd-ext/app-private

busybox chown 1000:1000 /sd-ext/dalvik-cache

busybox chmod 771 /sd-ext/dalvik-cache

# Remount Debug to NONE to reduce resource drain

echo "Remounting Debug to NONE to reduce resource drain"

busybox mount -t debugfs none /sys/kernel/debug 2>/dev/null

echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features 2>/dev/null;

busybox umount /sys/kernel/debug

# Default Cpu Governor: Ondemand & some tweaks

echo "Setting Ondemand as default cpu governor & tweaking it"

echo "ondemand" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor;

echo "90" > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold;

echo "20000" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_rate;

echo "4" > /sys/devices/system/cpu/cpufreq/ondemand/sampling_down_factor;

#echo "1000000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq;

#echo "100000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_min_freq;

# Flags every mounted partition as non rotational and increases it's cache size for more read speed

BML=`ls -d /sys/block/bml*`;

LOOP=`ls -d /sys/block/loop*`;

MMC=`ls -d /sys/block/mmc*`;

RAM=`ls -d /sys/block/ram*`;

STL=`ls -d /sys/block/stl*`;

ZRM=`ls -d /sys/block/zram*`;

# I/O scheduler No-op

echo "Setting noop as Default Scheduler"

for i in $STL $BML $MMC;

do

echo "noop" > $i/queue/scheduler;

done;

# Optimize non-rotating storage

echo "Optimizing non-rotating storage"

for i in $BML $MMC $RAM $STL $ZRM

do

if [ -e $i/queue/rotational ];

then

echo "0" > $i/queue/rotational;

fi;

if [ -e $i/queue/read_ahead_kb ];

then

echo "512" > $i/queue/read_ahead_kb;

fi;

if [ -e $i/queue/nr_requests ];

then

echo "512" > $i/queue/nr_requests;

fi;

if [ -e $i/queue/iosched/writes_starved ];

then

echo "1" > $i/queue/iosched/writes_starved;

fi;

if [ -e $i/queue/iostats ];

then

echo "0" > $i/queue/iostats;

fi;

if [ -e $i/queue/iosched/rev_penalty ];

then

echo "1" > $i/queue/iosched/rev_penalty;

fi;

if [ -e $i/queue/rq_affinity ];

then

echo "1" > $i/queue/rq_affinity;

fi;

done;

echo "94kyrillosrom script: Ended"

.....performance have bit better like before!!!!!:)

youtube play all videos also in normal and HQ mode:D

internet speed it's amazing fast!:D

installed dolby_srs_g3 mod to better and powerful sounds:D

gps is still lock within 10 seconds(i use IGO whit newest maps, and this is best navigation as yet)

on the whole so much....:) beautiful:)

good rom, good kernel and good scripts and mods!!!!!

thanks!