yashsingh1/xdaforums huggingface dataset:
[Galaxy S I9000 Android Development] fadi:
I'm trying to run this script on SGS with froyo JP3 , got it rooted , and in debug mode. I ran the shell script manually, and this is what I got. now how long does creating the /data 1.5GB partion take? it's been about an hour and the phone is frozen on the sweep glass to unlock screen.

$ su
su
# /system/bin/sh /sdcard/lagfixtemp/createlagfix.sh
/system/bin/sh /sdcard/lagfixtemp/createlagfix.sh
Copying over included busybox - Ignore possible error about directory existing.
3647+1 records in
3647+1 records out
1867568 bytes transferred in 4.181 secs (446679 bytes/sec)
Setting permissions
Copying over the transferred files.
Setting permissions
Copying libraries
Removing any old EXT2 file on the /sdcard. Ignore any errors about it not exist
ng.
rm: can't remove '/sdcard/linux.ex2': No such file or directory
Clearing out any old backups, ignore any errors
We will now create a temporary EXT2 partition /sdcard - This lets us keep file
ermissions
This will take a long time.
0+0 records in
0+0 records out
0 bytes (0B) copied, 199.486718 seconds, 0B/s
Creating loopback, you may see an error that it already exists. Ignore that err
r.
Linking loopback to the 1.5GB sdcard file store
Creating the EXT2 filesystem
mke2fs 1.40.8 (13-Mar-2008)
Warning: 256-byte inodes not usable on older systems
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
96000 inodes, 384000 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=394264576
12 block groups
32768 blocks per group, 32768 fragments per group
8000 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912

Writing inode tables: done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Creating a mountpoint for files, you may see an error that it already exists. I
nore that error.
Mounting device
We now make a copy of all data on /sdcard so that we have lots of space to work
with. This will take a bit of time.
Freeing up space on /data - This shouldn't work since the files are in use. RFS
doesn't care though. This is what needs testing.
This old data is still running, and probably getting a bit messed up. That's fi
e, since we've already made our copy of it.
Making new directories to use as mount points for later.
We will now create a 1.5GB real EXT2 partition /data
Will take a long time.
[Galaxy S I9000 Android Development] brigsby:
Just finished up running on a stock rooted captivate with ~350 apps installed and 4 widgets spread across 7 full screens. Also running launcher pro and folder organizer. Fix took about 25 minutes and first reboot took 6 minutes. Second reboot to "usability" of the phone about 3 minutes. All widgets intact, all apps are there, and the first 20 I tried appear to open correctly. Downloaded/installed a new app and that went well. Def seeing a significant lack of lags across the board! Thank you! Obtained a score of 2235.

Here are my questions:

1) I did run the NAND speed fix some time ago but thought I undid this correctly before running this fix. I have a /data/ext2data/data folder with 94.7MB and a /data/data folder with 94.7MB (same files). Can I safely delete the /data/data folder now?

2) Is 3 minutes from boot to usable normal? (60 seconds to get to lock screen, 2 more minutes until launcher pro usable). I do have an external 16GB SD card with 2,000 songs that media scanner has to scan.

3) Should this fix be optimized/changed for those of us with a 16GB internal SD or is this amount of App space more than enough for any sane human?

4) My external SD card is a class 6 device which may be substantially better than the internal SD. Might I see a significant increase in performance if the /ext2data was created on this card instead of the internal?

Thanks Ryan for you efforts! And thank you in advance for anyone who answers the above.
[Galaxy S I9000 Android Development] darkflyer1983:
Try to disable automatic media scanning, this should improve things!
[Galaxy S I9000 Android Development] RyanZA:
Nope! /data/data is now a hard loopback link to /data/ext2data/data. They are actually the exact same thing. :)

Sounds pretty long... could be the media as you say though. I don't really reboot my phone a lot though.

16gb or 8gb doesn't matter - the stock phone has a 2GB partition for apps. This fix drops that down to 1.5GB. At any rate, I personally have been unable to ever use more than ~400mb of space. Most other Android phones on the market have nowhere near 1.5GB of app space. (256mb is common)

For app installs/management, the external SD is better. For typical application use, the internal SD is better. The internal SD in the SGS is actually a class 10 card. (~9.5mb write speed). However, because of RFS the internal SD cards speeds are a bit crippled. At any rate, the internal SD card appears to have much much lower latency than any external SD card, which makes typical app usage work better on the internal SD.
[Galaxy S I9000 Android Development] brigsby:
Thanks for the additional info RyanZA. Thankfully, I waited on your response and didn't delete that /data/data folder! Also darkflyer1983, based on your insight I d/l'ed from the market "Startup Manager" and disabled the Media Storage service and 6 other startup services I recognized and didn't need. Reboot with this fix is now 60 seconds to lock screen + 1:45 to phone usable. I still think this is too long, but disabling these services did shave just over 1 minute from my boot time!

