[Galaxy S I9000 Q&A, Help & Troubleshooting] liweichuchu:
How can I overclock GPU by 400MHz？I have heart about that the SGX540 may actually clocked at 400MHZ。http://xdaforums.com/showthread.php?p=15107363

:confused:

:confused:

:confused:

How to improve 3D performance ？How to get more than 5000 in antutu？

Does the below sript have any proplem？

#!/system/bin/sh

###

##

#

busybox cp /system/.nomedia /d/

busybox cp /system/.nomedia /data/

busybox cp /system/.nomedia /dbdata/

busybox cp /system/.nomedia /dev/

busybox cp /system/.nomedia /etc/

busybox cp /system/.nomedia /lib/

busybox cp /system/.nomedia /mnt/

busybox cp /system/.nomedia /sys/

insmod /lib/modules/deadline-iosched.ko

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

for a in $mmc $stl; do

echo deadline > $a/queue/scheduler

echo 8 > $a/queue/iosched/fifo_batch

echo 400 > $a/queue/iosched/read_expire

echo 4 > $a/queue/iosched/writes_starved

echo 0 > $a/queue/iostats

echo 4 > $a/queue/nr_requests

echo 0 > $i/queue/rotational

done

busybox sysctl -w kernel.sched_latency_ns="600000"

busybox sysctl -w kernel.sched_wakeup_granularity_ns="3000000"

#busybox sysctl -w kernel.sched_min_granularity_ns="1500000"

#echo "2048" > /proc/sys/kernel/msgmni;

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

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

#echo "NO_NORMALIZED_SLEEPER" > /sys/kernel/debug/sched_features

#echo "NO_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features

#echo "NO_GENTLE_FAIR_SLEEPERS" > /sys/kernel/debug/sched_features

#echo "2000" > /proc/sys/vm/dirty_writeback_centisecs

#echo "1000" > /proc/sys/vm/dirty_expire_centisecs

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

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

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

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

echo 80 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

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;

setprop debug.sf.hw 1; # HARDWARE RENDERING (GPU)

setprop video.accelerate.hw 1;

setprop debug.performance.tuning 1;

if [ -e /sys/module/pm_hotplug/parameters/loadl ]; then

echo 40 > /sys/module/pm_hotplug/parameters/loadl;

echo 90 > /sys/module/pm_hotplug/parameters/loadh;

echo 50 > /sys/module/pm_hotplug/parameters/loadl_scroff;

echo 100 > /sys/module/pm_hotplug/parameters/loadh_scroff;

echo 200 > /sys/module/pm_hotplug/parameters/rate;

echo 800 > /sys/module/pm_hotplug/parameters/rate_cpuon;

echo 800 > /sys/module/pm_hotplug/parameters/rate_scroff;

echo 500000 > /sys/module/pm_hotplug/parameters/freq_cpu1on;

fi;

if [ -e /sys/devices/system/cpu/cpu0/cpufreq/smooth_target ]; then

echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/smooth_target;

echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/smooth_offset;

echo 0 > /sys/devices/system/cpu/cpu0/cpufreq/smooth_step;

fi;

if [ -e /sys/devices/system/cpu/sched_mc_power_savings ]; then

echo 1 > /sys/devices/system/cpu/sched_mc_power_savings;

fi;

if [ -e /sys/module/cpuidle/parameters/enable_mask ]; then

echo 3 > /sys/module/cpuidle/parameters/enable_mask;

fi;

if [ -e /sys/class/misc/brightness_curve/min_bl ]; then

echo 20 > /sys/class/misc/brightness_curve/min_bl;

echo 1 > /sys/class/misc/brightness_curve/min_gamma;

echo 24 > /sys/class/misc/brightness_curve/max_gamma;

fi;

#echo 4 > /sys/devices/system/cpu/cpu0/cpufreq/deepsleep_cpulevel;

#echo 1 > /sys/devices/system/cpu/cpu0/cpufreq/deepsleep_buslevel;

echo "1300000" > /sys/devices/system/cpu/cpu0/cpufreq/scaling_max_freq

