yashsingh1/xdaforums huggingface dataset:
[Optimus One, P500 Original Android Development] ungaze:
Nice insights from everyone.

Although everyone prefers a different approach on things, I'll share my thoughts on this one.

IMO, I still haven't found any mod to make a STRIKING improvement in REAL LIFE performance(including this one). This is not because these mods don't actually work, it is because(once again) Optimus One is fast enough as it is(stock out of the box) and proves hard to spot improvements(for mere mortals that is). Now, with benchmarking, we can do controlled performance comparisons with different phones. On this part, moving data to sd, proves to boost the I/O performance of the phone dramatically. Of course this depends so much on you SD and again with which FileSystem the mod actually uses(2nd SD partition). Now on this matter, any thread you visit comparing ext2, ext3 and ext4 FS will let you in on one thing, "EXT2 is the fastest". That is heavily because of the lack of journaling(wherein the other two are journaling FS). There are still a lot of debate as on which is faster between ext3 and ext4 as ext4 has extended features that could theoretically improve it's performance way beyond ext3(and possibly ext2 - theoretically). Now since we may safely assume(also did some test and ext2 did come up faster than ext4) that ext2 is the FS of choice if we want speed, but what about journaling? I'm not really an expert but, AFAIK journaling serves only one purpose, and this is to maintain the FS integrity by making a journal(something like a logbook) about read/writes being done to the FS. This is very useful in case of power loss wherein data being stored gets cut-off half way through and therefore corrupts the data written which in the end can result in a damaged filesystem. Well, to deal with this, I have enforced a e2fsck(checks disk for errors with an option to fix everything automatically, if it does find any) on the SD ext(2nd) partition on every boot. Now, regarding dalvik-cache to RAM. There are many methods used to move dalvik-cache around(basically due to the lack of space and reduced performance when on SD), which includes moving it to SD(may result in reduced performance and decrease in SD card life), moving it to /cache(may result in market problems when downloading large apps) and so on. Now again, I'm not an expert on this but, I chose to move it on RAM basically because it suits the conditions used by dalvik cache. Easily accessible, fast, spacious and can withstand tremendous amount of read/write. Now I'm still testing the effects of rebuilding dalvik-cache contents on every reboot but so far, I haven't found any problems with it. As stated in the first post, this mod is still under development so some things might still change if found un-desirable.

Nice info. Should add this to first post.
[Optimus One, P500 Original Android Development] Magnumutz:
Very nice post dude.

How can one force an e2fsck on boot?
[Optimus One, P500 Original Android Development] ungaze:
The mod already has it(just forgot to add the details in first post), but if you wan't to know how to do it manually(maybe without the mod) you could unpack the zip and study it or PM me.

Any info you guys can add would be very helpful. This is a great learning experience to all of us(specially me ;) ).
[Optimus One, P500 Original Android Development] franciscofranco:
Nice post mate. About ext filesystems, ext4 can be made faster than ext3 because of it's extended features like changing the way journalism is made etc, I've researched about it few days ago, but I'm still almost 100% sure even with tweaks it can't be made faster than ext2.

The rest of your post I agree with everything.
[Optimus One, P500 Original Android Development] cmangalos:
Ext4 Pros

- phone boot is faster

Ext2 Pros

- read time is faster

- write time is faster

- writting onti disk is lesser

