[Galaxy S Plus I9001 Android Development] hiej:
I dont discover why, but I've made anew script file for every section of 00revengetweaks as

01tunderbolt

02logcatkill

03batterytweaks

04internetspeed

05mounting

06fasterzipaling

07dbdefrag

08sdcardspeed

09kerneltweaks

10supercharger

and then executed each with SManager and found that some run, some not and some partly:

01tunderbolt run partly cause of fact there's errors, I've done corrections (Highlighted in red), the blue part causes error (file not found) and I dont know how to fix it

#!/system/bin/sh

#virtualmemory
#thunderbolt vm

[COLOR="blue"]STL=`ls -d /sys/block/stl*`;
BML=`ls -d /sys/block/bml*`;
MMC=`ls -d /sys/block/mmc*`;
ZRM=`ls -d /sys/block/zram*`;[/color]

echo "3" > /proc/sys/vm/page-cluster;
echo "0" > /proc/sys/vm/laptop_mode;
echo "1000" > /proc/sys/vm/dirty_expire_centisecs;
echo "500" > /proc/sys/vm/dirty_writeback_centisecs;
echo "65" > /proc/sys/vm/dirty_background_ratio;
echo "90" > /proc/sys/vm/dirty_ratio;
echo "1[COLOR="Red"]"[/COLOR] > /proc/sys/vm/vfs_cache_pressure;
echo "1[COLOR="Red"]"[/COLOR] > /proc/sys/vm/overcommit_memory;
echo "0[COLOR="Red"]"[/COLOR] > /proc/sys/vm/oom_kill_allocating_task;
echo "0[COLOR="Red"]"[/COLOR] > /proc/sys/vm/panic_on_oom;
echo "1[COLOR="Red"]"[/COLOR] > /proc/sys/kernel/panic_on_oops;
echo "0[COLOR="Red"]"[/COLOR] > /proc/sys/kernel/panic;
echo "0[COLOR="Red"]"[/COLOR] > /proc/sys/vm/swappiness[COLOR="Red"];[/COLOR]
echo "0" > /sys/module/lowmemorykiller/parameters/debug_level;
echo "64" > /sys/module/lowmemorykiller/parameters/cost;
echo "0,1,3,5,7,15" > /sys/module/lowmemorykiller/parameters/adj;
echo "1280,2560,5120,7680,12800,20480" > /sys/module/lowmemorykiller/parameters/minfree;

02logcatkill I think is working

#!/system/bin/sh
#logcatkill
rm /dev/log/main

