yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] kenshinta:
Which was the desired output?

I just posted the commands in the script in adb for quoting purpose since it was similar. I had a logcat that showed the erroneous entries but i overwrote it already. It went like this from what i recall:

cannot create ro/sys/block/stl1/queue/iosched/low_latency: directory nonexistent
cannot create size/sys/block/stl1/queue/iosched/low_latency: directory nonexistent
cannot create slaves/sys/block/stl1/queue/iosched/low_latency: directory nonexistent
cannot create stat/sys/block/stl1/queue/iosched/low_latency: directory nonexistent
cannot create subsystem/sys/block/stl1/queue/iosched/low_latency: directory nonexistent
cannot create uevent/sys/block/stl1/queue/iosched/low_latency: directory nonexistent

so on so forth

Because the for loop as is captures as input the files inside the directory, not the directory itself as i explained.
[Galaxy S I9000 Android Development] hardcore:
Ah I see. It works in my configuration though - the ls is supposed to output the directories as you said (the directories being the block devices). I guess you've managed to make it work with yours also by now.
[Galaxy S I9000 Android Development] mathieumeuh:
My working script

That script works well on my SGS. I tested it and I didn't see any changes, but you can try as you want because these parameters will be resetted at reboot.

echo "Remount all partitions with noatime"

for k in $(mount | cut -d " " -f3)
do
sync
mount -o remount,noatime $k
done

echo "Tweak cfq io scheduler"

