yashsingh1/xdaforums huggingface dataset:
[Desire Android Development] Droidzone:
I think the code is in init.rc...Doesnt work even if all the init.d scripts are removed..Plus there is the issue with the cache/dalvikcache...It loops even before Data2SD is installed, if a2sd is removed

Attached, for reference..
[Desire Android Development] Droidzone:
By the way, just a FYI that the Gingerbread Cyanogen 7 Nightly works superbly with Data2SD. No issues at all..Leads me to conclude that Gingervillain has some really bad crap added to it by DT A2SD
[Desire Android Development] sibere:
Hum, apparently there is discussions about this and it's not implemented in every sense kernel. Sense kernel has to be patched to get VR wether DL or CFQ are available in the makemenu.

For the time being, meletron and ownhere didn't implemented the use of VR in their scripts too.
[Desire Android Development] sibere:
They're almost the same. the 2nd one is more the development (or beta) version of it.

It uses more "risky" options but I have to tell you that I've been using those options on my phone for a few weeks now and everything is fine so far :)

Their main purpose is to enhance performance and I'm still working (when I have some spare time) on a few more tweaks to get an even better user experience with DATA2SD.

Don't rely too much on benchmarks. For instance the noauto_da_alloc gives a super boost in quadrant (I got more than 5300 I/O score on my phone) but gives me a worse score in TAP. So I'd say try both and see what suits you better.
[Desire Android Development] alexcavaco:
Does anyone notices that music skips slightly with HTC's music player?

Perhaps it's from my sdcard, it's a Sandisk 16GB Ultra Class 2.

But from what I know this card is better than some other Class 4...

If I'm playing music and start to surf the web (using Miren Browser), then the music skips heavily.

I've also tried PowerAmp and Winamp music players. Winamp doesn't skip, PowerAmp skips only when it's buffer settings are not on "Huge"..

HTC's music player doesn't have a setting to change it's buffer size so... music skips :(

EDIT: Winamp also skips...
[Desire Android Development] Droidzone:
Had lags/skips on my Class 2 Kingston. No lags after I got a Class 4 3CPro
[Desire Android Development] alexcavaco:
Guess I should get a new one :P
[Desire Android Development] sibere:
For some reasons, some ROMs disabled the RAM cache for the web browser and choose to move it to SD. although this saves a few Mb of RAM (6mb max), it also uses a lot the SD with I/Os and add some wear. I left the cache to ram and never had any lag this way.
[Desire Android Development] ownhere:
8m in DHD port :)

I also think this cache is necessay for browser, so my rom left the cache in ram, too.
[Desire Android Development] sibere:
Yep, but the browser only uses 6mb max if I'm not wrong (in settings). Maybe it's different in DHD tho.

But IMHO it's far better to leave browser cache to RAM so you did the right choice! :)
[Desire Android Development] alexcavaco:
Well the browser was just an example. Music lags/skips also while using other apps, but it is simply that my sdcard isn't fast enough.

Nevertheless, this version of Data2SD is way faster than the first. It is usable apart from these lags/skips even with my class 2 card.
[Desire Android Development] Droidzone:
Actually with the older loopback method, I had very perceptible lags. I couldnt even play Angry birds without the video lagging. I'd finally stopped using Data2SD and shifted to aosp rom with MTD partition resize.

But with the latest script and more so with the beta Sibere's testing, absolutely no lags and even better performance too in case of the latter. A class 2 -> Class 4 card change cant make that much of a difference. I've got to believe that its the script. And quadrant score too has improved even without the autoalloc setting.
[Desire Android Development] ochiotteom:
Hi,

I got the same skip trouble using HTC Music Player or Winamp. :confused: I am using a Sandisk 8GB Class 4 with DATA2SD (800MB for Data). My file are in the SD in a MP3 named folder.I got pre-rooted stock rom with init.d support (Teppic74).