(Side note, I d/l'ed "Rescan Media" by Aditya from the market to rescan only when I need to - this app seems to work great!)

I've had another day to play with the phone and everything seems stable. I do have a lag here and there opening some apps the first time every now and then. For example, today Doodle Jump took around 6 seconds to open when it usually is virtually instant. With the NAND lagfix (130MB data) I experimented with for two weeks, I did not see any lag. But, since I kept running low on memory, I'll sacrifice a lag here and there for all this additional space! Thanks again!
[Galaxy S I9000 Android Development] jonnythadrummer:
I am on a Mac... How do I get the file to work on that? It doesn't seem to know how to open up.
[Galaxy S I9000 Android Development] makamiso:
hmmm what about the boot animation no longer showing? i see that in the lag fix from the market you can restore that but that version of the lag fix is not as good as this one from what i see. I would just like to have the animation AND this fix since i want to add a custom boot animation soon.
[Galaxy S I9000 Android Development] z_dori:
Hi, I did the fix for my SGS i9000, my rom is jpjg8 2.1 (cause of the right to left issue, it's better for Hebrew)

in the quadrat bench- the preformance difference is in the i/o bench.

Scores:

Before 799

After 1911

that is nice, but i'd like to know-

from what i understood, the 2-3 ver is leaving me with 1.5GB, not costing me 1.5GB.

Is it ok that now 1.5/2gb is used, because of the fix?
[Galaxy S I9000 Android Development] saudicane:
Application Storage: Available space Problem

Hello all, and thank you for the great efforts.

I was on Vibrant6 and a installed the 2-3Beta lagfix.. It ran fast and smooth for a couple of days then I got an error message regarding low internal space and I have to uninstall some applications. of course at that poing I wasnt able to send/receive SMS. MMS, Emails...etc.

So I thought it has to do with ROM, so I reverted back to Stock ROM, then I installed the lagfix (OCLF) from the market and here is the difference before and after:

Quadrant Speed Test:907 to 2254

external storage:7.30/14.83GB to same

internal storage 13.34/13.43GB to same

Application Storage: Available space1.67GB to 302MB

I had to uninstall lagfix agian before I get to the point where I cant send or receive anything because of the internal storage error message.

I really like the fast response after the lagfix so any ideas to have the lagfix and not get the error message?!
[Galaxy S I9000 Android Development] tsnow247:
HELP!! I tried the unlagfixme.bat and now it won't boot. And I can't get to recovery to flash a nand backup.

What do I do?
[Galaxy S I9000 Android Development] :
I've applied the beta 2-3 fix and finally Aldiko can quickly load my eBooks!

I also uninstalled it to see if I got any problems, but the unlagfixme works as it should.

So I just installed the fix again :)

Thx RyanZA!
[Galaxy S I9000 Android Development] gonsa:
I ran 2-3 version on my recent XXJPC firmware but after the installation i get the internalsd card low space warning.

h**p://i36.tinypic.com/37mz7.png

i will now remove it.

EDIT: before the lagfix i had 194MB in programs. now after the lagfix and unlagfix i have 361MB in programs...
[Galaxy S I9000 Android Development] madas:
After installing this fix my captivate running stock firmware and no other patches gets to the AT&T boot screen, then plays the sound and then goes black.

I can get to the recovery mode but i'm not sure how or what to recover?
[Galaxy S I9000 Android Development] m3keni:
works but still worried about the small space left (1.48GiB-of-1.87GiB) on the phone since I do install alot of apps.

..maybe ryan can increase the Program partition to 3GiB - 4GiB and use the half of it for the lagfix and half for the program itself.. just a suggestion though..

..if i only know how.. i would have tried. hehehe
[Galaxy S I9000 Android Development] wayne_zmh:
I have the same problem. I used Draw Pattern lock screen, sometimes it does take few seconds. Also quadrant scores 1400 down from 2235 after 4 days on. But score went back over 2000 after I reboot my SGS.
[Galaxy S I9000 Android Development] zimphishmonger:
We only have 2GB of space in /data, and there should be NO way you can fill all that up (most android devices have 256mb-512mb /data partitions, so ours is 4x the size). If you are using the 2-3 fix, dont worry about free space. That wont change as apps will be installed INSIDE your 1.5GB partition (virtual loopback), not to your free space. Thats why the file size was so big to begin with (1.5GB), as its moving all your apps, app data, and dalvik-cache inside that partition, but wants to keep extra room for more apps, data, etc. Very few things should change your free space after you installed this version of the lagfix.
[Galaxy S I9000 Android Development] m3keni:
got it. i have one issue though with guns and glory.. i installed it and seems to install just fine but when i start to play it.. it doesn't allow you to select any map.. says this stage is locked.. before the update seems to work fine though... minor issue but all is well for the response time.

thanks for the info. hehehe
[Galaxy S I9000 Android Development] PowSniffer0110:
Same here on vibrant. No longer shows boot. Any reason why?
[Galaxy S I9000 Android Development] wongjos:
lag fix 2.3 issues

To Ryan,

Few shortcuts disappeared after lag fix 2.3 patched

Second, I encountered homepage and application pages not loaded(blank page) when it woke up. I need to power off and on the phone.
[Galaxy S I9000 Android Development] camporese:
Kies

Maybe noob question, but...

After this i cannot connect my device using BT, CABLE or any other magic formula... try on 3 different PC and 2 different cable...

any hint? in page one no reference.

TNX!
[Galaxy S I9000 Android Development] sh3nkie:
After running the beta 2-3 fix the other fonts don't work anymore. If i select another font and reboot it still shows the standard one. :eek:
[Galaxy S I9000 Android Development] Beppemi:
i install this new version on my JM7 and everythings works better... thanks so much
[Galaxy S I9000 Android Development] vrhunski:
work very nice for me on i9000.

But can't see payed applications anymore :(

When we can expect new version with fix for this?

ps: thank you!!
[Galaxy S I9000 Android Development] andsur:
it works great on me

but i can't use my google maps.

and what's the different with [app] one click lag fix APK?

which one is better?
[Galaxy S I9000 Android Development] RyanZA:
This one allows for more space for apps than the APK, and it is also slightly quicker.

The APK is much safer in terms of installing and uninstalling, and is a bit more compatible with google maps/paid apps.
[Galaxy S I9000 Android Development] IntenZeD:
After i ran the lag fix my internal memory was at 1.05gb, and now after one day ot has ticked down to 1gb. I guess its thw cache thats eating up space. What cache can i delete to clear up space?
[Galaxy S I9000 Android Development] IntenZeD:
And now its down at 947mb..
[Galaxy S I9000 Android Development] IntenZeD:
Undid the lagfix and did it again, thought it would help. It didn't, 922mb left.
[Galaxy S I9000 Android Development] mcord11758:
Do I need to leave the update zip saved to my SD card after root and lag fix or can I delete
[Galaxy S I9000 Android Development] andsur:
I see..

When I try to uninstall this lag fix. It keep saying access denied but i'm sure I already set it to allow in my sgs

Any idea how to remove this lag fix?
[Galaxy S I9000 Android Development] IntenZeD:
902mb and ticking.
[Galaxy S I9000 Android Development] IntenZeD:
I'll just keep talking to myself then. Deleting dalvik-cache didn't help, it just ****ed everything up.
[Galaxy S I9000 Android Development] kapnkool:
Quick uninstall / upgrade question for One Click....

I currently have the 1.6 version of Lag Fix. If I want to upgrade and try the 2.0 beta do I use the undo function within the program or do I only need to uninstall the app? Thanks everyone!
[Galaxy S I9000 Android Development] stevegold6:
installed and all seems well. GPS is a lot more accurate.

Thanks RyanZA
[Galaxy S I9000 Android Development] a_harem:
Thankzzzz

thankss

got 2160 with quadrant on my Zamzung Galaxy S... :eek:

Before this 890...:mad:
[Galaxy S I9000 Android Development] mickeko:
Why do people keep wasting bandwidth with quadrant screenshots? It's not like there's a need to prove that the claim is real anymore.... Sigh.

Sent using my personal Dis-organizer GT-I9000
[Galaxy S I9000 Android Development] pavlosx68:
At the end of the script "*something* was denied". Don't know what happened. No change in Galaxy. (Ok - worked second time)

edit 1: 2248 - wow, that is fast...

edit 2: SGS reverted by itself to default font
[Galaxy S I9000 Android Development] Gothic Touch:
Problem here right now

Hiya!!

When i'm using usb debugging my windows explorer will not recognize my phone at all, it will not appear in my computer, but when i disable usb debugging it appears in my computer...how do i fix this problem so i can use this lagfix??

I had to take my phone back to repair because it broked down and today i got it back, but now this usb debugging is messing me up...do i have to install kies first and then use usb debugging mode...and which one i should choose to usb connection?? Mass mode or kies or ??
[Galaxy S I9000 Android Development] leomak:
I can't find the update.zip in	Tay thread, can anyone help?
[Galaxy S I9000 Android Development] richardbroder:
For anyone having problem with the market I suggest using this

http://www.xda-developers.com/android/market-enabler-v3-0-8-for-root-users/
[Galaxy S I9000 Android Development] dklhs90:
Thank you RyanZa for making this lagfix for us Superusers.

The Fix worked and now my phone is too fast for me to follow.

Quadrant Sandard Score (@1GHz and I9000XXJPC Flash): 1800+
[Galaxy S I9000 Android Development] mocksoul:
Hi.

I'm quite familiar with *nix, so I was using lagfix (not this) for few months.

But, after upgrading to JPC I found my phone be so fast, and I decided to not apply any lag fix.

But quadrant... 1180 score is not was enougth $)