- better battery life ( not really sure though

this are things that currently iknow, (far back on spica)

upon researching saw some feedback:

EXT2

-Recommended to move to EXT3

-Not Journaled

-POSIX access control

-EXT2 file system is the predecessor to the EXT3 file system. EXT2 is not journaled, and hence is not recommended any longer (customers should move to EXT3).

EXT3

-Most popular Linux file system, limited scalability in size and number of files

-Journaled

-POSIX extended access control

-EXT3 file system is a journaled file system that has the greatest use in Linux today. It is the "Linux" File system. It is quite robust and quick, although it does not scale well to large volumes nor a great number of files. Recently a scalability feature was added called htrees, which significantly improved EXT3's scalability. However it is still not as scalable as some of the other file systems listed even with htrees. It scales similar to NTFS with htrees. Without htrees, EXT3 does not handle more than about 5,000 files in a directory.

EXT4

-ext4 is an "advanced" version of ext3 with various improvements, basically an upgrade to the ext3 format.

not really sure if this has a bearing, but the battle between ext's were not yet concluded AFAIK
[Optimus One, P500 Original Android Development] kenblat:
Last time, using the origin Dark Tremor script a2sd, it boost the I/O as well but after flash the performance script from francisco's thread the I/O back to normal?? anybody here flash the ungaze script and then Fancisco's (both Tweak.zip + local.prop and libsqlite.so) still keep the I/O score?

TIA.
[Optimus One, P500 Original Android Development] ungaze:
^This should totally be true. . . . . . . . . .if we were to use it on a linux computer.

But we're not. Android may be very similar to linux but in reality it is also very different. First of all the mention about ext2 not having journaling sounds kinda redundant and repeating, and we are all well aware of that already. As I have said, and I quote(myself) "Now since we may safely assume that ext2 is the FS of choice if we want speed" and speed alone, so the hell with journaling ;) . Just straightening the facts the we are comparing speeds, so every other feature comes next. So although your post is very informative, in the end, it all comes down to user preference. Speed or features?
[Optimus One, P500 Original Android Development] kenblat:
Dear Ungaze,

I'm just format system and do the clean CM 6.2 by Mik_os, then flash your script but look like that system did not regcornize my 2nd ext @ Sdcard, but do the restore with previous rom included Dark Tremor a2sd evrything work again... maybe it's due to my sdcard have 3 partitions, swap 30MB, ext2 512MB and the rest for FAT32. May be the swap partition cause the issue?

reformat the 2nd partition did not help...
[Optimus One, P500 Original Android Development] ungaze:
@kenlat

Maybe. Could you test it again without the swap partition? If you could provide me with incompatibility issue with the swap partition, then I would be very grateful.

Found out another way to improve I/O score(+1k to I/O). It seems that without assigning a block size to the ext(2nd) partition, mke2fs simply chooses a block size of 2048, typing "df" in terminal will show you the same info. Now, modifying my script, I forced the ext(2nd) partition to take up the block size of 4096. Testing this I have gained an additional 1k of I/O score on quadrant. Should improve performance huh?
[Optimus One, P500 Original Android Development] aursta:
and whats then? where all my apps goes? internal memory? :??
[Optimus One, P500 Original Android Development] franciscofranco:
Let's go performance!! Going to test that as well, brb.
[Optimus One, P500 Original Android Development] ungaze:
Basically, yes. All your previously installed apps go back to internal memory. Only then can you use my mod.(if you think that you have more apps than internal memory can accommodate, use titanium backup to backup apps, then batch uninstall then use the method mentioned above.)

To all who prefer a different method in dealing with moving dalvik-cache, I'm planning to make a script that would basically allow you to choose which partition/device dalvik-cache should go to. Can't promise a deadline though.
[Optimus One, P500 Original Android Development] franciscofranco:
Tested and approved. I just reached almost 6000 points in I/O with Quadrant Advanced, 2500 points overall, in comparison LG P990 2X benchmarks show around 2900-3100 points in Quadrant...I guess we own a beast...
[Optimus One, P500 Original Android Development] shhbz:
can u put details of doing this as i already have partition ext2 512 rest fat 32. now should i flash the zip what about the terminal command.

waiting for updates using cm7 by mik
[Optimus One, P500 Original Android Development] franciscofranco:
Wait until ungaze updates his script, we're testing first.
[Optimus One, P500 Original Android Development] Zerobarat1:
Lol , it's just I/O :) . The big cheese would be in god damn 3D . And besides that score for LGp990 2x is unhindered ( stock ).
[Optimus One, P500 Original Android Development] shhbz:
really wish that we get official cm7 release from cyanogen and then the dev over here will provide icing on the cake .This phone is just awesome getting such quadrant score from this device clearly indicates there is lot to come :D
[Optimus One, P500 Original Android Development] N_lover27:
test with dvoid-frencov5

everything was ok on 2nd boot after flashing b4v3

then I installed gmail from market and restored my old apps by titanium. and rebooted.

and shockingly everything is gone... gmail and all those app That i have restored.

btw this is tested on froyo based rom like devoid, void, nessy...

the 2 log files are attached.
[Optimus One, P500 Original Android Development] ungaze:
Interesting. I'm assuming that the log files are from the last boot(unless it's the only one you can find on your SD). Could you test the same setup one last time, BUT before rebooting for the last time, can you list the exact files in your /cache partition. I fear that using the cache partition proved to be a grave mistake. On a side note, if this is indeed the case, then a quick fix will be on the way.

