[MOD] Tweaks for SD card performance - Nook Color Android Development

Here is a thread that seems to be making the rounds throughout the forums...
http://forum.xda-developers.com/showthread.php?t=1010807
Following the guidelines in the thread, here are my results with CM7 using a Kingston 8GB Class 6 card...
Before:
Write - 6.6 MB/s
Read - 15.2 MB/s
After:
Write - 5.8 MB/s
Read - 94.4 MB/s
I would recommend playing with the values to see what works best for your particular SD card... Not quite sure
if it is a placebo type effect, but apps like the Gallery and games that use the SD card are noticeably faster...
Have fun...

I did extensive testing on a patriot class 10 8gb card today.
I had lowest standard deviation on results using 1024 buffer. I also had the highest reads at that buffer with a higher write speed.
I had the highest write speed at 4096, but the read speeds were slower than 1024.
I rebooted several times to make sure that wasn't playing into it, and reran many test. All results were relatively consistent.
~11.6 write
~86 read
@1024
~11.9 write
~79.4 read
@4096
~10.8 write
~71.9 read
@128
The change wasn't huge for me. Most have reported 2048 as the best setting.
Also, I updated my cm7_mod to include this. Working on making it installable w/ the scripting...
http://forum.xda-developers.com/showthread.php?t=1008612
It's only meant to be used with cm7_tablet_tweaks as a base now.

Couldn't such a buffer size setting be usefull for emmc (internal memory) too ?
I'm using dalingrin's OC kernel with the IO issue, and it feels slower than my SD card...

I've commited this tweak already today. I would be interested to find the optimal value for mmcblk0.
Jaostar said:
Couldn't such a buffer size setting be usefull for emmc (internal memory) too ?
I'm using dalingrin's OC kernel with the IO issue, and it feels slower than my SD card...
Click to expand...
Click to collapse
My current kernel should not have any IO issues.

dalingrin said:
I've commited this tweak already today. I would be interested to find the optimal value for mmcblk0.
My current kernel should not have any IO issues.
Click to expand...
Click to collapse
Instructions for tweaking the emmc are in that thread. I wouldn't mind taking the time to test and crunch the numbers but sd tools only wants to test my SD card.
EDIT:
App called J Disk Benchmark 2.0 can test internal memory. Working on testing now.
Uhm... my SD card tests faster...

I hope people don't go over board and incorporate this type of permformance increases in their roms by default based on bench mark tools. there is value in increasing readahead for some access patterns, mainly when doing lots of sequencial reads. the trade off of course is at the expense of memory usage. nook even with its 500mb of memory is still not considered high in memory. setting the readahead to 2mb is quite aggressive and will work well in some work loads like galary when reading lots of files around 2mb in size while in other work loads it may actually have negative affects. I am not saying that this specific tweak is bad because I haven't done any tests myself, but don't always believe the numbers u see from benchmark tools.

I'm only setting it to 1024k. I feel like that is plenty high.

dalingrin said:
I'm only setting it to 1024k. I feel like that is plenty high.
Click to expand...
Click to collapse
Yes 1024 is what I'm running really gave the best all around performance.
I think I found the internal memory and it's set to 128 by default

can't find any real difference between 64 and 4096. That looks like the only other mmc device though, so it must be it.

chisleu said:
App called J Disk Benchmark 2.0 can test internal memory. Working on testing now.
Uhm... my SD card tests faster...
Click to expand...
Click to collapse
Yep, it's the same for me, my Class 6 SD card achieves 6,3/11,6 and the internal memory only 4,86/7,52...
BTW :
J Disk Benchmark 2.0 doesn't use the cache, so this tweak wont affect the results...

Jaostar said:
Yep, it's the same for me, my Class 6 SD card achieves 6,3/11,6 and the internal memory only 4,86/7,52...
BTW :
J Disk Benchmark 2.0 doesn't use the cache, so this tweak wont affect the results...
Click to expand...
Click to collapse
Balls.
I'm going to jack it to 1024 and hope that works then.

OK, I can't get any meaningful numbers anymore. I think yesterday's test was a fluke. I can't get any real changes from 128 to 4096 (or in between) with fast or slow SD cards, big or small, black or dark black.
The write speed on slower cards is lower (5-6mb/s) and the faster cards are higher (10-12MB/s) and read speed for all is 80-90mb/s.
Maybe this is a performance mod not for us?

