SD-Card speedtest - JASJAR, XDA Exec, MDA Pro General

a nice guide that should be shared with everyone
http://pocketpcmag.com/forum/topic.asp?TOPIC_ID=17921
In general, to get the highest write rates you should format the storage card with as large a cluster as you can and most of the time the FAT16 file system is faster than FAT32.

very interesting read, seems unless you have one of the cards specified in the article then trial and error formatting may award you with increased card performance. I think ill give it a go and see how it pans out, a cpl extra milliseconds read time never hurt and might speed up the odd game or picture or two.

There is a thread running about this subject: Formatting the storage card

Related

Wrong Storage Card size

Hi
I bought a kingston 512mb sd, but my xdaII is reporting it as a 483,55 mb size...
I already tried to format it with FAT32 but didn't solve it
any idea ?
thanks!
Memory
I ain't no IT guru but this much I know.
There's this memory mystery which has been around that I tried reading about before however after attempting to digest the article I'd rather it remained a mystery.
:mrgreen:
It's normal Bro. Hopefully some expert will provide a proper explanation for you. In the mean time I hope you can take my word for it.
Here's a screenshot of my 512MB SD card memory.
The main reason for the difference in size is this, even though your SD is a "memory" card, your PPC treats it like a disk drive - you format it with a FAT file system.
FAT stands for File Allocation Table, meaning that there is a table stored on the media (just like on a hard drive or floppy drive) that stores the location of the files on the media so they can be located quickly and easily, since files are not stored contiguously. Think of it as an index.
The larger the media, the larger the FAT. For instance, the following are my SD cards and their FAT sizes: 128MB/8MB; 256MB/16MB; 512MB/32MB; 1GB/58MB.
HTH
argh
:shock:
How didn't remember that ? :roll:
You know, the card was so much expensive than i wanted to pay, that when i tested it, i just felt reaaaaallly mad!
(i was just thinking how much does 29mb cost!)
thanks for the replys and fast help!
Actually, there was a patch, that allowed to use the space, that is not physically taken by FAT32: FAT32 reserves 32b for each possible catalog. If your catalogs are only, for instance, 12b long - you don't need resting 20b, but it's reserved by FAT, so you can't store anything there! The bigger storage you have, the more it reserves! The patch allowes you use the spase unless it's physically taken.
I'll try to find the patch till the end of the week and post it.
PS: you can also format your card in FAT16 or even FAT8 - both will take less space!
big fat making diet
that would be great! thanks!
Oops
Oops!
So the memory mystery don't apply in this huh?
Sorry hbatista for giving wrong info.
Thanks guys for the enlightenment.
The other reason is some retailers claim 512 megabytes, however their megabyte is 1000kb whereas we are used to the idea that a megabyte is 1024kb.
Kignston explanation
Hi
Before i posted to this forum i contacted kigston and here their explanation:
"Dear Mr. Batista,
Regarding your below request:
The fact that your flashcard shows about 6% less of its capacity is quite normal and the following will try to explain why:
When formatted to a specific file system, storage devices such as the Kingston flash card SD/512 "loose" a small amount of capacity because this is used by the file system to store file system information. Operating systems (such as Windows, for instance) will format using 1K=1024 bytes rather than 1K=1000 bytes resulting in some residual loss of capacity.
SD technology comes with a security feature that enables manufacturers to add specific hardware controlled security features for their software when stored on an SD card. More information regarding this can be obtained from the SDA (Secure Digital Association) at http://www.sdcard.org. Furthermore a so-called "OS overhead" exists, where the operation system stores OS specific data on the storage device. The overhead varies between different OS.
An overall overhead of 29MB is well within limits and you will find that it will be the normal amount of overhead for the SD/512 for your OS.
You can observe the same effect for all your other storage devices, especially hard drives.
Usually the reduction of available data is in the range of 2%-7%. You can try and replace the card at your point of purchase, if you feel that the problem is related to a defect of the card rather than the above phenomenon, however it is most likely that the replacement will show the same capacity.
Regards"
Click to expand...
Click to collapse

Defragging