Will await your response.
[Optimus One, P500 Original Android Development] N_lover27:
that was the only one log file there was. as I deleted previous one after every reboot.

after restoring my app and rebooting ..the attached log file was created. and also there was only one file in cache/d2sd folder which I attached.

but if you want I can do it again. I have flashed cm7 bete6.3 as your b4v2 works on that but not b4v3.

I really hope there will be a working version of data2sd b4 or similar to Ungaze_Data2sd_v4b2

and can you explain what you mean by

can you list the exact files in your /cache partition??
[Optimus One, P500 Original Android Development] ungaze:
See, I'm suspecting that when you used titanium backup, it somehow used the /cache partition and in effect, deleted some flagging files that tells my script that data2sd has initialized before and only needs to be activated on succeeding reboots(take note of the term initialize and activate). Why I suspect this? Because the logfile that you posted is a log from a first-time boot when using data2sd. Which means that your ext partition most probably has been reformatted once again by my script because of the absence of the said flagging files mentioned above.

normally, /cache partition only contains the /fota and /lost+found folders and which are empty. In some cases, a download.apk file is also present, sometimes more than one. what I would like to know is if the /cache partition empty or if the d2sd folder is still present after restoring your apps using titanium backup. And if it does, are there still files in it? can you list all the files in the d2sd folder?

I hope all of these makes sense. TIA
[Optimus One, P500 Original Android Development] Grievous23:
So, I tried again v4b3 on a fresh install of CM7, first time it boots there are 470 Megs of storage, reboot, and only 200 Megs left...

I couldn't find any logs on the SD... and I saw that /cache is empty
[Optimus One, P500 Original Android Development] ungaze:
ok, revised version coming up!
[Optimus One, P500 Original Android Development] N_lover27:
when is the working version of your data2sd is coming for froyo based rom.
[Optimus One, P500 Original Android Development] ungaze:
Maybe tomorrow(same time I posted this message). Kinda busy today.
[Optimus One, P500 Original Android Development] N_lover27:
Will be waiting. hope this version will be compatible with nessy hypnos or devoid
[Optimus One, P500 Original Android Development] ungaze:
OK guys, let's give it another try. Just like before

TO THOSE WHO ARE WILLING TO TEST

1. Download here!!!!!(v4b5)

2. Flash through recovery(I suggest using it on a freshly installed ROM)

3. If booting is successful and it presents no problem then congratulations and post your feedback here.

4. If booting is successful but you experience some problems, then look through your SD card for a folder named "d2sd". Scuffle through it's contents and paste the stuff here.

5. If booting is unsuccessful, then try to reboot without the SD(just remove it and put it back only when you see the lockscreen), then look for the same file mentioned above, BUT also look for it in the /system/d2sd folder.

I'm looking forward for your results.
[Optimus One, P500 Original Android Development] linkinparkfan007:
Mirror: http://www.multiupload.com/5ZWQDXYP4I
[Optimus One, P500 Original Android Development] Grievous23:
Erases all apps on each reboot:

An error has occurred while removing duplicate files!

Unable to proceed with data2sd

Logging mount status:

rootfs on / type rootfs (ro,relatime)

tmpfs on /dev type tmpfs (rw,relatime,mode=755)

devpts on /dev/pts type devpts (rw,relatime,mode=600)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,relatime)

tmpfs on /mnt/asec type tmpfs (rw,relatime,mode=755,gid=1000)

tmpfs on /mnt/obb type tmpfs (rw,relatime,mode=755,gid=1000)

/dev/block/mtdblock1 on /system type yaffs2 (rw,relatime)

/dev/block/mtdblock9 on /mnt/asec/d2sd/data type yaffs2 (rw,nosuid,nodev,relatime)

/dev/block/mtdblock8 on /cache type yaffs2 (rw,nosuid,nodev,relatime)

/dev/block/mmcblk0p2 on /data type ext2 (rw,nosuid,nodev,noatime,nodiratime,errors=continue)

Fresh install of CM7
[Optimus One, P500 Original Android Development] ccdreadcc:
does this work with rooted stock 2.2.1 rom ?
[Optimus One, P500 Original Android Development] ungaze:
Hmm, wonder why it didn't show the error msg with me. Anyways thanks for the very quick test and I've edited the link for v4b5 could you re-test?