So I guess it is NOT a problem of speed of SD card class4 should be enough. The problem was not here before DATA2SD script application (sibere's loopback method if i remember well).
[Desire Android Development] [deXter]:
I've got no lag on my device: Class 6 Transcend on an HTC Desire running Oxygen2 RC7, MortPlayer, xScope browser. Also tried playing some games (Angry Birds) at the same time, downloading stuff from the market and my music doesn't skip at all. It could be my card and/or the mount options I'm using (ie the one with commit=60, noauto_da_alloc etc), or maybe it's only affecting Sense based ROMs?

@droidzone and @sibere:

It looks like the recent bootloops *everyone* has been experiencing is an AOSP issue, so this is common with AOSP based ROMs. These bootloops occur irrespective of DATA2SD. I've experienced such an issue myself but after clean-wiping everything and re-flashing my device is running fine. Also, my dalvik-cache is sitting in the /cache partition and my device is running quite fine, no lags at all (except for that brief lag while installing apps in Market). I'm using an N1 partition layout and have plenty of free space in my /cache. BTW Sibere, why did you say putting dalvik-cache on /cache is a bad idea? IMHO it's a good idea, especially if you have a low IOPS SD card. As it is we're experiencing lag due to /data living on the SDCard, putting the dalvik-cache there as well makes no sense. (Again, unless you're having a high speed an high IOPS card.)
[Desire Android Development] sibere:
On a normal configuration, I still think that it's a bad idea and I'm gonna tell you why.

First on a normal Desire, the cache is about 40mb. This cache is needed mainly to download things from the market or do an OTA. 40mb is pretty small and ATM with more than 100 apps, my Dk is about 55mb !! Do you realise what would happen then? Even with 1gb of free space on the ext4 partition, the system would simply refuse to install more apps!

Obviously if you tune your partition layout with a huge /cache, it's a bit different.

So ATM it is making sense to put the DK on /data. But the version I have on my phone is a bit different. I'm using the 150mb of the former /DATA to put the DK on it plus all the settings directories. This gives me enough space to install a lot of apps (I would say about 300+), with an I/O load share and with all settings saved on reboot.

Droidzone and I are working on releasing a stable version of this setup, but we are both very busy. I'm not a full time dev, I have a completely different job which is really time consuming ATM.

Regarding the lags, I have a Transcend C6 8GB card too, and I have no lags at all. Only a small spike lag (1 or 2 sec maybe) when I install a big app from the market.
[Desire Android Development] sibere:
Did you align your 2 partitions and optimized the FAT32 partition like stated in the OP ?

Did you use the format options given in OP?

This helps big time with performance.

Otherwise you can add those options to the 01data script to the ext4 mount command

/system/xbin/busybox mount -t ext4 -o barrier=0,noatime,nodiratime,nosuid,nodev,nobh,nouser_xattr,commit=60,stripe=64 /dev/block/mmcblk0p2 /data
[Desire Android Development] blowy666:
Thats really interessting, cause i had this problem with an installation some time ago. With LeeDroid and Data2SD (the old version), I had 300MB left on EXT4, but could not install an app any more...

Is there a way to see in which directory the dalvik-cache is?

Cause now I´ve flashed Cyanogen Nightly 18 and Data2SD, and till now all worked really fine and very smooth...but would be nice if I could see where the dalvik-cache is, so it will let me know if there will be the "Intall-Problem" again in some days/weeks...
[Desire Android Development] sibere:
I don't know if there is a tweak in CM for moving the DK elsewhere. Normally it's in /data/dalvik-cache. So with DATA2SD, it should be on the SD card :)
[Desire Android Development] blowy666:
Hmm...when I use Root Explorer and open the /Data on phone memory, there IS a folder "dalvik-cache"...but DATA2SD is working, it´s showing me 1,6GB free space in phone infos?!?

Now I´m a bit confused...:confused:
[Desire Android Development] alexcavaco:
I did not optimized the fat32 partition but I aligned both partitions with gparted, with the MB align option.

I'll try those options. Can you tell me what do they modify exactly?
[Desire Android Development] blowy666:
Okay, there could not be an DALVIk-folder on my card with Root Explorer, cause it only shows the SD-part, not the Ext4, I think.

But is it normal that a "part" of the Dalvik stays in phone memory in /data?
[Desire Android Development] sibere:
I'd say RTFM ;)

Basically it's for a better bloc allocation and a better usage of data cache.
[Desire Android Development] sibere:
It is indeed.

ATM the NAND /data is not used but the new version will use it for dalvik cache and settings storage.
[Desire Android Development] alexcavaco:
Very well answered :D

I've read it now.
[Desire Android Development] alexcavaco:
I've tried those options, the music lags/skips continue.

But let me tell you that the rest of the system is fast enough for everyday usage.

I reverted back to the "default" settings.

I'll wait for the option you said you're working on (/data partition keeping dalvik-cache and settings), as I'm quite positive it will have a speed boost, especially on lower class cards.
[Desire Android Development] alexcavaco:
BTW, do you know if doing "adb reboot" or "adb reboot recovery" does the same clean umount of /data as if shutting down the phone with the power button?
[Desire Android Development] sibere:
Not sure but I tried once and the unmount wasn't clean.
[Desire Android Development] Droidzone:
You are right in that it is an aosp issue. But it is not with 'aosp' as such..I've been using Data2SD on Cyanogen 7 nightlies since 4 days and it is as stable as it can get, regardless of the unclean unmount. It seems that the issues are only on those Roms which have the latest versions of DarkTremor A2SD code injected into them. To be frank, even dsixda from the kitchen mentioned that he was reverting to an older version of the a2sd code..And we definitely had no issues with previous a2sd roms. Remove the init.d scripts and the roms would boot fine. However in the newer DT A2SD code, even removing the init.d scripts or touching bin/a2sd would cause freezes with that error that I logged a couple of days ago.

I wrote a note to RichardTrip asking if he could release a version of his Rom before the stage of addition of a2sd. Unless devs do that, it isnt worthwhile wasting our time scripting to reverse the DT code, which apparently seems to be injected even into the boot.img ramdisk. So I've left working on that, and as Sibere mentioned, I'm busy travelling to write some Postgrad exams, so will be busy for a couple of weeks at least.. If anyone using aosp like Gingervillain want to use Data2SD, let them request their devs to release a clean version of the roms..

Cyanogen7 though Gingerbread aosp, works fine b/c it doesnt have a2sd, and if anyone wants GB, they can try that..And the older a2sd versions like Lee/Aurax too work fine with Data2sd//
[Desire Android Development] blowy666:
I´m trying CyanogenMod 6.1.1 at the moment, and it seems like it is working without problems...
[Desire Android Development] sibere:
Great! Happy to read that :)