I defragged my SD and the performance gain was considerable. Is there any program that can defrag the main memory or the Storage?
i used my cardreader, but i think that's diffrent :?
Defragmenting flash or SD memory is useless since every address on the chip has the same access time. Defragmentation only makes sense with devices like hard disks, where the relative location of data plays a role.
is there any way of defragmenting the device itself not the SD card
Dandie said:
Defragmenting flash or SD memory is useless since every address on the chip has the same access time. Defragmentation only makes sense with devices like hard disks, where the relative location of data plays a role.
Click to expand...
Click to collapse
Not quite sure I understand your response. Using Pocket Mechanic, I can format the SD card with FAT16 or FAT32. Both file systems can become fragmented...
BTW, Pocket Mechanic can defragment the internal storage memory (if you rename it to something other than "Storage" - it seems to have a problem with the default Magician file name), but NOT the main memory file system.
stevedebi said:
Dandie said:
Defragmenting flash or SD memory is useless since every address on the chip has the same access time. Defragmentation only makes sense with devices like hard disks, where the relative location of data plays a role.
Click to expand...
Click to collapse
Not quite sure I understand your response. Using Pocket Mechanic, I can format the SD card with FAT16 or FAT32. Both file systems can become fragmented...
Click to expand...
Click to collapse
Yes, they can become fragmented, even NTFS can get fragmented although MS designed it not to. But that is besides the point, as pointed out before. Defragmenting can speed up (and mechanically relieve) all devices that use mechanical means to retrieve the data. On a hard disk there are tracks kind of like on an old vinyl audio media. Fragmentation in this context means you want to listen to track 1,3,7,9 and 11. So you have to lift the needle after each track and reposition it. Same happens when a hard disk wants to read a file smeared across multiple tracks on the disk platter. It reads some part, then has ro reposition the head and keep reading. Defragmenting puts the data of one file into one long track so the time needed for positioning is eiliminated. In the analogy that would be pressing a new vinyl disk that only contains the tracks desired (1,3,7,9,11) just one after another. You won't have to lift the needle anymore.
This is the theory. But for memory chips (all kinds, be it RAM, ROM, USB-Sticks, SD-Cards, ..., any storage media with NO MOVING Parts) this is not applicable. When the system wants File A it looks in the File Table where that file is located. Then it gets a list of positions and starts requesting the contents of these positions from the card device. The access time to any of these positions is exactly the same. Go back to the audio comparison. For a vinyl disk you have to lift and reposition the needle if you selectively want to hear certain songs only. If you had the same album on a MP3 player or other device you can arrange your playlist and no matter in which order or position the tracks are the time until the player starts playing them is the same.
Hope that clears it up. I am actually not too sure why the PocketMechanic author has put in Defragmentation. It does not make sense to me. Maybe on FAT devices there is a slight advantage to having the files en bloc because that way their position data is more compact (just START-END or something as opposed to START1-END1 ... START2-END2 ...) but I am not sure about this. Even if this was the case your only gain would be a few bytes of SPACE not TIME.
Takes ages too to defragment a SD-card. So if you insist in defragmenting you'd better put your SD in a card-reader & transfer the contents to your harddisk, format the card if you like (faster than deleting) or delete everything & transfer everything back.
M
STAY AWAY from defragging flash memory!!!
1.) This doesn't help anything, it won't be faster. Flash memory is adressed directly (like already said) and doesn't need to be defragged.
2.) If you want (for whatever reason) the files to be in one piece (that's what defragging does) on the flash memory, simply copy the contents of the card to the PCs harddisk, reformat the card and copy the stuff back on. This has the same result as defragging.
3.) Defragging will destroy you card! Flash memory has a limited amoung of read/write cycles before the will die someday. It's unlikely you'll ever see that in real life use because read/write cycles are used faithfully by PPCs. However defragging uses an insane amount of read/write cycles since data is read and written so often from one point to another that it will shorten the lifetime of the card noticeably.
I don't know why defragging of flash memory is offered at all, it's no good at all and only damages the cards in the long run. But maybe it's a feature that has to be "there".
Wow, I never knew that. :!: I had been faithfully defragging my SD once every few months; I am going to stop doing that.
Always learn something new around here! 8)
Well, best is to use that format method and move the contents to the PC and after formating the flash memory card copy the stuff back on. This has the same effect as defraggin, takes much less time (since defraggin flash mem in a PPC is not that fast at all) and has no negative effect on the lifetime. I tend to do that once in 2-3 month. But the speed gain is not even worth mentioning, it's basically nonexistant.

