Esato

Forum > Sony Ericsson / Sony > Tips and tricks > Changing Allocation Unit Size on Memory Stick and Strange Result!

Author Changing Allocation Unit Size on Memory Stick and Strange Result!
symj
C901 Black
Joined: Jun 24, 2008
Posts: 38
From: Chittagong, Bangladesh
PM
Posted: 2009-03-15 21:15
Reply with quoteEdit/Delete This PostPrint this post
hi all,

this come up when i was playing with the windows formatting tool and the allocation unit size and thought of sharing the idea.

well, here it is,

First WHAT IS ALLOCATION UNIT:
Allocation unit is a the smallest amount of space that
will be used to store any data on the file system.

Much easier this way, if you have a 1024B file and allocation
unit size is 8192B then to store that file 8192B space will be taken.

so the lower the allocation unit the efficient the file system become
like if u want to store the 1024B file with 512B allocation unit size
it will use exactly the same amount of space as the file size.

so the math is
Allocation Unit Size FileSize
512B 1024B = 0% Wast space (2 Unit used)
8192B 1024B = 87.5% Wast space (1 Unit used)


Now this is what happened:

i tried to change default allocation unit size when formatting the memory stick on windows. i found that when u format in the phone it selects FAT filesystem and 16KB as allocation unit size.

then in windows i tried to lower it to 512B with FAT32 and guess what
happened in FPCBench 3.0 my RMASpeed was increased but this slowed down the phone and copying a file is like hell.

after this i tried the highest possible on 1GB M2 Card that is 8192B or 8KB.
But this time FPCBench 3.0 RMASpeed score was decreased but the
phone is like doubled the speed, browsing file is much faster with lots
of image, phone become more responsive and saving a picture with
camera takes less time and copying file from the computer become a little
faster.

Oh BTW u can increase the Allocation unit size more then 8192B if u have
a larger memory stick. the available sizes are:

FAT 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K, 128K, 256K
FAT32 512, 1024, 2048, 4096, 8192, 16K, 32K, 64K, 128K, 256K


Now i don't understand the second part, so lets wait for some expert
to light up the way

PS: Sorry for my English.
[ This Message was edited by: symj on 2009-03-16 02:08 ]
Sym Joy
StevenC
W910 Black
Joined: Aug 23, 2008
Posts: > 500
From: NY
PM
Posted: 2009-03-15 22:53
Reply with quoteEdit/Delete This PostPrint this post
More units = more addresses = more searching.
symj
C901 Black
Joined: Jun 24, 2008
Posts: 38
From: Chittagong, Bangladesh
PM
Posted: 2009-03-15 23:19
Reply with quoteEdit/Delete This PostPrint this post
update,

tried 64K with FAT the result is outstanding!!!!

try it out you wont believe ur eyes.


file copying speed is tripled with slower MicroM2 Card from K800.

and the media player is rocking fast.

150 songs its just lists them all so fast.


regards


Sym Joy
coba
K800 Silver
Joined: Mar 01, 2008
Posts: 466
From: Sabah, Malaysia
PM, WWW
Posted: 2009-03-16 12:27
Reply with quoteEdit/Delete This PostPrint this post
nice one..will try
THIS USER HAS BEEN BANNED BECAUSE OF HIS TALENT
altemyr
X1 Silver
Joined: Jan 21, 2002
Posts: > 500
From: Stockholm, Sweden
PM
Posted: 2009-03-16 14:41
Reply with quoteEdit/Delete This PostPrint this post
The optimal allocation unit size depends on what kind of data you intend to store on the unit. As you have found out, if you choose a small allocation unit size and store a large file, more "slots" will be used, and for smaller unit size, the table that keeps track of the slots must become larger, accordingly.
That table will become very large for small value on the allocation unit size, and there will have to be a balance between the size of the allocation unit size an the memory map table. It is probably possible to calculate the optimal size, but it's easier to experiment, as you have done.
The speed of the memory is probably mostly depending on how many slots that are in use, i.e. with fewer slots, you get faster access, since the slots don't necessarily have to be allocated in sequence in the memory (that is usually called fragmentation).
symj
C901 Black
Joined: Jun 24, 2008
Posts: 38
From: Chittagong, Bangladesh
PM
Posted: 2009-03-16 17:55
Reply with quoteEdit/Delete This PostPrint this post