(I can see that there were 8 downloads for v4b4, hmmn wonder what results those 7 other downloaders had)
[Optimus One, P500 Original Android Development] N_lover27:
Hi ungaze.

I am running Beta4 of your script.

Its running for 3 hours with fresh nessy:hypno2 , restored app from titanium. rebooted twice and app are still there. I will be testing this script for another 12 hours. thn if I found any problem I will ping you and test the beta5.
[Optimus One, P500 Original Android Development] ungaze:
thanks for the feedback man, I only changed/added one letter to v4b5 ;) I hope it does the trick for CM7 though. I hope everything works as I'm itchin to get on with the tests and move to the next step LOL!!!!!

BTW, if you guys are trying to re-try the mod with another or a fresh ROM install, check first if /system/d2sd is still there. You can try to delete this before flashing the zip or force format /system.
[Optimus One, P500 Original Android Development] ungaze:
oops, didn't notice your post. Won't work as stock rooted ROM doesn't have init.d support.
[Optimus One, P500 Original Android Development] kenblat:
Guys, Pls kindly help for a mirror of V4b5! Thanks
[Optimus One, P500 Original Android Development] N_lover27:
hv fun

http://www.multiupload.com/QOADVTIU0Z
[Optimus One, P500 Original Android Development] Momaro:
running fresh install of devoid.franco and kernel 11 with data2sd_v4b5 it worked for a couple successive reboots. i ddin't install much though, too lazy. about the fifth reboot quadrant stopped working: the cpu tests didn't start, and after all the other tests it listed the scores as 0.

i can't find the d2st log file on sd card, and inside the cache folder (using root explorer, not sure how else to look in cache partition) the only folders are

fota

lost+found

am i looking in the wrong places, and in the wrong way for the log file?
[Optimus One, P500 Original Android Development] ungaze:
yup!

But I don't think that's the problem here. I'll send you a PM instead.
[Optimus One, P500 Original Android Development] N_lover27:
I am using [ROM] Nessy #Hypnos2 (Froyo 2.2.2) for more then 30 hours now. no problem till now.

if you want the fastest froyo based custom ROM I would suggest you to use Hypnos2.

And more of all you need to decide if you want quadrant score or fast performance....

try hypnos2 along with Ungaze_Data2sd_v4b4

and I am sure you will be surprised to see the performance...
[Optimus One, P500 Original Android Development] N_lover27:
Yup its the kernel
[Optimus One, P500 Original Android Development] ungaze:
Although it's possible along with an aggressive approach with the tweaks to cause this instability/incompatibility, it is still very highly unlikely. I'm leaning towards SD card incompatibility on this one. Most data2sd/data2ext mods also have these kinds of problems in one form or another but it somehow all points to an incompatible/slow(either write or read) SD card.

Besides, since this morning I'm running my modified almost-stock 2.2 ROM with my own minimal tweaks + FRANC0 v12 kernel and everything seems to be just fine. Still, development may be slow, but it surely is moving on. More tests may be needed so stay tuned.
[Optimus One, P500 Original Android Development] N_lover27:
I am happy with hypnos2.

anyways can you help me choose the best cluster size for ext2 partition:D

I have option to choose are

default

1kb

2kb

and 4kb

which would be faster?
[Optimus One, P500 Original Android Development] franciscofranco:
4096 blocks.
[Optimus One, P500 Original Android Development] N_lover27:
I am using mini tool partition wizard to make the partition.

so can you tell me which option to choose there?

is 4096 blocks means 4kb?

snap is attached
[Optimus One, P500 Original Android Development] franciscofranco:
Yes, I think it's pretty obvious :p
[Optimus One, P500 Original Android Development] ungaze:
I'm quite sure cluster sizes are in kb(kilobytes) format. And I'm quite sure it has something to do with space vs performance balance. I'll try to find the proper resource for this.

--------------

Ah, I think this may suffice

Sa smaller to save space, and larger to improve performance or in-between to give it a balanced approach. 4kb it is then!
[Optimus One, P500 Original Android Development] N_lover27:
tell me one thing ungaze as you said that

thn y so much difference in size ???

beta4 is around 1400kb and beta5 is 600kb?
[Optimus One, P500 Original Android Development] ungaze:
maybe try redownload again? here's what my deposit files account show:
[Optimus One, P500 Original Android Development] jawz101:
Maybe I'm ignorant for using this tweak or maybe I'm being paranoid now but I've been using this script on an LG Optimus V.

Since reading more I came across a post elsewhere stating the LG Optimus V system path is apparently on /dev/block/mtdblock5 whereas the system path on the P500/T is at /dev/block/mtdblock1- which this script references a few times.

Am I correct in assuming I shouldn't be using this tweak on the Optimus V?
[Optimus One, P500 Original Android Development] will8578:
does this work on wildfire? thanks.
[Optimus One, P500 Original Android Development] ungaze:
@jawz

you are correct. optimusV has mtdblock5 as it's /system partition's block device. I can make a version for you guys if you wan't. PM me if you're interested.

@will

It may, same as above, I can look into the compatibility of wildfire the wildfire device structure for this. PM if you're interested.

(I would like to ask few more stuff from you guys to make finalize it that's why I'm asking for PMs)
[Optimus One, P500 Original Android Development] N_lover27:
hi ungaze can you help me with a flash-able for power menu to used on hypnos2
[Optimus One, P500 Original Android Development] ungaze:
I'm sure I already posted a GB theme with working power menu for nessy ROM(only problem is the reversed reboot and power off button) on nessy thread. Anyways, you should have PMed me instead, and try downloading themes from LOLv1.42 forum(in italian, just use google translate to understand them). It's an issue with the themes(framework) between 2.2 and 2.2.1 + android versions. PM me if you need more info on this.
[Optimus One, P500 Original Android Development] N_lover27:
hi ungaze send u a PM

and I have made an order for kingston 8GB class10 microsd card. I Hope it speed up the system with your d2sd...:D
[Optimus One, P500 Original Android Development] will8578:
actually at the moment im having a nightmare trying to get a decent stable rom on the wildfire, i dont think one has lasted more than half an hour without crashing, im on cm7.0.3 wildfire at the moment, fingers crossed it works, if i can use your data2sd on it, i would love it, and can i use the libsqlite patch on it aswell, thanks for your help.
[Optimus One, P500 Original Android Development] dislplin01:
Anyone got theme changer to work with any version? ??? I love this data2sd (thanks ungaze) but I do miss my theme changer? ??? Help!!!
[Optimus One, P500 Original Android Development] ungaze:
So the theme changer app doesn't work with data2sd? If you'd ask me, you really don't need the theme changer app. There's a lot of themes out there, I'm sure AOSP based themes are compatible with our phones(with their respective android versions)(also, I'm quite positive that CM7 themes for mdpi devices are compatible with our phone as well, of course with the respective CM version as well). So you just need to find the proper theme for your phone.

Anyways, I am planning to write a script to apply themes ala metamorph approach. This way, any theme you see can be applied to our phone as long as it has the same resloution(mdpi/hvga). Still in the planning stage but I already have my resources.

BTW, next version of data2sd will come as soon as v4b5 gets a certain amount of download count. It's actually almost there, and next version will almost be the same as v4b5, maybe minus the logging files and a cleaner script. So those with v4b5 don't really need to update.
[Optimus One, P500 Original Android Development] dislplin01:
Actually disregard that last post i just tested V4b5 and it is working great and my theme changer is working !!!!!! im so happy this is by far the best MOD out there for our phone it has the made all the difference in speed and performance ( along with CM7 from milk thanks milk) as well as app space it is wonderful and cant imagine living without it on my phone thank you so much ungaze for all your work looking forward to next update
[Optimus One, P500 Original Android Development] N_lover27:
ungaze I can certainly confirm that theme changer works on both beta2 and beta5

in gingerbread-ex- cm7beta6.3-6.5

tested.
[Optimus One, P500 Original Android Development] N_lover27:
hi ungaze

I have tried v4b4 and b5 with hypnos2

but after 2 days when I tried to restart it it hanged I had to remove the battery to re-flash the rom.. :(

I tried to search for data2sd folder by entering to recovery but there wehe no such folder.
[Optimus One, P500 Original Android Development] Przeszczep:
I have b5 on 16gb class 10 card (ext4 1gb) with mik's cm. After first reboot i got fc's of all aplications but after next reboot everything was ok. Now i have it for 2 days and no problems.

Great work.
[Optimus One, P500 Original Android Development] alfiemenace:
hey man, I'm having battery drain issues overnight with this flashed onto my device with devoid.franco and his latest kernel, any idea why?