Related
Before you guys start flaming me for not searching etc. Bear with me for a bit.
As many of you might have noticed, we (or some) are suffering from terrible transfer speed to and from our SD Card.
This has been brought to attention earlier. I don't know why, but a recent thread just died.
This
Maybe the thread name didn't bring attention enough. There has also been a older thread from june/july which I can't find anymore. Searched quite a bit. Wonder why it died.
Anyways, on to what we're after.
On my SD card I average like 10/ Mb/s vs 7 Mb/s using cardreader with different write sizes. On my OpenDesire 4.0.10 I get about 2Mb/s on both write and read. Removable storage mode as well as intenally between phone and SD Card itself.
* Problem is not SD card itself, except of course if you got a card that performs badly. The original one (class 2, 4gb) performs just as badly as my Class 4 16Gb. They perform really well using a cardreader though.
* Problem did not exist pre-root on 2.1
* Have had the problem since rooted and ran DeFrost in early june. I've only used Nexus Froyo ports until AOSP ones started popping up, so I can't speak for any other than DeFrost up to 2.3 and OpenDesire 4.0.10.
* Problem outside main OS: AmonRA 1.7.0.1 Recovery, flashed via Unrevoked. This might be unrelated to our quest though, because the AmonRA Kernel might not be configured for high speed storage.
* Does not have anything to do with App2SD from what I can find out. Either native or modded. Why? I've never used it until two weeks ago.
* Problem surely must be Android related itself (maybe a bug? Any problems on the Nexus?), because the write/read speed is just as bad for the phone vs SD card internally as it's over USB Mass Storage mode.
I don't get it really. It's weird. Some of the devs surely must have gotten irritated about this weird behavior and investigated? Maybe we can call Kali to our aid this time? He's really been our savior in other instances and I suspect it's gonna be a simple fix in the end.
Questions which may make our quest easier:
* How's a original phone, non rooted HTC Sense 2.2 ROM performing?
* How's a rooted phone (Unrevoked, Clockwork, AmonRa etc), but nonrooted more or less original HTC Sense 2.2 ROM performing?
* How's a rooted phone, with rooted/modded HTC Sense 2.2 ROM performing?
* How's a fully modded, full of bloatware Sense mod yadda yadda performing? (you get my point)
* Does the Nexus One running Froyo have this problem?
I'm running OpenDesire 4.0.10 which is AOSP with quite a few bits and bobs, so I know how that performs. It uses a fork of Cyanogen Passion kernel, and I suspect the rest of the AOSP ROM's does more or less the same. If you got one that is not based on Cyanogen, or a Cyanogen that performs really well, please tell and post your results. Simple average reports with some details of your ROM. No super duper accurate over time diagnostics crap.
Could it be the root process itself that causes the problem? A glitch somewhere in a boot driver?
I switched from fake-flash (back in june version) to a Unrevoked AmonRA two weeks ago. Problem remains. So, got no clue there.
EDIT:
Please. Don't ask me how to benchmark your SD card (no windows buffered speeds here!), what the difference of/in ROM's are, which kernel is which, who's who etc. If you know what I'm talking about you'll also know what to do (enough ranting from me).
EDIT2:
Please, constructive thoughts and idéas. No demands and "I've got the issue, help me".
Getting 1,7 Mb/sec over Usb with a class 6 card :-/
Sent from my HTC Desire using XDA App
This could be related to my problem I had which I posted @MoDaCo's.
I did not even had slow write speeds, the transfer even hang.
Just out of curiosity: Have you tried this on another PC? I noticed that I did not have this problem on another PC where I haven't installed HTC Sync and the HBoot drivers of unrevoked. At least the hangs are gone. Write speeds are moderate around 4 MB/s on my class 6 card. In a card-reader, it is still better.
Could this have something with thumbnail making in picture viewer? if so original 2.1 was fast on that but as soon as I got 2.2 it slowed down a lot! Haven't got original 2.1 left so can't check read and write.
I have get best card performance with Cyanogen(N) mod,read 15Mb write 9Mb
with sence roms this resut is half of performans,OpenDesire4015 is read 9Mb write 6Mb
but vith nmy test on NextSense5.2 9Mb with write7Mb
What scheduler is used in your roms? Mine is currently deadline, but I can easily switch to cfq and all the others too. Maybe its just a scheduler problem.
System of a pWne!^ said:
What scheduler is used in your roms? Mine is currently deadline, but I can easily switch to cfq and all the others too. Maybe its just a scheduler problem.
Click to expand...
Click to collapse
I've tried switching to CFQ and it helped a bit but didn't fix the problem. I now get shorter dropouts when playing music in the Music application and downloading offline playlists in Spotify, but the dropouts still happen (and they didn't in 2.1).
I'm using my own ROM based on the O2 Froyo RUU (RUU_Bravo_Froy2_UK_2.14.207.1_Radio_32.44.00.32U_5.09.05.30_2_release_144166_signed.exe), with a2sd added using the dsixda kitchen. I've also experienced slow SD card problems with the other Froyo ROMs I've tried.
If I have time I'll try putting 2.1 back on and see whether that speeds up SD access.
System of a pWne!^ said:
What scheduler is used in your roms? Mine is currently deadline, but I can easily switch to cfq and all the others too. Maybe its just a scheduler problem.
Click to expand...
Click to collapse
Changed between noop, deadline and CFQ. No deal :/
koider said:
If I have time I'll try putting 2.1 back on and see whether that speeds up SD access.
Click to expand...
Click to collapse
I've downgraded to 2.1 (the version in r6-desire-root.zip, 1.15.405.4 CL155070 release-keys with kernel 2.6.29-82821fb5) and SD card transfers are FAST with that rom. They're also fast with OpenDesire, so I'm using OpenDesire for now. I have a feeling that this problem is kernel-related so hopefully when (if?) HTC release their kernel sources we'll be able to fix it...
Results from the "SD Card Speed Test" app:
Write: 6.0 MB/s, Read: 14.0 MB/s in OpenDesire 4.0.19
Write: 2.0 MB/s, Read: 6.0 MB/s in Froyo/Sense (custom ROM based on the O2 2.14 RUU)
Write: 5.0MB/s, Read: 16.0MB/s in Eclair/Sense (1.15.405.4)
I also tried installing RUU_Bravo_Froyo_HTC_WWE_2.10.405.2_R_Radio_32.44.00.32U_5.09.05.30_2_release_142828_signed.exe to make my phone completely stock, in case rooting/mods were the problem, but I got similar speeds with the stock Froyo ROM to the speeds I got with my custom Froyo ROM.
I'm a bit happier now that I've got a Froyo ROM with decent SD speeds (OpenDesire), but I'm missing sense
koider said:
I've downgraded to 2.1 (the version in r6-desire-root.zip, 1.15.405.4 CL155070 release-keys with kernel 2.6.29-82821fb5) and SD card transfers are FAST with that rom. They're also fast with OpenDesire, so I'm using OpenDesire for now. I have a feeling that this problem is kernel-related so hopefully when (if?) HTC release their kernel sources we'll be able to fix it...
Results from the "SD Card Speed Test" app:
Write: 6.0 MB/s, Read: 14.0 MB/s in OpenDesire 4.0.19
Write: 2.0 MB/s, Read: 6.0 MB/s in Froyo/Sense (custom ROM based on the O2 2.14 RUU)
Write: 5.0MB/s, Read: 16.0MB/s in Eclair/Sense (1.15.405.4)
I also tried installing RUU_Bravo_Froyo_HTC_WWE_2.10.405.2_R_Radio_32.44.00.32U_5.09.05.30_2_release_142828_signed.exe to make my phone completely stock, in case rooting/mods were the problem, but I got similar speeds with the stock Froyo ROM to the speeds I got with my custom Froyo ROM.
I'm a bit happier now that I've got a Froyo ROM with decent SD speeds (OpenDesire), but I'm missing sense
Click to expand...
Click to collapse
The application SD card speed test is strange...
It shows my 8GB card as "class Unknown", but the strangest are the test results:
Write: 9.0 MB/s, Read: 3.0 MB/s in Froyo/Sense
Isn't the reading speed supposed to be higher than the writing speed?
After rooting,, my Desire's usb data transfer rate has drastically reduced...
currently i'm running Open Desire 4.0 froyo rom,
i have tried many ROMs but the data transfer dint improve ,
i'm getting 1.5 to 2Mbps depending on the Size of the file,
i'm using class2 Transcend 8gb sd card....
so can somebody tell whats wrong with my cellphone..???
harish.awe said:
After rooting,, my Desire's usb data transfer rate has drastically reduced...
currently i'm running Open Desire 4.0 froyo rom,
i have tried many ROMs but the data transfer dint improve ,
i'm getting 1.5 to 2Mbps depending on the Size of the file,
i'm using class2 Transcend 8gb sd card....
so can somebody tell whats wrong with my cellphone..???
Click to expand...
Click to collapse
because have you ROOT
Class 2 microsd write speed is 2mbps. Seems your transfer rates are fine. Try a class 4 or 6 card and see what you get.
killawatts said:
Class 2 microsd write speed is 2mbps. Seems your transfer rates are fine. Try a class 4 or 6 card and see what you get.
Click to expand...
Click to collapse
No, if you have rooted phone, after root slow usb
I have Class 10 and slow. Before root OK, after slow.
Indepedence sdcard, fat32 or fat+ext ... slow
Absolutely,, before rooting i was gtting 5mbps transfer rate with the same sd card.....
But i dont understand what does rooting to do with data transfer rate,,,,???
harish.awe said:
Absolutely,, before rooting i was gtting 5mbps transfer rate with the same sd card.....
But i dont understand what does rooting to do with data transfer rate,,,,???
Click to expand...
Click to collapse
It's probably the EXT partition...
I have the same problem.
I dont have a SD EXT partition and its really SLOW! 500KB/S! Please helpp! Got alot of stuff copying back to sdcard
Can be a kernel problem as well. Try to search on the forum, I recall a thread where was a solution to this.
Transcend class 2 surely goes over 2 MB/s writing speed, i would also say it's something that has to do with the microSD partitions,maybe formatting and repartitioning would help
AlSopranos said:
I dont have a SD EXT partition and its really SLOW! 500KB/S! Please helpp! Got alot of stuff copying back to sdcard
Click to expand...
Click to collapse
are you confusing the write speed and the read speed?? when you copy something from your sd card to somewhere else. that is the read speed! you will get about 5mb/s on any class of sd card... when you copy somthing to a sd card, thats the write speed, and there is no way you will ever get more than 2mb/s with a class 2 card, end off! full stop
Pretty sure class determines the minimum, not the maximum, write speed.
I'm also quite pi**ed off with the copy speed.
On stock rom it was definetely fast and now absolutely slow.
Are you serious it is because of root?
Well, i prefer root more than faster writing speed - but i would really love to know the reason for!
What ROM do you have now? Flash a kernel with the SD fix, and you'll get back some speed, but not the maximum (if your card is partitioned).
I'm using Amethyst RC 7 (2.3.2), using A2SD+.
i think for GB is no kernel fix available? But to be serious, i've never thought about another kernel as the one which is included in the rom.
Any help is appreciated
so, i got the hint to use multi-móunt sd card which works really fine. I get again about 2mb/sec which is absolutely ok..
Actually, yes this is Kernel related.
Sadly the latest Kernel .37 is affected.
But Luckily there is a fix.
Look here
http://forum.xda-developers.com/showpost.php?p=11187612&postcount=808
lol strange but i was getting around 1-1.3mb on my class-2 8GB card,now after rooting,i am getting 3-4mbps.
also on other card which was 2gb(donno about its class)i used to get 3-4mbps write speed & now after rooting i get 10mbps.
P.S. i have custom rom installed
I had the same prob...
Solved it by ,completely formating my SDCard (dont forget to mount the partitions in Recovery) and after flashing a new rom,i flashed Cutts kernel and all works fine now again
I used to have approximately 5.0MB/s writing speed before rooting my HTC Desire. Since then, the speed dropped to 150~500KB/s. I tested with OpenDesire, PAYS-MIUI, MIUI, CM6/7 and they all give me the same slow speed. I read in one of the forum that Kernel 2.6.35.x solves the speed problem but I have not tried it. Anyway, a satisfactory work around for me is to use FTP file transfer from File Expert. The downside is, you'll need a stable WIFI connection to transfer large files.
Cheers
Hy, i have a routed desire running auras 7.6.1 (i think, anyway the latest of his roms) and a kingston class 6 microsd. I have testet the sd on my laptop right after i got it and it could sustain a rate of 7mb/s write and around 10 to read. Now i formated it twice, reinstaled rom and record at 800x600 even if i choose mp4 or h.264 i get an anoying 1 sec frreeze at each 20-30 sec of recording...i mean recording never stops....i can see that freeze only at playback. I tought its the player so i have copyed the movie to pc and i still get the same freeze on pc too, so im thinking its a writing problem on sd card or something...
Ps if i plug my phone to pc and use it as mass storage device and upload a file to phone i only get a sustained speed of 1,5-2mb/s is that ok or is it rly somthing wrong with my card as i suspect...
Excuse my poor english and typing mistakes i send it from my desire thanks.
There seems to be a problem with SD card speeds in Froyo / Sense ROMs. You could try a non-Sense ROM, e.g. CyanogenMod 6, Defrost or OpenDesire - I had similar problems to you and got around them by switching to CM6. If you decide to try another ROM it might be worth using the "SD Card Speed Test" app from Market to benchmark before and after you change ROM.
Let me know how you get on...
Hy, i have tested the sd card with that aplication, i get 2mb write and 4mb read. I have instaled cyanogen and another rom without sense, speed went from 2mb write to 3mb write and that was all...i have tryed it without an ext3 partition also and speed was the same... so i went back to sense rom... since the speed improvement its not much. Maybe someone can recomend me an sd card wich works at greater speeds with a rooted desire, and maybe a place where i can buy it from UE thanks.
that's strange. I have a class 4 Kingston 16GB card and I get 6mb write and 5mb read!
Phil
littlej said:
Hy, i have tested the sd card with that aplication, i get 2mb write and 4mb read. I have instaled cyanogen and another rom without sense, speed went from 2mb write to 3mb write and that was all...i have tryed it without an ext3 partition also and speed was the same... so i went back to sense rom... since the speed improvement its not much. Maybe someone can recomend me an sd card wich works at greater speeds with a rooted desire, and maybe a place where i can buy it from UE thanks.
Click to expand...
Click to collapse
You said earlier that you have a class 6 SD card, so you should be getting at least 6MB/s. Do you have something other than your phone that you can test your SD card in, for example a card reader? That would help you to work out whether the problem is with your SD card or the phone.
if u can recomend me a software to test it in windows 7 x64 i can test it in my laptop
Hy, well problem is solved for me. I have tested the card in laptop and i was geting a 2mb/s write and sometimes jumped at 3-4mb/s max. So i sent it back, and got an A-data 8gb class 6. I pluged it straight into phone, recorded a video and worked flawless, i installed android sd card speed test and i got a write of 6mb/s and 7mb/s read. Afther that i did an ext3 partition on it, and got same write and read speed, so problem was the SD card. Thanks.
Hello,
I have bought a Kingston MicroSD 16gb Class 10 card from eBay, although I was a bit concerned(because its eBay), I have received the card and tested it with H2testw v1.4.
The results:
Warning: Only 15475 of 15476 MByte tested.
Test finished without errors.
You can now delete the test files *.h2w or verify them again.
Writing speed: 10.6 MByte/s
Reading speed: 18.4 MByte/s
H2testw v1.4
Ive been using Starburst Lite + data2sd rom, and when I got the new card I have reinstalled the rom just like I have installed it the first time (partitioned the sd card with fat32 and less than 2gb to ext4).
Now, the phone keeps lagging, and everything is slower, and I have no idea why.
The weird thing is, when I tried to play Modern Combat 2, it was way faster than with the class 2 card.
I have tried testing the card through the phone with Sdt (SD Card Tester) and it says the card has a write speed of about 2-3mb/s.
I have not tested read speed.
Why am I expriencing this? is it because the way I have reinstalled the rom? is it because the card is fake(even though the program I used to check the card said it was alright)? is it because the facebook sync/google sync?
You phone might lag during the first hours after installing a new ROM, I've had this too.
I had a similar problem with a Patriot class 10 card. I changed to an A-DATA class 6 and have had no problems at all using the StarBurst Main rom. My class 10 card in the phone suffered horrible write speeds, but amazing read speeds (no good for data2sd). The class 6 is WAY better.
ooie: I have installed the rom on the new sdcard last night at 19:30pm, and now its 10:17am.
OpusX11: It's a kingston branded card, and they're considered to be quite good as far as I know.
Also, I have tested the card with my pc, and it had better write + read speeds.
many issues have been reported already with class 10 cards and data2sd coexisting u can check here. i have a class 10 kingmax and have no problems though. since u're using sibere's data2sd (Starburst ROM) did u align to MiB when u created ur partitions, have u done the optimization trick mentioned in the data2sd OP?
Edit: i don't see why u reinstalled the ROM , wouldn't just partitioning the new card do the trick ?
rayiskon said:
many issues have been reported already with class 10 cards and data2sd coexisting u can check here. i have a class 10 kingmax and have no problems though. since u're using sibere's data2sd (Starburst ROM) did u align to MiB when u created ur partitions, have u done the optimization trick mentioned in the data2sd OP?
Edit: i don't see why u reinstalled the ROM , wouldn't just partitioning the new card do the trick ?
Click to expand...
Click to collapse
To be honest, I have no idea whats MiB or the other link you're talking about.
I have installed the rom the same way I have installed it on my other card, the class 2 sandisk, which worked quite fast.
I have reinstalled the rom because i'm new to android and I wasn't sure if I had to install it or not so I just did it all again.
hfg666 said:
To be honest, I have no idea whats MiB or the other link you're talking about.
I have installed the rom the same way I have installed it on my other card, the class 2 sandisk, which worked quite fast.
I have reinstalled the rom because i'm new to android and I wasn't sure if I had to install it or not so I just did it all again.
Click to expand...
Click to collapse
if u partitioned ur microsd with Gparted there is an option "align to MiB" (MiB= mb)
the optimization link is from the data2sd thread
this is a line from starburst thread "Data2Sd Re-Installer
If you ever reflash the Rom alone after the Data2SD is installed, some essential libraries required by Data2SD is lost. To restore them, flash the Rom in Recovery, followed immediately thereafter by the Re-Installer.
so go to the thread and download the data2sd REinstaller, flash ROM and then flash the reinstaller without leaving recovery, then reboot and see what happens.
I agree that Kingston normally is a very good brand, i use their RAM quite a bit, but when it comes to microSDHC, not so sure. Search this site for Kingston problem and you'll see the threads I was referring to.
Ok, so i checked my partioning and it seemed like i checked the align to MB thing.
Ive reinstalled the rom, and then Ive installed the Data2SD REinstaller, made a reboot and the phone just freezed at the green htc logo screen.
So ive installed it the way i did the first time and it works again, but slow.
Perhaps its the card? Or the Desire compatibility with the card?
I thought my phone would become super fast, but now it operates even slower :-\
I´ve flashed RCMixHD Data2ext with a Kingston 16 GB class 10 Card.
First hours the ROM feels very laggy, after "sattle down", it runs fast and smooth.
Well I've tried to wait one day but it was still laggy..
It says made in taiwan on my card, where was your card made?
mine is from china
I havent found a solution yet.. i have tried to reinstall starburst a few times, and tried to installed the standard edition instead of the lite edition, and its really slow and frustrating..
seems to be pot luck with sd cardsand desire , i had troubles with my first class 1016gb card but switched to a-data class 10 after recommendations from other users and havent looked back , top stuff
tonnytech said:
seems to be pot luck with sd cardsand desire , i had troubles with my first class 1016gb card but switched to a-data class 10 after recommendations from other users and havent looked back , top stuff
Click to expand...
Click to collapse
You had the class 10 kingston too?
I am beginning to think its the sd card, after I read that its not just about the class but also about the random write speed
Hi All,
I am running teppic74's rooted, A2SD+ but otherwise stock HTC/Sense/Froyo ROm.
I have a Lexmark, 16GB Class 6 SD card. It came from a reputable source, and I've tested it thoroughly on my PC and it really does perform above and beyond class 6 (ie, 6MB/s sustained write).
However, when I have my desire connected to my PC over USB, and copy files to the SD card, I sustain about 0.75 MB/s
I don't know why it's so slow.
Does anyone else have this problem?
thanks
Slip
Please use the forum search next time, what you describe is a well-known bug seen on latest kernels.
Strange. Have you compared USB transfer speeds on different ROMs?
I have a class 2 sd card that does maintain a decent 2MB/s transfer.
GingerVillian and Miui Roms tested.
I read somewhere that using A2SD/+, D2EXT/W etc does cause sd card to read/write slower over time.
This is it, i've nothing to compare against. I've been through several roms recently and i didn't bother syncing multiple gigabytes of music (keep repartitioning my sd card) until the last couple of days.
Reluctant to switch roms again do to the hassle of installing all my apps etc.
Changing the SD readahead speed makes no difference. "SD Tools" from the market measures write speed at a pretty constant 4 MB/s - but still i can only write over USB at less that 1 MB/s. Makes me think that the problem is with USB rather than SD.
Initial testing in Windows
I have done some testing with this and I really think this is a bug or something that NEEDS to be fixed.
I have a 8GB SDHC Card. It's A class 4 card, meaning transfer speeds should never be lower than 4 MB/s.
When I put my SD Card in my SD slot of my computer using the little adapter that came with it, the transfer speeds are awesome. Now they were as follows:
Read: 6,4 MB/s
Write: 1,1 MB/s
These values are atrocious so I searched for possible reasons. I found out Windows Vista used a very low cluster size when formatting the SD card, it used 1024KB (I think). After manually choosing to format using 64 KB clusters and testing again, this is what I got:
Read: 19 MB/s
Write: 9,2 MB/s
Explaining Cluster Sizes
Now making the cluster size this big has a disadvantage. The size of every file on the card will be rounded up to the nearest 64kb. This is because of the way the SD cards works, which I'm not going to explain here.
This means that a lot of space will be wasted. Read about it in the link to Wikipedia. In short:
Large cluster size ->Less usable space, faster transfer rates.
Now I put my cluster size at 16 KB as a compromise between storage loss and speed gain, resulting in these speeds:
Read: 17 MB/s
Write: 8,9 MB/s
Testing in Android
I put my SD Card back into my Android phone, and plugged in the USB Cable. I copied some files to the SD Card. Guess what:
Read (Max, not average): 2 MB/s
Write (Max, not average): 1,44 MB/s
Which does not make any sense at all. I used the "SD Speed Increase" app to change the cluster size within Android (which is 128kb by default) and it still did not help.
This is a serious issue in my opinion, I lost some data and want to restore a backup, If I leave my SD card in my phone it would take 23 hours according to Windows! If I put my SD Card in the computer, the same task only takes 12 minutes!
Workaround
While searching around on XDA I found a workaround to this problem. This is by no means a real fix, but it enables you to get proper read and write speeds without the need to take the SD Card (and thus the battery on some devices) out. Reboot your phone in recovery. I have CWM-AlphaRev Recovery, but it should work for other recoveries too.
In AlphaRev recovery, go to
"mounst and storage"
"mount USB Storage"
The phone will be connected to the PC, and what do you know?
Read: 17MB/s
Write: 8,7 MB/s
Which is basically the same as I would get if I wouldn't have used the phone at all!
Sources:
SD Speed Increase:
https://market.android.com/details?id=com.sdincrease.it&feature=search_result
Measure SD speed from within Android:
https://market.android.com/details?id=ales.veluscek.sdtools&feature=search_result
Information on cluster size:
http://en.wikipedia.org/wiki/Data_cluster
SD Card Class rating:
http://en.wikipedia.org/wiki/Secure_Digital#Speed_Class_Rating
Reboot into recovery for proper speeds:
http://forum.xda-developers.com/showpost.php?p=11671350&postcount=2
just flash a different kernel
Tried many many kernels, not one really helped unfortunately
Being reminded about this issue yesterday evening while copying over a bunch of music, I went for a search again, and stumbled across this post:
http://forum.cyanogenmod.com/topic/15003-ultra-slow-usb-transfer-speed-on-desire/ which lead me to this post: http://forum.xda-developers.com/showthread.php?t=883598
The problem came with the .37 kernel, but wasn't fixed in the .38 kernel apparently. The Manu kernels are based on .35, so from what I've read it will solve the slow write speed. Since I'm at work atm, I can't write to USB (security policy ), so couldn't test it yet.
Right, using the Manu kernel (havs-axi), I can now transfer data (music...) at 1,6MB/s instead of 0,75MB/s. Not a significant increase, but at least an increase I can live with.