Jump to content

difference between size and size on disk?


Recommended Posts

The file [example] is 2.5KB [2,716 Bytes].

Now on your disk you will have a cluster size, the cluster size by default is, 4KB [i think] The whole of that cluster will be used. So whilst the file is 2.5KB the whole cluster will be used for that file. So 4KB is really used and wasted in a way.

But this is a very small file size and makes more sense when you look at larger files.

Link to comment
Share on other sites

This is an interesting article, (extract below) that explains the best way to obtain maximum storage space from your drive. lost me on the first page though! :blink: Here

When a file is stored on a disk, it’s written into clusters. If the file being stored exceeds the cluster size allocated to it, the file system uses additional clusters to store the file, consuming clusters until the file is stored. Naturally, files almost never fall neatly into multiples of 4 KB. So when the file system uses additional clusters, the unused portion of the last cluster is lost to overhead.

For example, suppose that you have a 35-KB file on your hard disk. The largest cluster size available is 4 KB. Therefore, the file will use a total of nine clusters. Eight of those clusters will be a full 4 KB in size. The ninth cluster will contain only 3 KB of data, leaving 1 KB completely wasted. If you had to store a thousand 35-KB files, you’d lose 1 MB of drive space.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy