PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Compact Framework Minimum file size

Reply

Minimum file size

 
Thread Tools Rate Thread
Old 06-03-2006, 11:30 AM   #1
Peter Morris [Droopy eyes software]
Guest
 
Posts: n/a
Default Minimum file size


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


  Reply With Quote
Old 06-03-2006, 11:47 AM   #2
Gustavo Curve
Guest
 
Posts: n/a
Default Re: Minimum file size

"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


  Reply With Quote
Old 06-03-2006, 05:15 PM   #3
chris-s@mailcity.com
Guest
 
Posts: n/a
Default Re: Minimum file size

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

  Reply With Quote
Old 07-03-2006, 11:10 AM   #4
Peter Morris [Droopy eyes software]
Guest
 
Posts: n/a
Default Re: Minimum file size

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


  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off