On 2009-03-16 12:27:00, coba wrote:
nice one..will try



pls. post the result u r getting.


regards.
Sym Joy
coba
K800 Silver
Joined: Mar 01, 2008
Posts: 466
From: Sabah, Malaysia
PM, WWW
Posted: 2009-03-17 11:12
Reply with quoteEdit/Delete This PostPrint this post
hmm you mean bigger allocation unit size = more speed we got?
THIS USER HAS BEEN BANNED BECAUSE OF HIS TALENT
symj
C901 Black
Joined: Jun 24, 2008
Posts: 38
From: Chittagong, Bangladesh
PM
Posted: 2009-03-17 15:16
Reply with quoteEdit/Delete This PostPrint this post

in my case its yes,

but i can't say for sure about yours.

try different sizes like 16K,32K,64K for 1 GB Memory stick.

and after formatting try copying some music files to the memory card.

i got my optimal speed at 64K, and it decreases the file transfer time.

so, whats ur result?


Sym Joy
coba
K800 Silver
Joined: Mar 01, 2008
Posts: 466
From: Sabah, Malaysia
PM, WWW
Posted: 2009-03-17 15:47
Reply with quoteEdit/Delete This PostPrint this post
not now my friend im still confused bout ur new theory..since im using 4GB M2 card do i need to select bigger allocation unit size? or whatever size i want?
THIS USER HAS BEEN BANNED BECAUSE OF HIS TALENT
symj
C901 Black
Joined: Jun 24, 2008
Posts: 38
From: Chittagong, Bangladesh
PM
Posted: 2009-03-17 19:03
Reply with quoteEdit/Delete This PostPrint this post

well,

if ur M2 card size is 4GB then ur options r rather limited.

With FAT Allocation unit sizes r 64K-256K.
With FAT32 Allocation unit sizes r 512B-32K.

but i dont recommend the lowest size for FAT32. it will slow it down.

but those r my best guesses so far.

and before trying it copy a bunch of files and record the time it takes.
then do the same after formatting, compare them and see which one fits u
best.


good luck.


Sym Joy
ajeetpv
K810 Blue
Joined: Apr 23, 2006
Posts: > 500
From: India
PM
Posted: 2009-03-17 22:55
Reply with quoteEdit/Delete This PostPrint this post
Great!! I also will try.
coba
K800 Silver
Joined: Mar 01, 2008
Posts: 466
From: Sabah, Malaysia
PM, WWW
Posted: 2009-03-18 12:15
Reply with quoteEdit/Delete This PostPrint this post
Quote:

On 2009-03-17 19:03:04, symj wrote:

well,

if ur M2 card size is 4GB then ur options r rather limited.

With FAT Allocation unit sizes r 64K-256K.
With FAT32 Allocation unit sizes r 512B-32K.

but i dont recommend the lowest size for FAT32. it will slow it down.

but those r my best guesses so far.

and before trying it copy a bunch of files and record the time it takes.
then do the same after formatting, compare them and see which one fits u
best.


good luck.




ok then..hope its working! thanks man catch u later
THIS USER HAS BEEN BANNED BECAUSE OF HIS TALENT
symj
C901 Black
Joined: Jun 24, 2008
Posts: 38
From: Chittagong, Bangladesh
PM
Posted: 2009-03-18 20:24
Reply with quoteEdit/Delete This PostPrint this post


allright,

let me know the result mate!


regards.
Sym Joy
zonova
Model not set
Joined: Jul 11, 2010
Posts: 1
PM
Posted: 2010-07-11 04:55
Reply with quoteEdit/Delete This PostPrint this post
I would just like a quick bit of help with the allocation unit stuff . I have a 4gb MicroSD card that i put into my phone. i have to reformat the MicroSD card, so what would you recommend my settings be? Like, FAT32 or NTFS? And what allocation unit size would you recommend?
norbi_nw
Samsung Galaxy S II
Joined: Nov 27, 2006
Posts: > 500
From: Romania, Timisoara
PM
Posted: 2010-07-12 19:28
Reply with quoteEdit/Delete This PostPrint this post
and i have 16GB microSD so what would be the optimal allocation unit size? currrently on 32k...
http://norbinw.blogspot.com
Access the forum with a mobile phone via esato.mobi