nope, "-l" (L) should not be used, it give you long output.
"-1" give 'one file per line' option, which did not supported (yet)
Hi. For vm.swappiness, a value of 0 means "do not swap unless out of free RAM", a value of 100 means "swap whenever possible". The default is 60 which is okay for normal Linux installations.On my GNU/Linux system I've set vm.swappiness to 10, because I've got plenty MiB of RAM and I don't want my system to swap a lot. Is this swappiness the same as Linux? Because that would mean having the system to use more RAM, and since we don't have much of that available by default, I'm just surprised you didn't set a higher value. (I'm not saying you don't know what you're doing, I just want to learn how it works!)
By the way, this script is going to be a must-have, I think you've put an excellent effort on i9000 Android development! Thanks for sharing!
That's strange. Could be different busybox versions. I am using busybox 1.17. The idea is to get a list of directories. If that doesn't work, you can manually put in the list of correct devices.btw, "ls -1 /sys/block/mmc*" in adb give us:
so, "-1" key is uselessCode:ls -1 /sys/block/mmc* -1: No such file or directory /sys/block/mmcblk0 /sys/block/mmcblk1
No there won't be any significant change in Quadrant. This is more for responsiveness and to reduce the lags.anyone test IO benchmark in quadrant before and after applying this tweaks?
any change?
No there won't be any significant change in Quadrant. This is more for responsiveness and to reduce the lags.
strange, because if you change write params and remove lags this should give some results..
strange, because if you change write params and remove lags this should give some results..
Hi. For vm.swappiness, a value of 0 means "do not swap unless out of free RAM", a value of 100 means "swap whenever possible". The default is 60 which is okay for normal Linux installations.
Swap = move portions of programs in RAM to disk (swap partition or file), to free up RAM so that more programs can run.
However Android by default doesn't have any swap partition or files (there is nowhere to swap to). It doesn't really need it though, since it has its own memory management system, so swap is never used. Nevertheless, I feel safer setting it to 0.
That's strange. Could be different busybox versions. I am using busybox 1.17. The idea is to get a list of directories. If that doesn't work, you can manually put in the list of correct devices.
# mount | cut -d " " -f3
mount | cut -d " " -f3
rootfs
tmpfs
devpts
proc
sysfs
cgroup
j4fs
tmpfs
cgroup
rfs
rfs
rfs
rfs
rfs
vfat
vfat
vfat
tmpfs
#
# mount -o remount,rw /system
mount -o remount,rw /system
Usage: mount [-r] [-w] [-o options] [-t type] device directory
#
I use busybox 1.17.Code:# mount | cut -d " " -f3 mount | cut -d " " -f3 rootfs tmpfs devpts proc sysfs cgroup j4fs tmpfs cgroup rfs rfs rfs rfs rfs vfat vfat vfat tmpfs
# Tweak cfq io scheduler
for i in $(ls -1 /sys/block/stl*) $(ls -1 /sys/block/mmc*) $(ls -1 /sys/block/bml*) $(ls -1 /sys/block/tfsr*)
do echo "0" > $i/queue/rotational
echo "1" > $i/queue/iosched/low_latency
echo "1" > $i/queue/iosched/back_seek_penalty
echo "1000000000" > $i/queue/iosched/back_seek_max
echo "3" > $i/queue/iosched/slice_idle
done
adb shell ls -1 /sys/block/bml10
bdi
capability
dev
ext_range
holders
power
queue
range
removable
ro
size
slaves
stat
subsystem
uevent
adb shell ls -d -1 /sys/block/bml*
/sys/block/bml0!c
/sys/block/bml1
/sys/block/bml10
/sys/block/bml2
/sys/block/bml3
/sys/block/bml4
/sys/block/bml5
/sys/block/bml6
/sys/block/bml7
/sys/block/bml8
/sys/block/bml9
It doesn't need fstab to work. Maybe the output of your mount command is different? The idea is to get a list of all the mount points. Or just manually put them in.theres no fstab in my JP6 so i cant really use the remount thing since need both device name and directory.. maybe use awk or sed instead of cut?
That's the desired output. I think it's not running because u issued the command using adb.Does the above as-is run without issue on your phones? Cause the output I get are single line display of the files in the directory. I think expected behaviour is the directory itself?
Like:
NOW
Code:adb shell ls -1 /sys/block/bml10 bdi capability dev ext_range holders power queue range removable ro size slaves stat subsystem uevent
SHOULD BE:
Code:adb shell ls -d -1 /sys/block/bml* /sys/block/bml0!c /sys/block/bml1 /sys/block/bml10 /sys/block/bml2 /sys/block/bml3 /sys/block/bml4 /sys/block/bml5 /sys/block/bml6 /sys/block/bml7 /sys/block/bml8 /sys/block/bml9
in order to make the script work.
To do so I added " -d " to the ls command, ex. "ls -d -1 /sys/block/bml*"
this script for sure should be reworked.
i have no /system/sbin/ls, only usual ls.
btw, "-1" option non required, because "ls" anyway print 1 file per line (at least at JP6 stock firmware).
second,
Code:# mount | cut -d " " -f3 mount | cut -d " " -f3 rootfs tmpfs devpts proc sysfs cgroup j4fs tmpfs cgroup rfs rfs rfs rfs rfs vfat vfat vfat tmpfs #
and moreover, "mount" require "device" at JP6:
Code:# mount -o remount,rw /system mount -o remount,rw /system Usage: mount [-r] [-w] [-o options] [-t type] device directory #
# Tweak cfq io scheduler
for i in $(ls -1 /sys/block/stl*) $(ls -1 /sys/block/mmc*) $(ls -1 /sys/block/bml*) $(ls -1 /sys/block/tfsr*)
do echo "0" > $i/queue/rotational
echo "1" > $i/queue/iosched/low_latency
echo "1" > $i/queue/iosched/back_seek_penalty
echo "1000000000" > $i/queue/iosched/back_seek_max
echo "3" > $i/queue/iosched/slice_idle
done
# Remount all partitions with noatime
for k in $(busybox mount | grep relatime | cut -d " " -f3)
do
sync
busybox mount -o remount,noatime $k
done
# Tweak kernel VM management
echo "0" > /proc/sys/vm/swappiness
#echo "10" > /proc/sys/vm/dirty_ratio
#echo "4096" > /proc/sys/vm/min_free_kbytes
# Tweak kernel scheduler, less aggressive settings
echo "18000000" > /proc/sys/kernel/sched_latency_ns
echo "3000000" > /proc/sys/kernel/sched_wakeup_granularity_ns
echo "1500000" > /proc/sys/kernel/sched_min_granularity_ns
# Misc tweaks for battery life
echo "2000" > /proc/sys/vm/dirty_writeback_centisecs
echo "1000" > /proc/sys/vm/dirty_expire_centisecs
Startup scripts r a bit tricky if the kernel doesn't support it. I suggest u check out my speedmod kernel which already has these tweaks and also startup script support.Hi hardcore,
I've got a question.
I followed the steps in the first post.
As far as I can see everything is set up as you described.
With Root Explorer I've checked whether userinit.sh was in data,
and it is.
What I don't know though,
do I have to go trough the steps in this post as well?
http://xdaforums.com/showthread.php?t=819580
I suppose that topic is part of the startup script you posted here..
because I see similar code.
Or does the [HOWTO] Optimal ext4 mount options tutorial give other advantages when combined with this tutorial?
I've made it to the step
* Repeat the above for all other ext4 partitions.
As I am not really sure how to apply to the other partitions..
hope you can help me.
you could make a script/app for this so everyone else can try it ?
Nice, could these be modified post-startup? like I go adb and copy paste some of them for testing?
I've tested setprop windowsmgr.max_events_per_sec 68, no difference. Set it to
setprop windowsmgr.max_events_per_sec 10 and still, no difference.