PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Minimum file size
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Minimum file size
![]() |
Minimum file size |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi all
If I write a 1 byte file to my SDRam storage card, what is the mimimum space consumed? Ie, the minimum "disk" allocation size? Thanks Pete |
|
|
|
#2 |
|
Guest
Posts: n/a
|
"Peter Morris [Droopy eyes software]" <pete@droopyeyes[dot]comREMOVETHIS>
schrieb im Newsbeitrag news:OoauZFRQGHA.5400@TK2MSFTNGP09.phx.gbl... > Hi all Hi Peter, > If I write a 1 byte file to my SDRam storage card, what is the mimimum space > consumed? Ie, the minimum "disk" allocation size? it depends on the blocksize with which the card was formatted. e.g. 4KB, 8KB, 16KB (sizes from FAT) If one file is allocated, it's always rounded up to the next blocking size. Regards, Gustavo |
|
|
|
#3 |
|
Guest
Posts: n/a
|
There may also be a consideration for the way in which the card marks
blocks as being 'expired'. SDRam supports a finite number of re-writes, and as a block or whatever reaches the end of it's reusable life it is marked as no longer available. For efficiency, this is not usually done on the 'byte' size but as a block. As this occurs, the capacity of the SD card can appear to be reduced. So if you were repeatedly creating/deleting a 1 byte file a high number of times, you could expect to see a swifter reduction in life expectancy/capacity. The SanDisk website has some interesting papers on this topic. Chris |
|
|
|
#4 |
|
Guest
Posts: n/a
|
Ah, I was unaware of this, thanks for pointing it out. I shall in that case
continue along the line of saving all objects to a single file stream only when needed. Thanks Pete |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