Related

2 GB micro SD ultra card

Hi,
Can anyone having micro SD 2GB ultra card can tell us about its performance? I have heard that 2Gb card as such had some impact on the performance of the phone and slows it a bit down? Is there any improvement using this faster card?
I have SanDisk 2GB MicroSD - in my opinion it's quicker than my previous 1GB.
I have seen sandisk 2gb ultra II micro sd card in the market. I just wanted to know if it improves the performance over the simple 2gb micro sd card?
i have a SanDisk 2GB standard MicroSD and performance is great, no slow downs on anything.
its a lot faster than a 1Gb card (can't remmeber make, probably SanDisk) that was with my Universal, that was sloooow...
sorry that that doesnt really answer your question, but in my opinion i think that there isn't much gain in opting for the Ultra MicroSD card, as there's not anything wrong with the standard one!
Comparing performance with different flash cards, be sure they are formatted with the same file system (FAT16/FAT32) and the same cluster size. Instead, your comparision results ae meaningless.
Lurker0 said:
Comparing performance with different flash cards, be sure they are formatted with the same file system (FAT16/FAT32) and the same cluster size. Instead, your comparision results ae meaningless.
Click to expand...
Click to collapse
And what are the best in your opinion? (cluster size and 16/32)
sergiopi said:
And what are the best in your opinion? (cluster size and 16/32)
Click to expand...
Click to collapse
I'd suggest you to search for existing threads and articles.
There is no a one-for-all solutions. One thing that I'd recommend is to format with one FAT copy (again, do a search). Then, the bigger the cluster size, the better berformance, but, OTOH, the more space is wasted. With a statistics provided e.g. by SK Tools anybody may make their decision on how to balance. SK Tools also a good tol to format cards with.
As for FAT16 vs FAT32, this is the last thing to decide. If a chosen cluster size allows FAT16 for the card, better to use it. If it does not - you have no a choice but to use FAT32. The only drawback of FAT16 is a fixed root directory size, which is not a big isue with large (16K to 64K) cluster sizes required for FAT16 on big cards.
But the main point for this thread still is: comparing flash card speeds, use the same format parameters.
Had anyone done this kind of comparison on different micro sd cards?
It imaging that this level of testing is about pointless, the typical bottleneck here is likely to be the reader device, not the card.
The phone will likely be the slowest aspect, at least when compared to a desktop reader...
You might find a turtle that can sprint, but it will still be a turtle

Best allocation unit size for SD cards?

I've got:
16gig Micro sd card (Class 2)
8gig Micro sd-card (Class 4)
If I format these both to a Fat32 with an Allocation unit size of 8192bytes. Will there be any performance increase? The 16 gig feels sluggish.. The icons load up around 10-30 seconds in boot up. (moved my apps to media.)
I'm currently formatting the 16 gig at the moment. backing up all my data.
Question is, Whats the best allocation unit size for SD cards in the 8-16 gig range? And is there a big performance step from class 2 to 4?
Cheers!
I'm no expert in these kinds of things, but I don't know if the allocation size will make a huge difference in the speed. The 8GB card will be faster by default because it is a class 4 and the other is a class 2.
Someone who knows more may be able to answer better than I can.
Big difference between class 2 and class 4 personally I think you should only by classic 6
Sent from my MB860 using Tapatalk
No, the sizes will affect how data is allocated. You can research it and see if there is a better one. Ususally just use default. Having too big sizes can mess with the efficiency of card handling it's overall size. I don't know how to explain, and hell couldn't even try as i'm sleepy and about to jump in bed. There can be speed differences, but nothing major that will make you want to choose a speicfic size or the other.
I voided my warranty and your mum.
As far as I know, smaller file allocations help if you have plenty of small sized files, and bigger file allocation sizes help when you have big files.
I always use default with pretty good results at least on Class 6 and up cards.
Cheers!
Sent from my Atrix using Tapatalk

[Q] best allocation unit size for microsdhc?

in win7 i can choose between 32k and the new 64k when formatting the card. which should I do which is best for the phone,or should I just format it in recovery?
dyetheskin said:
in win7 i can choose between 32k and the new 64k when formatting the card. which should I do which is best for the phone,or should I just format it in recovery?
Click to expand...
Click to collapse
What file format? FAT32?
Generally I just leave it at the stock settings, which I believe is 4K allocation unit size. Android runs off a ton of smaller files, I think the larger allocation unit sizing is just going to be inefficient on space. Since this is flash based storage there probably is going to be minimal or no performance differences, I would think.
**edit**
nevermind, I need to read things first. For the SDCARD, which is mostly general storage, small file sizes arent likely a reason to opt for 4k over 32k or 64k, but I still don't know if you'll get any performance gain. Honestly, try both and benchmark them. Let us know if one is for some reason significantly better than the others..
I just benchmarked 14 tests between both 32K and 64K allocation unit sizes and 7 different caches between 128 and 4096. The sweet spot for me was 64K when formatting the card and setting sd-booster to 4096. my card is a 32gb lexar sdhc class 10. I get roughly 9.1 for write and 22.6 for read.
What did you use to format? When I put my 64gb sdxc card I got a message saying the card is damaged would you like to format it and I said why yes, I would like to format it and it just did it without any options. All I know is that it formatted as FAT32. Can I check in the phone what allocation unit size it is at?
feralicious said:
What did you use to format? When I put my 64gb sdxc card I got a message saying the card is damaged would you like to format it and I said why yes, I would like to format it and it just did it without any options. All I know is that it formatted as FAT32. Can I check in the phone what allocation unit size it is at?
Click to expand...
Click to collapse
no you cant check on the device. the options are in windows7 in the format screen
sent from tapatalk on my rezound
dyetheskin said:
no you cant check on the device. the options are in windows7 in the format screen
sent from tapatalk on my rezound
Click to expand...
Click to collapse
Okay, thanks. I formatted in the phone since I figured it would format it properly. I saw that it was FAT32 when I was putting some music on it but never check anything further than that.
Antutu Benchmark results (my card is class 6):
Write - (5.0 MB/s) 50
Read - (5.7 MB/s) 57
Internal card results:
Write - (7.0 MB/s) 70
Read - (6.4 MB/s) 64
I have no idea if that's good or bad. My first smartphone so I've never had to pay that much attention to this stuff.
Were your speeds MB/s also? If so, maybe I'll try reformatting, although mine is class 6 so I don't know how much to allow for that.
I also saw something about Android OS supposedly not supporting more than 32gb but mine is 64gb. Would that be a factor?
Allocation size should be based on "average file size"
If apps, keep it smaller, or the normal 4k. Music/movies, you can up it a few notches.
Benchmarking this with benchmark programs are useless as they have preset small files they use to bench the speeds. Being flash memory, allocation size will also most likely put forth no noticeable speed difference on already speed limited SD cards. if seektime mattered, allocation would also. in our cases allocation only has the effect of potentially wasting space.
just use the smallest allocation size for the most use of the space on your card. you select higher allocation unit sizes, all the teeny files android and apps use will take up the amount of space equal to the allocation size, regardless of its true size (4k allocation means ALL files take a minimum of 4K, or in increments of 4K. therefore files <4k take 4k, 4+ to 8 take 8k, 8+ to 12 take 12k.)
Yes 64gb cards are usually fine on aneroid. What are keeping on there, pron???
Sent from my Kindle Fire using Tapatalk
nrfitchett4 said:
Yes 64gb cards are usually fine on aneroid. What are keeping on there, pron???
Sent from my Kindle Fire using Tapatalk
Click to expand...
Click to collapse
I never keep pron on my aneroid. I wouldn't know how to get it on/in (?) there!
lol mmm Pron

Unbelievably slow sdcard write speed!!!

the SD card I have is called SanDisk ultra 64gb class 10.
The first time I inserted into the phone, it ask to be formatted.
after a few weeks and almost filling it up full, I noticed that saving stuff on it is extremely slow.
I ran benchmark to confirm my suspicion
Sent from my EVO using xda premium
raclimja said:
the SD card I have is called SanDisk ultra 64gb class 10.
The first time I inserted into the phone, it ask to be formatted.
after a few weeks and almost filling it up full, I noticed that saving stuff on it is extremely slow.
I ran benchmark to confirm my suspicion
Sent from my EVO using xda premium
Click to expand...
Click to collapse
Ok so let me get this straight, the test file you are using is about 144MB and the only space you have left on your card is 194MB? Have you tried deleting a few files then running the test again?
Are you having any other problems. I know the phone specs says it only supports up to 32gb MicroSDHD card. The one you are using is a MicroSDXD card. I was thinking about getting one of those off amazon but there were alot of reviews from people with android phones that said it worked initially but then had all kinds of errors and problems after running the card for awhile. How long have you been using yours?
use the app SD TOOLS.. run that app and see what u get for a score...
INMHO this issue is coming from sdcard cluster size. i own a htc hero and a adata 8gb class6 sdcard.
usually ,because i use ext partition, i formatted sdcard under recovery (amonra or cm) and the cluster size is 4k . in this condition the write speed is arround 1MB/s .
studying this issue and after some digging in android i found that default cluster size is 68k ??? .... anyway using any OS or cmd line in a computer and formating with 64k cluster size will give best results regarding sdcard write speed .
with 64k cluster size i get 8-10 MB/s ....
i think the issue is coming because recovery's format the card with 4k cluster size
at least this is happen in my case with htc hero recovery's
so , just set cluster at 64k and it will work (i hope )
tachita said:
INMHO this issue is coming from sdcard cluster size. i own a htc hero and a adata 8gb class6 sdcard.
usually ,because i use ext partition, i formatted sdcard under recovery (amonra or cm) and the cluster size is 4k . in this condition the write speed is arround 1MB/s .
studying this issue and after some digging in android i found that default cluster size is 68k ??? .... anyway using any OS or cmd line in a computer and formating with 64k cluster size will give best results regarding sdcard write speed .
with 64k cluster size i get 8-10 MB/s ....
i think the issue is coming because recovery's format the card with 4k cluster size
at least this is happen in my case with htc hero recovery's
so , just set cluster at 64k and it will work (i hope )
Click to expand...
Click to collapse
Thanks Tac, this actually gave my class6 10.3write & 20.1read
jauger said:
Thanks Tac, this actually gave my class6 10.3write & 20.1read
Click to expand...
Click to collapse
@jauger ,
can you tell me what utility use for testing sdcard speed: sd tools, sdcard speed test , A1 SD bench, sdcard tester ?
sd tools give me amazing results ... outside of my sdcard class 6 range
1 SD bench is in testing stage for me
sdcard tester require adobe air and for my device generation i think is too much hassle to make it run and even if i make it run can give poor results
sdcard speed test even if is discontinued it is very close to reality and real behaviour of my sdcard
PS: regarding sdcard speed test, it would be nice to post test results only at first run of app because a 2nd test it will give higher troughput from obvious reasons

What is the Maximum Read/Write speed when using Micro SD Card with Xperia Z2?

Hi.
I have a Sony Xperia Z2 with lollipop. The device is not rooted. I was using a sony 32GB Class 10 U1 micro SD card (SR-32UYA/TQ1). It is rated at 40MB/s read speed. The write speed is not mentioned. When I tested it with A1 SD bench I was getting a read speed of around 33MB/s and a write speed of around 15MB/s.
I just upgraded to a Samsung PRO 64GB Class 10 U3 Micro SD card. The Read speed is 90MB/s. The write speed is 80MB/s. When I tested it using A1 SD Bench i was getting read speeds of around 42MB/s and write speeds of around 40MB/s. This is half the advertised speed. Is this what I should expect from this kind of card? And what is the max read/write speed that the Xperia Z2 can handle? Thanks.
Its more of a device configuration thing
My Sandisk Sdcard is rated for 32mb/s but i get 50-60 because of the file system type, i/o scheduler and buffer cache sizes
R/w speeds have a bunch of factors and usually "rated speed" is A maximum of instead of what a user would ever see
Right! You will get those values when you put card into a card reader with USB 3.0 support. Beside the setting of IO scheduler and read ahead cache can effects 10-20% benchmark scores.
Hi, so what can u advise and tips when buying sd card. Thanks.
Envious_Data said:
Its more of a device configuration thing
My Sandisk Sdcard is rated for 32mb/s but i get 50-60 because of the file system type, i/o scheduler and buffer cache sizes
R/w speeds have a bunch of factors and usually "rated speed" is A maximum of instead of what a user would ever see
Click to expand...
Click to collapse
Would you please post your settings?
Hello!
As today, in 2018, a A1 rated micro SD Card is worth to use with the Xperia Z2?
Thank you!

Categories

Resources