for i in $(ls /sys/block/stl*) $(ls /sys/block/mmc*) $(ls /sys/block/bml*) $(ls /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

echo "Tweak kernel VM management"
echo "0" > /proc/sys/vm/swappiness
echo "10" > /proc/sys/vm/dirty_ratio
echo "1000" > /proc/sys/vm/vfs_cache_pressure
echo "4096" > /proc/sys/vm/min_free_kbytes

echo "Tweak kernel scheduler"
echo "4000000" > /proc/sys/kernel/sched_latency_ns
echo "1000000" > /proc/sys/kernel/sched_wakeup_granularity_ns
echo "800000" > /proc/sys/kernel/sched_min_granularity_ns

echo "Miscellaneous tweaks"
setprop dalvik.vm.startheapsize 8m
setprop wifi.supplicant_scan_interval 90
[Galaxy S I9000 Android Development] initrd:
won't this also remount all partitions with only the noatime option and discard defaults? this should ideally add noatime to the list of mount options and not replace.
[Galaxy S I9000 Android Development] hardcore:
Nope. This does what u said - it adds the noatime option and the other existing options remain the same. For example, this is my mount output *after* the script:

# mount
mount
rootfs on / type rootfs (ro,noatime)
tmpfs on /dev type tmpfs (rw,noatime,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
none on /acct type cgroup (rw,relatime,cpuacct)
/dev/block/stl6 on /mnt/.lfs type j4fs (rw,noatime)
tmpfs on /mnt/asec type tmpfs (rw,noatime,mode=755,gid=1000)
none on /dev/cpuctl type cgroup (rw,relatime,cpu)
/dev/block/stl9 on /system type rfs (ro,noatime,vfat,log_off,check=no,gid/uid/rwx,iocharset=utf8)
/dev/block/mmcblk0p2 on /data type rfs (rw,nosuid,nodev,noatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8)
/dev/block/stl10 on /dbdata type rfs (rw,nosuid,nodev,noatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8)
/dev/block/stl11 on /cache type rfs (rw,nosuid,nodev,noatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8)
/dev/block/stl3 on /efs type rfs (rw,nosuid,nodev,noatime,vfat,llw,check=no,gid/uid/rwx,iocharset=utf8)
/dev/block/vold/179:1 on /mnt/sdcard type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002,allo
w_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:9 on /mnt/sdcard/external_sd type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dma
sk=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/vold/179:9 on /mnt/secure/asec type vfat (rw,dirsync,nosuid,nodev,noexec,relatime,uid=1000,gid=1015,fmask=0002,dmask=0002
,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /mnt/sdcard/external_sd/.android_secure type tmpfs (ro,relatime,size=0k,mode=000)
/dev/block/dm-0 on /mnt/asec/com.rovio.angrybirds-1 type vfat (ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=022
2,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/dm-1 on /mnt/asec/com.gm.f1.main-1 type vfat (ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,dmask=0222,code
page=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
/dev/block/dm-2 on /mnt/asec/com.google.android.stardroid-1 type vfat (ro,dirsync,nosuid,nodev,noexec,relatime,uid=1000,fmask=0222,d
mask=0222,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)

BTW my init script runs before the vold mounts the SD cards, so those were not remounted. I still haven't figured out how to make an init script that can run after the vold mounts the SD cards.
[Galaxy S I9000 Android Development] initrd:
that's neat. i guess it's busybox behaviour. on linux, it does replace fs options from what i gather.

cool, shall try your changes sometime! :)
[Galaxy S I9000 Android Development] pele78:
Thanks ryan for that tip, i tested the minfree with strict option..

And i noticed a fast start up, faster scan. and a smoother usage of the phone especially the app drawer ( paying attention to the bounce effect) using Zeam Launcher..

Simple lagfix - Thanks.

Im passing on this simplicity approach to Curio, so he understands the need of simplicity by the WIDER community inside and oustide of XDA.

Both of you have produced some outstanding pieces.

(and those who i have not mentioned or seen)

Good work making the Galaxy S, the peoples choice of smartphone, despite the tiny hicups!!

five million and sold cant be wrong :)
[Galaxy S I9000 Android Development] RyanZA:
OCLF now has an option to apply (most) of these fixes. It should be up in the market shortly, or you can download it from the OCLF thread. It will hopefully make these options easier to apply for the non-kernel hackers around here. ;)
[Galaxy S I9000 Android Development] cHarOn99:
will this work also with [KERNEL][101020] Universal lagfix kernel {alpha 0.1} http://xdaforums.com/showthread.php?t=814228, i mean does it affect anything if i use as example with that kernel the ext4 lagfix?
[Galaxy S I9000 Android Development] :
will OCLF(startup script tweak) works on voodoo kernel pre6 for JPM/JP6?

Thanks a lot looking forward ur release :D
[Galaxy S I9000 Android Development] zenkinz:
0.2 includes the hack, so just go to tweaks section (in the ULF) and apply all the tweaks.
[Galaxy S I9000 Android Development] hardcore:
Added instructions on how to create a startup script using the playlogos1 hack.
[Galaxy S I9000 Android Development] hardcore:
Update: Changed the script to use less aggressive values for the Task Scheduler tweaks.
[Galaxy S I9000 Android Development] hardcore:
Updated: Added busybox in front of mount commands. Busybox mount returns the correct format.
[Galaxy S I9000 Android Development] exadeci:
Same with scan and zeam but I was thinking that it was just a feeling that I had but if you felt same too seems that is real change :D
[Galaxy S I9000 Android Development] EarlZ:
Does this start up tweak play well with Voodoo5 Pre 6 or this is just for RFS?
[Galaxy S I9000 Android Development] ch33kybutt:
Thanks for the speed tweaks, already created a version for i5700 users to test over on Samdroid.

Did some simple testing on ext2 filesystems, comparing the various schedulers [noop anticipatory deadline cfq] using quadrant advanced (average of 20 samples each), and results show only marginal differences in terms of performance, with cfq fastest and (surprisingly) deadline slowest.

However, there seem to be some differences in CFQ module between i9000 and i5700 (on CyanogenMod-6.1.0-nightlys)...

../queue/iosched/low_latency : does not exist in i5700

../queue/iosched/slice_idle : read-only, unable to change from default setting of 5
​

in fact here's the ls output of iosched with cfq enabled (with default values)

back_seek_max = 16384
back_seek_penalty = 2
fifo_expire_async = 250
fifo_expire_sync = 125
quantum = 4
slice_async = 40
slice_async_rq = 2
slice_idle = 5
slice_sync = 100

Would you have any recommendations to further tweak the above values?
[Galaxy S I9000 Android Development] hardcore:
Works well with Voodoo. I've used it with Voodoo and z4mod (ext4), both are okay.
[Galaxy S I9000 Android Development] hardcore:
Actually those are the same as the i9000 default values. You can try the same values that I posted here, they should improve the performance as well.

Not sure about the read-only error you encountered - you need root for this.
[Galaxy S I9000 Android Development] jjwa:
I have found one specific scenario where it does not combine nicely.

With the Doc_Kalpik rom ROM, I enabled these included startup script tweaks first from the CWM menu, and later tried to install Voodoo with the update.zip method they provided. (Method not by curio, so unsupported and unofficial.) It corrupted my installation and I had to reflash.
[Galaxy S I9000 Android Development] marty1976:
How do I run this on a rooted stock JM1?

I did adb shell, then 'su'd and tried to execute the first loop but to no avail:

Edit: -1 as parameter doesn't work either.

Maybe 'cause I'm running busybox 1.15.3?

Edit 2: No, it was because the 'busybox' was missing before 'cut'.

Now the first loop worked with one exception:

Not sure about the io scheduler config though:
[Galaxy S I9000 Android Development] EarlZ:
I guess thats the case coz when you apply vooodoo5 pre6 the options on the CWM will be gone, im wondering if this is compatible with NO-RFS+EXT4..

Also do you need to re-apply this after every reboot ?
[Galaxy S I9000 Android Development] sztupy:
You need to re-apply these every boot, that's why you have to put these in some sort of init script (like the bootlogos hack).

ULTK of course does that for you, until you replace it with another kernel.
[Galaxy S I9000 Android Development] dupel:
How do i remount only /system (since Im using universal kernel and it applyes other fixes). Btw, anyone knows what sctipt universal lagfix runs on startup?
[Galaxy S I9000 Android Development] sztupy:
It runs /sbin/pre-init.sh before init, then runs /sbin/post-init.sh after init. Post-init.sh wil run the bootlogos file, so if you don't want to recompile the initramfs, you can still use the bootlogos hack. I also added init.d support, although I didn't test it yet (add bash scripts to /system/init.d beginning with S iirc, like S01remountstuff.sh and they should be run at boot post-init). /system will be remounted at the end of post-init.sh ro, but before the playlogos.
[Galaxy S I9000 Android Development] dupel:
Thanks for info. Now I'm trying to be a smart guy and and use it =)

I fear soon I will need to compile a kernel myself... So don't want to do it - it will make me the linux guy :D:D

EDIT. I think I applied it (how do I check it?). And I think that some system apps (dialer and contacts for example) open faster. But it could be my imagination (though Im pretty sure its not).
[Galaxy S I9000 Android Development] Leandros_Ger:
Is this compatible with OCLF v2.2+? It would be interresting!

Leandros
[Galaxy S I9000 Android Development] henriquesb:
My own settings, started testin before this thread appeared

I've made a script before knowing how to make startup scripts and run it manually after starting up.

I had found a thread regarding SSD optimizations that provided me great results over the last year with my Aspire One 110L with a slow 8GB SSD.

This was the thread:

wwwDOTphoronixDOTcom/forums/showthread.php?p=70045

Tried the same over the Galaxy and the lag is gone for three weeks now! :)

And combined with Zeam launcher it really flies.

Using Tatuyama JM8-based, but this should work on any ROM, device, filesystem as long as it is a Linux-based OS using flash storage.

You guys probably can make a better script and test more thoroughly than me, so here it goes:

#!/system/bin/sh

for i in /sys/block/*

do

echo deadline > $i/queue/scheduler

echo 0 > $i/queue/rotational

echo 4 > $i/queue/iosched/writes_starved

echo 1 > $i/queue/iosched/fifo_batch

echo 256 > $i/queue/nr_requests

done

echo 1500 > /proc/sys/vm/dirty_writeback_centisecs

echo 1 > /proc/sys/vm/vfs_cache_pressure

echo 0 > /proc/sys/vm/swappiness

This will apply a tweaked deadline scheduler to all RFS (and ext2/3/4, if existent) partitions.

Cheers,

Bruno
[Galaxy S I9000 Android Development] hardcore:
Hi Bruno,

Most of the ideas are the same, except that I prefer to use the default CFQ scheduler with low latency. Deadline is fast too but sometimes its not as smooth. I guess with tweaking, there is an optimal setting for several io schedulers.

One thing that is different thought is the vfs_cache_pressure. Your setting makes the kernel try to keep as much inode cache (file cache) as possible, while sacrificing block cache (raw disk cache). I also experimented and found that its better to do it the other way round - vfs_cache_pressure > 100 to make the kernel keep more block cache. But the differences are slight.

I think the big difference came from adjusting the kernel vm scheduler - you should try that!
[Galaxy S I9000 Android Development] Leandros_Ger:
Didn't work on Galaxy S GT-I9000 with Tayutama Lite 1.0.2 -.-

Don't boot, hangs at first screen. I will resette now ;(
[Galaxy S I9000 Android Development] dupel:
because tayutamas rom uses its own start up script, probably voodoo related.
[Galaxy S I9000 Android Development] Devhux:
Very impressed with this script on stock JH2 firmware. The phone does seem noticeably more responsive and smooth even after a day of use. I'll hand my phone to a friend later and see if he notices anything different (to avoid a chance of the placebo effect affecting my judgement).
[Galaxy S I9000 Android Development] toansta:
This kernel seems very good but for people like me who have no idea what any of it means (sorry for being noob) should i just enable all the tweaks?
[Galaxy S I9000 Android Development] ashwinds:
Yes - enable all the tweaks.
[Galaxy S I9000 Android Development] bub181:
Thanks for the tweaks hardcore! The phone definitely feels a little quicker when using some apps like the browser, contacts and dialer apps. I am running JPO with z4mod on ext2. I had to change two lines to get it to work properly on my system:

---

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

---

for i in $(busybox ls -1 /sys/block/stl*) $(busybox ls -1 /sys/block/mmc*) $(busybox ls -1 /sys/block/bml*) $(busybox ls -1 /sys/block/tfsr*)

---

I had to add busybox in front of the cut and ls commands.
[Galaxy S I9000 Android Development] Narcissus85:
Hi guys,

i wrote in the ryanza lagfix thread but havent answers there....

anyone know if the startup tweaks in the scheduler options of ryanza lagfix app should be set every reboot?

If i want to disable it how can i do?

this is my original post in ryanza thread:

"'I've got a questions about scheduler options:

if i dint check the "Set on Boot" box i see that every time the cfq scheduler will be restored. And it's ok.....

And what about tweaks? If i want to disable those what can i do? just rebooting as for scheduler? (with set on boot off?)

thanks

ivan

EDIT: i red another post about this at page 97 but the answer talk about scheduler and not tweaks. Can someone explain this? thanks "
[Galaxy S I9000 Android Development] AdamDowning:
Using the 300HZ one and it really does make the phone fly like an iPhone! Now the iPhone is no competitor with this. Should be included in official ROMS. Lets just hope the battery lasts!
[Galaxy S I9000 Android Development] dogdayfear:
Just enabling the tweaks they do the work?

Is not necessary invoke them with the script? :confused: :confused: :confused:
[Galaxy S I9000 Android Development] ashwinds:
If you are using hardcore's / any other kernel based on sztupy's kernel (the one with cwm recovery) - you dont need to invoke them off scripts - its done automatically if you enable.

PS: hardcore has since disabled the last (Misc) tweak because it maybe linked to battery drain for some people. YMMV - but would be a good idea to not enable that tweak alone.
[Galaxy S I9000 Android Development] Jip-Hop:
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.
[Galaxy S I9000 Android Development] hardcore:
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.
[Galaxy S I9000 Android Development] Jip-Hop:
Oohw,

I've been using your kernel all the time!

Like it very much, so thanks for the great kernel :)

But as I was already using your kernel with al the tweaks enabled,

trying to set up the startup script was double work?

I'd like to make the phone as fast as possible.

Thanks for your response.

Jip
[Galaxy S I9000 Android Development] DPSK:
i need to undo lagfix if i want to revert to stock firmware.

do i need to revert back the tweaks as well? are the tweaks safe to enable? will it cause data corruption?
[Galaxy S I9000 Android Development] ragepekr:
great job!!

can you tell me how do i check it works properly on my phone?

i'm not good english...sorry..
[Galaxy S I9000 Android Development] MildWildChild:
damn, just dunt get it, i'm a noob, i got stucked at the setting n' script

stuff, have no idea what to do, could anyone explains more, i got confused

about the term like 'adb', 'su' bla bla...

thanx in advance, for someone offering help
[Galaxy S I9000 Android Development] emelie:
check the big faq thread:

http://xdaforums.com/showthread.php?t=723596
[Galaxy S I9000 Android Development] kosta20071:
Should I enable lagfix or desable it?

Thnx HARDCORE for your great kernel
[Galaxy S I9000 Android Development] snuffykl:
try it and c the difference =)....
[Galaxy S I9000 Android Development] tzfrantic:
is there anyway to increase the sharpness of the phone galaxy s
[Galaxy S I9000 Android Development] Sine.:
I don't really see the direct link between sharpness & startup script speed tweak, but you can achieve this by using SpeedMod kernel or Voodoo kernel ;) (or any other kernel implementing Supercurio's Voodoo work)
[Galaxy S I9000 Android Development] rrrulo:
----edited----
[Galaxy S I9000 Android Development] fabricioemmerick:
Probleming with Moving Apps to SD Card on GB 2.3.3.

In Coby Kyros MID7015

it's because the sdcard is supposed to be mounted as mnt\sdcard... not as mnt\sdcard\tflash... thats the whole deal... and the only way to do this, is changing the init.d files and rebuild boot.img... ;p

Anyone who understands programming could make a script to solve this problem? I would be very grateful. The function only works when moving applications will explore the root and the root change the permission for R / W. thanks
[Galaxy S I9000 Android Development] Rahulrulez:
Are these tweaks still working with JVQ 2.3.4?
[Galaxy S I9000 Android Development] dhruvbatra205:
I want to make a basic zip file instead pushing files using adb

The zip will copy the two files userinit.sh and playgos1 in the sd card

Then it will copy a bash file which has the code

But this doesn't work.

Can anyone help?
[Fascinate General] ksizzle9:
Just wanted to say that I'm sick and tired of waiting on froyo, everyone has already gotten it or is in the process of getting it. Even the mytouch3g. Anyone who knows any valuable information on this please post and let us know. And by valuable info I mean when we will be getting it
[Fascinate General] Kamar234:
Well apparently we are getting it next month sometime.
[Fascinate General] phoenx06:
Says who? The Europe upgrades are getting pushed back till next month, and our will come well after that.
[Fascinate General] voghan:
Samsung tweeted that froyo updates will roll out in November and all phones should have it by end of November.
[Fascinate General] ksizzle9:
This is true. Its reported on engadget today that the initial froyo updates where pulled due to "not awesomeness" but that Samsung promised increased performance along with all the other good **** that is froyo
[Fascinate General] phoenx06:
Nevermind, read the new post
[Fascinate General] phoenx06:
Well then, a new post is up from Engadget. This one does sound good :)
[Fascinate General] ivorycruncher:
Our update will come from Verizon, not Samsung, so ignore any and all release dates in press releases from Samsung that do not mention Verizon or the Fascinate by name.
[Fascinate General] imnuts:
The update may come from Verizon, but I'm guessing that they give Samsung a list of what they want the update to include (bloatware, settings, etc.) and Samsung is the one responsible for getting the update out with Verizon's specs. While I'd agree that you can't believe it until it's mentioned specifically, if they say all carriers and actually mean it, then it's better than nothing.
[Fascinate General] ksizzle9:
So after much thought I have decided to at least keep this phone until LTE. It has probably the most truly capable hardware ever put n a phone. The CPU/ Gpu is great. The camera/ camcorder is second only to iPhone. Screen is great. But Samsung lack of support for their products is discouraging at the least. The phone came out after phones with froyo(D2 ) had already launched. I love this phone. See why people hate Samsung
[Fascinate General] Redboneqt:
If we are rooted, will the update take without doing something special?

Sent from my Fascinate
[Fascinate General] ksizzle9:
more than likely not. As I am sure you have removed the bloatware. In all I would say the easiest thing would be to Odin back to stock with Odin(when the update comes). That would ne the easiest.
[EVO 4G Q&A, Help & Troubleshooting] fua1:
So for some reason or another, after every reboot, 4G turns on by itself.

Needless to say, it drains battery for no good reason, and I don't know how to fix this.

Any suggestions or advice?

Running: Stock 2.2 Rooted (from netarchy), with 4.1.8-cfs kernel
[EVO 4G Q&A, Help & Troubleshooting] thom_house:
Are you running switcherPro? If so, theres your problem.
[EVO 4G Q&A, Help & Troubleshooting] fua1:
You are correct my friend. Throwing "swithpro" into my search immediately returned useful info.

Thanks.
[EVO 4G Q&A, Help & Troubleshooting] ImmortalLuD:
Lucky you!

I can't enable 4g for the life of me... And I'm using SwitcherPro. Should I uninstall this? :)
[EVO 4G Q&A, Help & Troubleshooting] quocamole:
switchpro used to automatically turn on 4g with me too so I uninstalled it. reinstalled it later after I sent some feedback to the dev and after a few revisions and all is good again. it does still turn on during boot up, but immediately turns off.

do you have the latest rev?
[EVO 4G Q&A, Help & Troubleshooting] fua1:
I haven't seen anything during my searching which suggests that switherpro interferes with actually connecting to 4G, but I can't know for sure.

I say, uninstall and see what happens :)

Not sure what the latest rev is. I've had it for a couple of months.

Either way, the "turn notification on/off" trick worked for me.
[EVO 4G Q&A, Help & Troubleshooting] quocamole:
good deal. that trick didn't work for me.