Sent from my HTC Desire with DATA2SD :)
[Desire Android Development] rayiskon:
:)

3 hours ago i had an unrooted,totally stock htc desire,now i'm enjoying 1.8GB of internal memory thanks to these guys here... Sibere thanks for ur geniusity , and droidzone thanks for making life easier with the zips ;) thanks also to RichardTrip for the kernel. i tell u,these guys have the biggest balls on earth :D

ow and btw, i'm using a KingMax 16GB class 10 with no lags, no problems at all, so any theories (mentioned earlier) about data2sd not working well with class 10 microSD don't hold water :)
[Desire Android Development] mayurh:
congrats, can i ask which rom you are using? hows your battery life? and can you do a sd card speed test on your kingmax.

im also unrooted.but really needing to root for internal memory issues
[Desire Android Development] rayiskon:
i kept the stock rom, just flashed init.d. and busybox,then flashed richardtrip's V5f kernel, then flashed the data2sd zip and Voila :)

as for battery usage i can't say for now, it's only been 3-4 hrs,but i'm not expecting any drop in battery life, especially with the undervolted kernel

as for the card's speed tests i ran them as soon as i got it today from ebay, and i was not satisfied, i saw a test on a local (Croatian) forum about the same type of microSD bought from the same seller which had 18MB/s read and 17 MB/s write , mine had only 10 MB/s for both , also the adapter that came with it isn't working, which will probably result with me giving the seller negative feedback....

Edit: Card tests were done through a card reader of course
[Desire Android Development] mayurh:
thanks alot for the info

i was also thinkin of the kingmax card from ebay , sorry to hear its not as fast as expected.

have you tried adding the sd speed card update? mayb that will help with the sd speed? try it and let us know.

http://xdaforums.com/showpost.php?p=9783893&postcount=1604
[Desire Android Development] rayiskon:
V5f kernel already has a 128 readahead buffer

read part 7 (comments) of sibere's 1st post , this is one more thing i'm planning to do, but i'm tired of all the app installing ,so i'll switch it to 64 later :)
[Desire Android Development] sibere:
Try <1GB and see what happens.
[Desire Android Development] chding:
can i resize the partition in gpart? or need to re-run the whole script?
[Desire Android Development] bluelavender:
Most welcome :-)

Welcome too to the data2sd community :-)
[Desire Android Development] ghmail2:
ater partition i can not use clockword to install rom?

cant mount /sdcard

cant mount /dev/block/mmcblk0

invalid argument

i use diskgenuis to partion the sdcard
[Desire Android Development] sibere:
Yes but you will destroy the ext2 file anyway.