03batterytweaks works partly (the part higligted in red causes errors: "kernel.sched_min_granularity_ns is an unknown key" ( and I dont know how to fix it)

#!/system/bin/sh

#BATTERY TWEAKS
sync;
sysctl -w vm.drop_caches=3;
sleep 1;
sysctl -w vm.drop_caches=0;
[COLOR="red"]sysctl -w kernel.sched_min_granularity_ns=500000;[/color]
sysctl -w kernel.sched_latency_ns=1000000;
[COLOR="red"]sysctl -w kernel.sched_wakeup_granularity_ns=250000;[/color]

sysctl -w vm.dirty_expire_centisecs=3000;
sysctl -w vm.dirty_writeback_centisecs=500;

04internetspeed I think is working fine

#!/system/bin/sh

#internet speed

sysctl -w net.ipv4.tcp_timestamps=0;
sysctl -w net.ipv4.tcp_tw_reuse=1;
sysctl -w net.ipv4.tcp_sack=1;
sysctl -w net.ipv4.tcp_dsack=1;
sysctl -w net.ipv4.tcp_tw_recycle=1;
sysctl -w net.ipv4.tcp_window_scaling=1;
sysctl -w net.ipv4.tcp_keepalive_probes=5;
sysctl -w net.ipv4.tcp_keepalive_intvl=30;
sysctl -w net.ipv4.tcp_fin_timeout=30;
sysctl -w net.ipv4.tcp_moderate_rcvbuf=1;

echo "0" > /proc/sys/net/ipv4/tcp_timestamps;
echo "1" > /proc/sys/net/ipv4/tcp_tw_reuse;
echo "1" > /proc/sys/net/ipv4/tcp_sack;
echo "1" > /proc/sys/net/ipv4/tcp_tw_recycle;
echo "1" > /proc/sys/net/ipv4/tcp_window_scaling;
echo "5" > /proc/sys/net/ipv4/tcp_keepalive_probes;
echo "30" > /proc/sys/net/ipv4/tcp_keepalive_intvl;
echo "30" > /proc/sys/net/ipv4/tcp_fin_timeout;
echo "404480" > /proc/sys/net/core/wmem_max;
echo "404480" > /proc/sys/net/core/rmem_max;
echo "256960" > /proc/sys/net/core/rmem_default;
echo "256960" > /proc/sys/net/core/wmem_default;
echo "4096,16384,404480" > /proc/sys/net/ipv4/tcp_wmem;
echo "4096,87380,404480" > /proc/sys/net/ipv4/tcp_rmem;

05mounting it works

#!/system/bin/sh

#mounting

mount -o noatime,remount,ro rootfs /;
mount -o noatime,remount,rw proc /proc;
mount -o noatime,remount,rw sysfs /sys;
mount -o noatime,remount,rw,discard,barrier=0,commit=60,noauto_da_alloc,delalloc /cache /cache;
mount -o noatime,remount,rw,discard,barrier=0,commit=60,noauto_da_alloc,delalloc /data /data;
mount -o noatime,remount,rw,discard,barrier=0,commit=60,noauto_da_alloc,delalloc /persist /persist;
mount -o noatime,remount,ro,discard /system /system;
mount -o noatime,remount,rw /dev /dev;
mount -o noatime,remount,rw /dev/pts /dev/pts;
mount -o noatime,remount,rw /mnt/asec /mnt/asec;
mount -o noatime,remount,rw /mnt/obb /mnt/obb;
mount -o noatime,remount,rw /efs /efs;

06fasterzipaling is working

#!/system/bin/sh

# Much faster zipalign.
# DarkyROM 2011

LOG_FILE=/data/zipalign.log;
ZIPALIGNDB=/data/zipalign.db;

if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

if [ ! -f $ZIPALIGNDB ]; then
touch $ZIPALIGNDB;
fi;

echo "Starting FV Automatic ZipAlign $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

for DIR in /system/app /data/app; do
cd $DIR;
for APK in *.apk; do
if [ $APK -ot $ZIPALIGNDB ] && [ $(grep "$DIR/$APK" $ZIPALIGNDB|wc -l) -gt 0 ]; then
echo "Already checked: $DIR/$APK" | tee -a $LOG_FILE;
else
ZIPCHECK=`/system/xbin/zipalign -c -v 4 $APK | grep FAILED | wc -l`;
if [ $ZIPCHECK == "1" ]; then
echo "Now aligning: $DIR/$APK" | tee -a $LOG_FILE;
/system/xbin/zipalign -v -f 4 $APK /sdcard/download/$APK;
busybox mount -o rw,remount /system;
cp -f -p /sdcard/download/$APK $APK;
grep "$DIR/$APK" $ZIPALIGNDB > /dev/null || echo $DIR/$APK >> $ZIPALIGNDB;
else
echo "Already aligned: $DIR/$APK" | tee -a $LOG_FILE;
grep "$DIR/$APK" $ZIPALIGNDB > /dev/null || echo $DIR/$APK >> $ZIPALIGNDB;
fi;
fi;
done;
done;

busybox mount -o ro,remount /system;
touch $ZIPALIGNDB;
echo "Automatic ZipAlign finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

07dbdefrag is working

#!/system/bin/sh

#Defrags database files

LOG_FILE=/data/S50-vacuum-databases.log

# do nothing if less than 7 days
find $LOG_FILE -type f -mtime +7 -delete

if ! test -f $LOG_FILE; then

/bin/mount -o remount,rw /

if [ -e $LOG_FILE ]; then
rm $LOG_FILE;
fi;

echo "Starting Sqlite Vacuum $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

for i in \
`find /data -iname "*.db"`
do \
sqlite3 $i 'VACUUM;';
echo Vacuum $i | tee -a $LOG_FILE;
done;

for i in \
`find /dbdata -iname "*.db"`
do \
sqlite3 $i 'VACUUM;';
echo Vacuum $i | tee -a $LOG_FILE;
done;

for i in \
`find /sdcard -iname "*.db"`
do \
sqlite3 $i 'VACUUM;';
echo Vacuum $i | tee -a $LOG_FILE;
done;

echo "Sqlite Vacuum finished at $( date +"%m-%d-%Y %H:%M:%S" )" | tee -a $LOG_FILE;

/bin/mount -o remount,ro /

fi;

08sdcardspeed is working (thanks to you)

#!/system/bin/sh

#SD CARD SPEED

READ_AHEAD_KB="1024"

if [ -e /sys/devices/virtual/bdi/179:0/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/179:0/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/179:32/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/179:32/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/7:0/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/7:0/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/7:1/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/7:1/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/7:2/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/7:2/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/7:3/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/7:3/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/7:4/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/7:4/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/7:5/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/7:5/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/7:6/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/7:6/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/7:7/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/7:7/read_ahead_kb
fi;

if [ -e /sys/devices/virtual/bdi/default/read_ahead_kb ]; then
echo $READ_AHEAD_KB > /sys/devices/virtual/bdi/default/read_ahead_kb
fi;

09kerneltweaks does not works, this is the error:

"mount:Device or resouce busy /system/etc/init.d/09kerneltweaks: cannot create /sys/kernel/debug/sched features: permission denied"

"unmount: not found"

this is the script:

#!/system/bin/sh
# Written by Dsexton702

[COLOR="red"]mount -t debugfs none /sys/kernel/debug
echo NO_NORMALIZED_SLEEPER > /sys/kernel/debug/sched_features
unmount /sys/kernel/debug[/color]

10supercharger is working, but now that "01tunderbolt" is partly fixed I dont know if is it useful, specialy for how it concern:

lowmemorykiller/parameters/adj;

lowmemorykiller/parameters/minfree;

because for the first line tunderbolt loads the same values of supercharger, for the second values ar quite similar

#!/system/bin/sh
# V6 SuperCharger, OOM Grouping & Priority Fixes created by zeppelinrox.
currentadj=`cat /sys/module/lowmemorykiller/parameters/adj`;
currentminfree=`cat /sys/module/lowmemorykiller/parameters/minfree`;
scadj=`cat /system/etc/SuperChargerAdj`;
scminfree=`cat /system/etc/SuperChargerMinfree`;
if [[ -n "$scminfree" ]] && [ "$currentminfree" != "$scminfree" ] || [ "$currentadj" != "$scadj" ]; then
echo $scadj > /sys/module/lowmemorykiller/parameters/adj;
sleep 1;
echo $scminfree > /sys/module/lowmemorykiller/parameters/minfree;
fi;
# End of V6 SuperCharged Entries

___________________________________

Help to fix or improve scripts is welocome (I'm not expert on such things...)