Storage Card Tweaks?

I have the TMOUSA version, but I think this question would apply to all versions, and in fact to other phones as well.
I was just re-reading the excellent guide to storage card optimization by the great Windows Mobile guru (and XDA member) who writes under the name Menneisys:
http://www.smartphonemag.com/cms/forum/topic/17921?&TOPIC_ID=17921
That article was written a few years ago, though, with older WM versions, and older storage cards.
I am wondering if the info is still relevant, to a new phone like the HD2, with WM 6.5 and Sense, and the newer storage cards?
The 16MB storage card that comes with the HD2, although the newer SDHC type, is only Class 2, therefore relatively slow, compared to Class 4 and Class 6 cards. I am wondering if using any of the tweaks suggested in the article by Menneisys would speed up the card.
For instance, changing from FAT32 to FAT16? (FAT16 is really ancient now though, don't know if it would work well at all on newer cards and devices.)
Eliminating the FAT backup?
Also, by changing to a larger cluster size? (Which of course, would reduce the storage space, by adding more slack. But would it speed up the card's performance enough to make it worth it?)
Of course defragmentation is always a good idea, with any disk or card, old or new. That part of his advice is not in question, then or now.
But I am wondering about the other stuff--like changing to FAT16, eliminating the FAT backup, and changing the cluster size?
Anyone know? (Menneisys, are you reading? Others?)
Thank you.
well, without reading the link, (i'll save that till the kids are in bed) i can say that fat16 can't address 16gb, however re the cluster size, yes, that can deff help, especially if you have lots of fairly large files. if your card is mostly music images and video, then you can deff benefit from setting the size as large as it will go. it does mean tiny files will take up a whole block, of course, but if its mostly big files then go for it.
samsamuel said:
well, without reading the link, (i'll save that till the kids are in bed) i can say that fat16 can't address 16gb, however re the cluster size, yes, that can deff help, especially if you have lots of fairly large files. if your card is mostly music images and video, then you can deff benefit from setting the size as large as it will go. it does mean tiny files will take up a whole block, of course, but if its mostly big files then go for it.
Click to expand...
Click to collapse
Very interesting article. Yes, do read it when you have a chance.
Yes, probably SDHC cards did not exist at the time of the article, nothing larger than 2 GB. So, sounds like the FAT16 option is out for current cards.
Do you know if that option of formatting a card with "no FAT backup" still makes sense on current cards? Is it a risky thing to do?
Regarding the cluster size-- most of us probably have both small and large files, not only one or the other. So, it is a trade-off between speed and storage space. What cluster size do you think is a good balance between the two?
never read anything about fat backup, so i couldn't say. as for block size, i use 16k on a 2gb card, which has 1gb of music and about 300meg images.
i would say the lost space is negligible on sdcards, even if you have a thousand 1k files, you only waste 16meg, so that's maybe 1/2 an mp3 album,, its only really an issue when dealing with hundreds of gig hard disks with tens of thousands of tiny system and program files. (just checked mine, theres only 250 files smaller than 32k, and only 120 less than 5k)
course, its a matter of preference, and i'm sure there are loads of people will say i'm wasting space and should be disowned from the community,, hehe
samsamuel said:
never read anything about fat backup, so i couldn't say. as for block size, i use 16k on a 2gb card, which has 1gb of music and about 300meg images.
i would say the lost space is negligible on sdcards, even if you have a thousand 1k files, you only waste 16meg, so that's maybe 1/2 an mp3 album,, its only really an issue when dealing with hundreds of gig hard disks with tens of thousands of tiny system and program files. (just checked mine, theres only 250 files smaller than 32k, and only 120 less than 5k)
course, its a matter of preference, and i'm sure there are loads of people will say i'm wasting space and should be disowned from the community,, hehe
Click to expand...
Click to collapse
Read the Menneisys article, and he says it makes the card run a lot faster, to eliminate the FAT backup. (Something you can do with SK Tools.)
However, I would wonder if that would make the card less stable, more prone to data loss. Or, even whether a non-standard cluster size might make the card more flaky?
does wm 6.5 support exfat?
using 16G thumbdrive on win 7, exfat is wayyyy faster than ntfs.
I used the 8GB card at the beginning, switched then to a 16GB card class 6 and then to 32 GB class 2 and dinĀ“t find the slightest dfifference in speed, neither when recording videos with the cam in max resolution.
me said:
Read the Menneisys article, and he says it makes the card run a lot faster, to eliminate the FAT backup. (Something you can do with SK Tools.)
However, I would wonder if that would make the card less stable, more prone to data loss. Or, even whether a non-standard cluster size might make the card more flaky?
Click to expand...
Click to collapse
lets take a step back and think about what the FAT backup is. i believe it is another table that mirrors the contents of the primary table. essentially, it can be used to recover your file system table in case the primary backup is corrupted/lost. now lets think about WHEN this table is read. to the best of my knowledge, the backup is read ONLY if the primary is found to be corrupted. similarly, the backup is UPDATED/WRITTEN only when the primary is UPDATED/WRITTEN.
thus, any speed gain due to disabling the backup should be seen in WRITE operations ONLY. read speed should be not be affected by that tweak. i could be wrong though!
if i am correct, then try disabling the backup if you desire write speed. however, you will lose some of the "robustness" of the file system. and FAT (and its variants like FAT12, FAT16, FAT32) are already fairly fragile file systems.
regarding cluster sizes, a smaller cluster size means LESS wastage when having many SMALL files. a larger cluster size means MORE wastage when having many SMALL files. however, a smaller cluster size means MORE clusters to address, which means a LARGER allocation table, which means MORE TIME spent looking up/updating the table's contents. conversely, a larger cluster size means LESS clusters to address, which means a SMALLER allocation table, which means LESS TIME spent looking up/updating the table's contents. so the sweet spot would be somewhere in the middle. HOWEVER, most modern operating systems load the allocation table in MEMORY so i imagine the speed gain would be negligible. the fact that the table is managed in memory and periodically updated back to the disk is the reason behind most corruptions in a non-journaling file system like FAT.
i've over simplified things a bit, but it should give you an idea of what kind of gains to expect by such tweaking (i.e. little to none in my opinion!).
Again, I'd suggest reading the Menneisys article.
ASCIIker said:
lets take a step back and think about what the FAT backup is. i believe it is another table that mirrors the contents of the primary table. essentially, it can be used to recover your file system table in case the primary backup is corrupted/lost. now lets think about WHEN this table is read. to the best of my knowledge, the backup is read ONLY if the primary is found to be corrupted. similarly, the backup is UPDATED/WRITTEN only when the primary is UPDATED/WRITTEN.
thus, any speed gain due to disabling the backup should be seen in WRITE operations ONLY. read speed should be not be affected by that tweak. i could be wrong though!
if i am correct, then try disabling the backup if you desire write speed. however, you will lose some of the "robustness" of the file system. and FAT (and its variants like FAT12, FAT16, FAT32) are already fairly fragile file systems.
regarding cluster sizes, a smaller cluster size means LESS wastage when having many SMALL files. a larger cluster size means MORE wastage when having many SMALL files. however, a smaller cluster size means MORE clusters to address, which means a LARGER allocation table, which means MORE TIME spent looking up/updating the table's contents. conversely, a larger cluster size means LESS clusters to address, which means a SMALLER allocation table, which means LESS TIME spent looking up/updating the table's contents. so the sweet spot would be somewhere in the middle. HOWEVER, most modern operating systems load the allocation table in MEMORY so i imagine the speed gain would be negligible. the fact that the table is managed in memory and periodically updated back to the disk is the reason behind most corruptions in a non-journaling file system like FAT.
i've over simplified things a bit, but it should give you an idea of what kind of gains to expect by such tweaking (i.e. little to none in my opinion!).
Click to expand...
Click to collapse
These tests might be of some interest to you.
http://forum.xda-developers.com/showthread.php?t=756781&highlight=card+speed+test

[Q] Help regarding softlinking apps.

hi.
I want to move some of my apps from /data/app path to /cache/app path and then symlink and then run apps which are physically located on /cache/app . I don't need market downloads.
I have searched for this and followed the processes but i'm unsuccessfull in doing that.
My blade is running CM7 and im pretty sure that it already has the market downloads symlinked to data partition (/cache/download is redirected to /data/local/download). I don't know if this is messing up with what i wanted to do. If this is interfering, then i would like to delete this symlink.
PLEASE help me regarding....
-- how to view a list of available symlinks in the android OS.
-- how to delete a known symlink . (pls give me the exact command to delete the cm7 market downloads to /data/local/download path symlink )
-- how to create the symlink i wanted.
please don't suggest to use the APPS2sd scripts to move apps to sd-ext (i already used them) . And also i'm aware of how to change the partition layout to increase the data partition by flashing appropriate custom gen2 firmware. I just wanted to do the symlinking processes. I want to use all of the internal phone memory for applications since it is faster memory.
Thanks in advance.
My sd card is nearly 3 times as fast as my phone's internal nand. If your sd card is slower then you need a new one. If you repartition then you can move the space being wasted in your cache partition to your data partition where it's easier for you to use.
Anyway, symlinking, http://linux.die.net/man/1/ln
hello wbaw. Your sdcard is which class.? I had a class2 8gb card. When i use it for appliactions the phone becomes slow. Then i should also consider getting a better card.
And which class sdcard is comparable to blade nand writing/reading speed.
nfs1mostwanted said:
hello wbaw. Your sdcard is which class.? I had a class2 8gb card. When i use it for appliactions the phone becomes slow. Then i should also consider getting a better card.
And which class sdcard is comparable to blade nand writing/reading speed.
Click to expand...
Click to collapse
I have a Verbatim class 10 16gb card, I get at least 10MB/sec write & over 14MB/sec read. Blade's internal nand seems to give me about 3.5MB/sec.
So you'd need a class 4 sd card, or a good class 2 to beat it. Class 2 means 2MB/sec writes as a minimum & it's the slowest rated sd card speed you can buy, class 4 is 4MB/sec, class 10 is 10MB/sec minimum.
Maybe trade your sd card in on ebay.
Yes my sdcard's (fat32) writing speed is mostly 2MBps and sometimes it reaches to 4 or 5 MBps. But the reading speed is around 15MBps constantly. I got these results when benchmarking from PC apps.
Will this class2 sdcard affect tasks like video encoding , video decoding .? Since reading speed is 15MBps i hope it wont affect video decoding. I used the WVGA video encoding hack and all i can get from it is around 6-12fps @ around 700Kbps.
And if sdcard was not the limiting factor what will be the maximum writing speed by blade hardware.?
BTW the 2gb class2 sdcard that came with blade was somewhat better (around 4 - 6 MBps writing speed) than the one i got now.
The sd card will always be the limiting factor, rather than the blade for just file transfers.
For video encoding/decoding you're limited by the cpu, whether it's a hardware accelerated video codec or not & the software. The sd card isn't going to have anything to do with video because the cpu can't encode video at 2MB/s & no video that it can decode is anywhere close to 15MB/sec.

Slow SDCard Read/Write Sppeds [SOLVED]

While there are many scripts and "apps" out there which ought to help increase your SDCARD r/w speeds, I have yet to come across one that reliably works.
So I stumbled upon this: http://codesector.com/teracopy
It's supposed to help copy large files across HDDs or Networks, but I found it works great for my phone.
Install it. It will automatically take care of your copy-paste operations. It might seem slow in the first few seconds, but give it some time.
Those SD card scripts aim to increase the read speed (not write speed) of the SD card on the phone and are quite effective sometimes. They make some modifications to the Android system (i.e. increase the read ahead speed of the SD card) so that the phone reads it faster. They won't help while transferring data to and from a computer, as Android unmounts the SD card and the computer mounts it, so it's working as a regular flash drive now. Teracopy is a good program, I've used it for as long as I can remember, and it does transfer stuff much faster than the Windows copy program. Not only to flash memory, but to HDDs too. So in short, Teracopy works, what you're saying is correct, but scripts to make SD card reading faster can't help while transferring to an computer anyway.
A way I've found to increase the overall read and write speeds of the SD card and flash drives in general, is to choose a 32kB cluster size (I haven't tried 64kB) while formatting it to FAT32. In my experience, this gives better read and write speeds especially while transferring large files.
Sent from my Desire HD using xda premium

Categories

Resources