So, I decided to use lagfix app (RyanZa lagfix... mm this thread's one, from market). Again >2000 quadrant score (:cool:), but NO feel of "speeding up!" anymore (with stock JPC phone is smooth by itself). Apps are installing at the same speed or even slower. But uninstall with lagfix is MUCH faster.

So, I stick with fix for few days.

But soon I realized what phone is sometimes quite slow for 10-12 secs. Usually after long "locked" period.

Said "grrrrr" and started monitoring . Quite fast I found (via adb shell + top) - [kswapd0] system thread consumes 100% cpu sometimes. With NO IO wait!!

Got OSMonitor for monitoring this not only via adb. And [kswapd0] was the only hungry always then my phone really gone slow.

So, fast search on the web didnt get me any idea. I thought "ohh, maybe some app cause it". I removed ALL my apps -- and still [kswapd0] was hungry. At the last step I tried to remove lag fix. And - oh my - [kswapd0] dissapeared. I didnt see that system thread anymore for 4 days as of now. I did reinstalled all my apps with titanium backup -- and still my phone always smooth.

Not sure what really causes [kswapd0] to grab all cpu. Loop device? No, it should not. Maybe this is 1gb file on top of rfs -- I'll try (or somebody else may too ) to put fake 1gb file (without looping to ext2) and see if [kswapd0] will be again visible.

As of now, personally I do not recommend install ANY lagfix on Galaxy S with JPC firmware. Quadrant score? Oh dear..

p.s. this was 1 week research.
[Galaxy S I9000 Android Development] RyanZA:
I'm not sure if this is actually directly related to the lagfix. kswapd is the linux pageout deamon, http://www.chudov.com/tmp/LinuxVM/html/understand/node68.html

Just to be sure:

Did you reboot before removing the lagfix, and did the reboot help at all? (Even for a few minutes)

Did you remove the lagfix by flashing a new JPC on, or did you remove it using the script?

The 100% cpu kswapd is a known (old) kernel bug, and it is probably prolonged uptime of the device that is causing that, rather than the lagfix. I also had similar issues with JPC, and since changed back to 2.1, which doesn't suffer from this.
[Galaxy S I9000 Android Development] pinku1:
Hello,

I installed this One Click Lag Fix 2-3. Everything worked fine.

Only problem I am having is in Market. When I try to install app from market.

It keeps on "Starting download" but no download start. I rebooted phone many times still same.

Please suggest me fix for this over all phone is much faster now.

Thanks!
[Galaxy S I9000 Android Development] EarlZ:
Fully compatible with JPC right ?
[Galaxy S I9000 Android Development] kunacs:
NO changes need

I don't want to install, ver. 2 fix until i have 2292 on Quadrant :)

So i realy like this, can you tell me a benchmark or a way to compare iphone 3gs with SGS .
[Galaxy S I9000 Android Development] EarlZ:
Im wondering how you guys manage to get 2k or even more.. I havent seen a lagfix on my device give me more than 1900 lately..
[Galaxy S I9000 Android Development] Belarus27:
hello!!

can u guys Plz help me.... trying to Install lag fix but in the screen it says NO device found.

am i doing smth wrong??

and yes i check Debuggin mode with a check mark.

appreciate your help.
[Galaxy S I9000 Android Development] RyanZA:
[size=+2]This version is now deprecated in favor of the 2.0 APK version. Please see this link: http://xdaforums.com/showthread.php?t=784691[/size]

This version is not recommended for use any longer.
[Galaxy S I9000 Android Development] Val3r10:
Ahhhrrrggggghhh! Lastly installed tonight v1.67

I'm rollin back as soon as this v2 gains the RELEASE stage.

In the meantime, could you please append also some tricks or a clean procedure to upgrade ?

Ok, undoV1+, doV2 ...

but I'm quite concerned about your bootlogo alert: would an hard reset be needed while switching ?

Thanks for your proceeding work
[Galaxy S I9000 Android Development] Bandis710:
I am a bit confused ?? You say this version is deprecated and then give a link to this thread ?? Shouldn't your warning be in the once click apk thread ?

Anyway I am using version 2.04 right now and it is working great on my JPH firmware .. The only thing not working is the wifi timeout setting it is giving me a big error message.
[Galaxy S I9000 Android Development] darkfire_bg:
I uninstalled the lag fix, because i wanted to install Froyo. But now my samsung is dying. My startup movie disappeared. And it takes 10 minutes to get to pin code. After typing it, it constantly crashes. All applications forced close :( I can use some help here.
[Galaxy S I9000 Android Development] hsannerh:
Hi, all.

I'm on a Galaxy S and the fix works great, but now that 2.2 update is around the corner I wondered about a thing.

Will I be able to flash the phone with the new firmware without problems when the fix is applied and the phone is rooted, or is there something I need to do prior to flashing?
[Galaxy S I9000 Android Development] appagom:
sorry.. wrong thread.
[Galaxy S I9000 Android Development] Kubernetes:
Something went wrong with my phone while uninstalling the lag fix.

I started the process and eventually got this message:

Undo OneClickLagFix V1+ failed with error: Could not rename your data! This is bad, and something has gone very wrong.

Now it's showing that I have 1.8gb in EXT2 and only 38mb in RFS. Any suggestions?

/edit Looks like it's fixed. I rebooted and it showed one full partition in RFS. The only issue was that in OCLF I couldn't get the option to apply OR remove lagfix. If I tried to remove, it said there was no lagfix detected. If I tried to apply, it said lagfix was already present, indicated by missing playlogos1. But there was no option to apply/remove boot animation. Rebooted again and this time I could restore the boot animation. Now the option to apply lagfix shows up. I guess I'm back to normal... nothing weird happening yet.
[Galaxy S I9000 Android Development] amplivibe:
How to undo OCLF in shell only?

Something is physically wrong with my phone and I want to go back to the store to get it fixed. Before I do so, I want to undo OCLF (remove lag fix, remove ext2 libs, unroot). The only tool that I have is the "adb shell". Anyone knows how to do this?

The symptoms of my broken phone are:

- Only half screen image

- Other half screen has strange stripes

- The phone doesn't go past the splash screen

- It will boot in recovery and download mode. Here there's still only half a screen

- I CAN start in recovery mode and use adb shell to go to the phone shell

btw, great tool, OCLF!!!
[Galaxy S I9000 Android Development] RyanZA:
Go into download mode and reflash the correct stock firmware for your device using Odin. Or, go into recovery and use the format data option. Either should be fine.
[Galaxy S I9000 Android Development] amplivibe:
Thanks for your fast reply. So if I understand correctly, will "wipe data/factory reset" from recovery undo all rooting/lagfix stuff? I ask this just to be sure. I understand that all my programs are lost too, but that's not a problem.
[Galaxy S I9000 Android Development] RyanZA:
Yep, the lagfix is all in /data, and wipe data wipes /data
[Galaxy S I9000 Android Development] hardrock8u2:
Vibrant

Hey Guys,

I just followed the steps listed, rooted with OneClick, and the lagfix 2.

I just ran a benchmark with Quadrant and scored 1884

ANDROID SUUUUUUUUUUUUUUUUUUUWWWWWWWWWWWEEEEEEEEEEEEEEEEEEETTTTTTTTTTTTTTTTTTTTTTTTTTTNNNNNNNNNNNNNNNNNNNNNNNNEEEEEEEEEEEESSSSSSSSSSSSSSSS :D

Thanks to all who make these things possible, you peeps ROCK!!!!!!!!!!!!!!! :)
[Galaxy S I9000 Android Development] 360Degreez:
Worked fine! Had to add my shortcuts to app on my homescreen, and had to remove and add my twitter widget, but other than that it worked great!

I like the way the script actually tells you what it's doing ;-)

Thanks!

Oh, and my phone seems faster too. isn't that cool?!
[Galaxy S I9000 Android Development] cefurkan:
one click lag fix dont work after factory reset

how can i make it work ?

the error message it gives

yıu already apper to have another lag fix installed

system/bin/playlogos1

less than 5kb
[Galaxy S I9000 Android Development] KaliKot:
Restore Boot Logo, then Try again, should work
[Galaxy S I9000 Android Development] phemark:
hi, ive just installed it, but it didnt ask for any permissions on my phone (although cmd showed success) How can i check if it is installed?