echo "0 0 0 0 0 0 0 " > /sys/devices/system/cpu/cpu0/cpufreq/UV_mV_table

echo "1 1 1 1 1 1 " > /sys/devices/system/cpu/cpu0/cpufreq/states_enabled_table

echo "300 400 300 400 300 400 300 300 267 267 200 100 " > /sys/devices/system/cpu/cpu0/cpufreq/gpu_clock_table

echo 85 > /sys/devices/system/cpu/cpufreq/ondemand/up_threshold

echo "500" > /proc/sys/vm/dirty_expire_centisecs

echo "1000" > /proc/sys/vm/dirty_writeback_centisecs

# CFS options moved elsewhere!

#if [ -e /proc/sys/kernel/rr_interval ];

#then

# BFS;

#	echo 6 > /proc/sys/kernel/rr_interval;

#	echo 75 > /proc/sys/kernel/iso_cpu;

#else

# CFS

# following 2 settings are to be handled with care - could lead to bootlooping phone or other issues if too low !

#echo 100000 > /proc/sys/kernel/sched_latency_ns; # 1000000 # 18000000 # 1000000 # 100000 ## new

#echo 500000 > /proc/sys/kernel/sched_wakeup_granularity_ns	; # 500000 # 3000000 # 25000 # 0 (?)

#echo 750000 > /proc/sys/kernel/sched_min_granularity_ns; # 1000000 # 1500000 # 100000 # 1000000 ## 750000 (upstream)

#echo 200000 > /proc/sys/kernel/sched_min_granularity_ns; # 1000000 # 1500000 # 100000 # 1000000 ## 750000 (upstream)

#echo 400000 > /proc/sys/kernel/sched_latency_ns; # 1000000 # 18000000 # 1000000 # 100000 ## new

#echo 100000 > /proc/sys/kernel/sched_wakeup_granularity_ns	; # 500000 # 3000000 # 25000 # 0 (?)

#echo -1 > /proc/sys/kernel/sched_rt_runtime_us;

#echo 100000 > /proc/sys/kernel/sched_rt_period_us;

#echo 95000 > /proc/sys/kernel/sched_rt_runtime_us; # default: 950000; very small values in sched_rt_runtime_us can result in an unstable system when the runtime is so small

# the system has difficulty making forward progress (the migration thread and kstopmachine both are real-time processes)

#fi;

insmod /lib/modules/deadline-iosched.ko

mmc=`ls -d /sys/block/mmc*`; stl=`ls -d /sys/block/stl*`; bml=`ls -d /sys/block/bml*`; tsfr=`ls -d /sys/block/tfsr*`;

for a in $mmc $stl $bml $tsfr; do

echo deadline > $a/queue/scheduler

echo 8 > $a/queue/iosched/fifo_batch

echo 400 > $a/queue/iosched/read_expire

echo 4 > $a/queue/iosched/writes_starved

echo 0 > $a/queue/iostats

echo 4 > $a/queue/nr_requests

echo 0 > $i/queue/rotational

done

#echo "2000" > /proc/sys/vm/dirty_writeback_centisecs

#echo "1000" > /proc/sys/vm/dirty_expire_centisecs

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

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

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

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

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 1 > /sys/class/misc/backlightnotification/enabled

sync

echo 3 > /proc/sys/vm/drop_caches

setprop ro.ril.disable.power.collapse = 1

#MAX_PHONE()

#{

#pidphone=`pidof com.android.phone`;

#if [ $pidphone ]; # Wait for com.android.phone to start;

#then#

#	echo -17 > /proc/$pidphone/oom_adj; # exclude com.android.phone from oom-killer;

#	renice -20 $pidphone; # set highest nice level for com.android.phone;

##	log -p i -t SSSwitch_v0.8 "*** MAX phone *** set oom_adj(-17) and nice(-20) for com.android.phone";

#	exit;

#else

#	sleep 5;

#	MAX_PHONE;

#fi;

#}

echo 1 > /sys/class/misc/backlightnotification/enabled

sleep 10

sync

echo 3 > /proc/sys/vm/drop_caches

Sorry for my weak English。