You will have to make a new one and format it to ext2
[Desire Android Development] danarama:
Nah I got the - m 0 in there alright .#

Thanks very much again
[Desire Android Development] ghmail2:
busybox mount -o remount,noatime,nodiratime /mnt/asec/ext/ext2 /data

i have problem with this boost option

mount says i do not have root acces

i did this while android is running

how can i solve this?

or should i use terminal simulator in android?
[Desire Android Development] abz54:
Hi, ive managed to get this working on auraxtsense 8 by removing 40stuff2SD, but whenever it tries to install an app it reboots and goes into a boot loop until i hold the tracker ball, volume down and power together. Is there a solution to this problem?
[Desire Android Development] rafi300:
I've wrote the following in dos window, after following the commands before this,

" dd if=/dev/zero of=/sd-ext/ext2 bs=1048576 " but its been a good 10minutes on a 2gb ext2 primary partition, and there is no response just blinking cursor on the dos window...

On average how much time would you guys think it will take?

There is no progress in the window for one to even know that the program is actually working..?
[Desire Android Development] chding:
I had the same issue on the application installation. Could it possible not compatible with auraxtsense rom?
[Desire Android Development] abz54:
I think there might be a problem with auraxtsense and this, because i tried to make a clip in 720p and when i went to watch it, it when into a loop and that has nothing to do with installing applications.
[Desire Android Development] AndroHero:
it depends on the size of your secondary partition, it took me about 10 minutes with a 1.8GB partition on a laptop with core2duo and 4GB ram :D ofcourse ymmv
[Desire Android Development] AndroHero:
ave you tried flashing the latest radio? i may sort your camcoreder issue out :)
[Desire Android Development] AndroHero:
try gparted or ubuntu :rolleyes:
[Desire Android Development] danarama:
+1 for gparted. I thought I

I'd use a tool I had and it just messed everything up. Gparted works perfectly

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

DeFroST FAQ... http://xdaforums.com/showpost.php?p=6622965&postcount=2
[Desire Android Development] abz54:
yh, i have the lastest radio, the problem is whenever you try to install something with auraxtsense 8 using this mod, it goes into a loop
[Desire Android Development] rafi300:
Ok .

I have got past the " dd if=/dev/zero of=/sd-ext/ext2 bs=1048576 ",.. but now i'm stuck on permission denied.

What could I be doing wrong?

dd: writing '/sd-ext/ext2': No space left on device

2428+0 records in

2426+1 records out

/ # /system/xbin/busybox mke2fs -m 0 -F -L userdata /sd-ext/ext2

/system/xbin/busybox mke2fs -m 0 -F -L userdata /sd-ext/ext2

/sbin/sh: /system/xbin/busybox: Permission denied
[Desire Android Development] Nitin985:
Noob question but if I do this will I loose all my app data ???
[Desire Android Development] abz54:
use titanium backup to save your apps and apps data, then restore when done
[Desire Android Development] mayurh:
try that and let me know how it goes

so u flashed data to sd over your stock rooted rom, is it possible to flash a2sd+ over a stock rooted only rom?
[Desire Android Development] sibere:
You can leave it to 128. It will not make a big difference if you set it to 64. An updated version with a few new settings to improve performance is in beta stage. Wait for the end of the month ;)

Sent from my HTC Desire with DATA2SD :)
[Desire Android Development] rayiskon:
ok so 128 be it, although i noticed a lil time needed to load all the apps when i enter the application manage menu. no wonder as i installed quite a respectable amount of apps and games yesterday, and yet, i still have 1.5 GB free.:D

so maybe as an advice to new people joining the data2sd world, from my experience stick to sibere's 1 GB idea, i think 1.8GB is an overkill especially if u're not an app freak... but then, what the hell, u can never have much internal memory :cool::cool::cool:
[Desire Android Development] sibere:
if you still want to try something different, like, say 64, you can type this with a adb shell (android running)

echo 64 > /sys/block/mmcblk0/queue/read_ahead_kb

This setting will be lost on reboot or can be changed anytime with the system running.
[Desire Android Development] wollyka:
I have the same card with speed 15 Mb/s read and 12 MB/s read but the card was unusable with data2sd for me. Too much lags (if i got a call, the caller id will take more than 5-7 s to pop up!)

Can you try the camera app and take some high quality pictures and see if if you to wait more than 5-10 s between each picture ? Those 2 were the most annoying problem for me with data2sd (or data2ext or data2whatever!)

Maybe i will give it another try since the script has been updated since the last time i used it

Thanks
[Desire Android Development] rayiskon:
it's been over 2 days since i started with data2sd and my desire is stable as a hooker on high heels :D. i don't have any problems at all concerning the performance of the device in general,no lags,sense is responding smoothly,apps running good etc... But i had 1 issue that i mailed sibere about,but i'm pretty sure it's not related to the data2sd script. i used to have lil stutters while recording 720p even before i rooted,now it's getting a lil more annoying (the interesting part of the story is that right after i installed RichardTrip's V5f kernel and applied the data2sd script i recorded a video and had no stutters at all-not a single one- and more fps,then as i installed a big amount of apps something went wrong,i made sure no unnecessary app was running in the background while recording,used a startup manager,basicly tried everything,but without any success).But i had no problem similar to the one u described about lags between taking photos,so definitely data2sd is not the one to blame.

my advice would be check the compatibility of the rom and kernel u have with data2sd,also sibere mentioned an interesting thing in his response to me,align ur partitions and do the optimization trick (the link is in sibere's first post),it should improve the performance of ur microsd.

personally, i didn't do the optimization coz i got lost while reading it :D . Anyways,sibere mentioned some updates coming soon so i hope u manage to get this thing working,believe me it's worth it ;)
[Desire Android Development] alexcavaco:
Music lags/skips are solved for me, even with my class 2 card.

I've been playing with dalvik-cache on internal (now unused) data, this makes the phone smoother and works really well, but not enough to end the skips here...

Then I increased the read ahead like you said and it worked: No more skips! :D

Even when loading several apps while listening to music, including games, no lags/skips.

Thanks :p
[Desire Android Development] rayiskon:
how about recording 720p ,do u get any stutters or freezes ?
[Desire Android Development] sibere:
What value are you using now for readahead?

Sent from my HTC Desire with DATA2SD :)
[Desire Android Development] alexcavaco:
I don't usually do 720p recording, but I tried it now two times and it seemed fine to me.

Recording started immediately after the beep and didn't seem to have any stutters or freezes.
[Desire Android Development] alexcavaco:
What you recommended, 64.

The initial value was 4.
[Desire Android Development] sibere:
4 is really bad on our SD cards. 64 is my fav, but you can try higher/lower values and see what gives you best performance.

To increase responsiveness, you can add those 2 tweaks.

echo deadline > /sys/block/mmcblk0/queue/scheduler

echo 1 > /sys/block/mmcblk0/queue/iosched/fifo_batch

They will be included in next DATA2SD version :)
[Desire Android Development] alexcavaco:
Thanks!

The scheduler was already set to deadline, but fifo batch was at 16, set to 1 now.

I don't know if I'll be able to feel the difference though, as it was already pretty smooth :)
[Desire Android Development] Terepin:
I disagree, VR is much better.
[Desire Android Development] sibere:
Fifo_batch is a bit marginal but every little helps ;)
[Desire Android Development] ceno666:
Can anyone please confirm if the Data2SDInstallerV5_cyanogen.zip created by droidzone work correctly with the current CM7 nightlies?

I tried yesterday as it is described but my desire got stuck during the HTC screen, a short flash occured, after that it shows only the HTC logo and nothing more happens.
[Desire Android Development] Droidzone:
Use the aosp version for CM7 nightlies, not the cyanogen version (which is for CM6 only).
[Desire Android Development] ceno666:
Thanks for the response, just tried it with aosp version, same problem.
[Desire Android Development] Droidzone:
Then your installation steps are wrong. I've been using most of the CM7 nightlies myself with the zip and no issues..Other users have reported success too.
[Desire Android Development] ceno666:
Hm, just realized that when i try to format sd-ext within recovery menu the message Can`t mount /dev/block/mmcblk0p2 (File exists) Error mounting /sd-ext/! ...appears.

Could it be that there is something wrong with my partitioning?

I created fat32 and ext4 partition in gparted.
[Desire Android Development] Droidzone:
If you're using the new clockworkmod, change back to 2. 5. 0. 7
[Desire Android Development] sibere:
This has already been said but all kernels have deadline. VR is not included in all kernels and from what I've seen in coutts99 thread, the performance is not significantly higher.

Did you run some benchs yourself that you could share with us?

Sent from my HTC Desire with DATA2SD :)
[Desire Android Development] coutts99:
Deadline and VR are pretty much on par with each other.